Traffic Light Control
Design a control system for a traffic light at an intersection that can switch between different states (green, yellow, red) based on traffic and pedestrian signals, keep track of traffic flow and timing, handle emergency vehicles, handle multiple intersections simultaneously, and have a management interface for monitoring the status and usage.
Requirements:
- Ability to switch between different traffic light states (green, yellow, red) based on traffic and pedestrian signals.
- Tracking of traffic flow and timing of each light.
- Emergency vehicle handling capability.
- Ability to handle multiple intersections at the same time.
Sample IO