CSE 553 Real-Time Sytems, Spring 2002
Traffic Light Simulations

The following are links to three Java applets that simulate traffic and traffic lights. Each increases with complexity from the other.

NOTE: All requests for source code will be ignored.

Basic Traffic and Traffic Light Model
This basic traffic and traffic light simulator is at the heart of the other two models. Ambulances are not considered.
Traffic Light Model with Immediate Ambulance Handling
This simulation expands the standard Traffic Light/Ambulance model by allowing a traffic light to handle multiple ambulances from multiple directions.
Traffic Light Model with Ambulance Handling via Message Propagation
This simulation is a further extension of the previous ambulance handling model. Using the ambulance's path information, the traffic lights "prepare" themselves for the ambulance's arrival by turning green in the necessary direction several time clicks before the ambulance even nears the light.

Back to the course projects page