NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => kinematics => Topic started by: ahmedelshfie on June 01, 2010, 06:52:32 pm



Title: Ejs version of traffic control simulation
Post by: ahmedelshfie on June 01, 2010, 06:52:32 pm
This following applet is Ejs version of traffic control simulation
Created by prof Hwang Modified by Ahmed
Original project Ejs version of traffic control simulation (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=365.0)
Click [eye][ejsapplet][/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.


Title: Re: Ejs version of traffic control simulation
Post by: ahmedelshfie on September 27, 2010, 05:46:30 pm
Original applet of traffic control simulation design by prof Hwang  using JDK1.0.2
URL applet Traffic Light System (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=139.0)