TrafficLight

This hierarchical model demonstrates a traffic light system with DE (Discrete Event) and Ptera (Ptolemy Event Relationship Actor). The DE model simulates an execution environment, which randomly triggers errors. The traffic light switches into error mode on receiving an error event (generated by the PoissonClock), and the yellow light flashes. After 10 units of model time, the traffic light recovers and resumes its function.

TrafficLight is available in two formats:

See Web Start Help for details.