This following applet is [b]Ejs version of traffic control simulation[/b]
Created by prof Hwang Modified by Ahmed
Original project [url=]Ejs version of traffic control simulation[/url]
Click [eye]

/htdocs/ntnujava/ejsuser/37048/users/br/ahmed/trafficcontrol_pkg/trafficcontrol.propertiesFull screen applet or Problem viewing java?Add to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1431.1kB):double click downloaded file to run it. (7 times by 5 users) , Download EJS source (6 times by 6 users) View EJS source
[/eye] to view/hide applet.

Each square represent a car. It could be painted with three different color depends on it's acceleration a.
1. a>0 (yellow): when there is no car in front of it or the car in front is far away (the distance is more than dmin) and the street light is not red.
2. a=0 (green): it will keep move with the same speed when it reach maximum speed.
3. a<0 (red): when the street light turn red or the car in front is too close (distance < dmin).

dmin= v* treaction time, where treaction time is the reaction time of the driver.

You can click the +/- sign to change the time delay between traffic lights.