Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions problems/traffic-signal.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
![](../class-diagrams/trafficsignalsystem-class-diagram.png)

## Implementations
#### [Java Implementation](../solutions/java/src/trafficsignalsystem/)
#### [Java Implementation](../solutions/java/src/trafficsignalcontrolsystem/)
#### [Python Implementation](../solutions/python/trafficsignalsystem/)
#### [C++ Implementation](../solutions/cpp/trafficsignalsystem/)
#### [C# Implementation](../solutions/csharp/trafficsignalsystem/)
Expand All @@ -25,4 +25,4 @@
2. The **Road** class represents a road in the traffic signal system, with properties such as ID, name, and an associated traffic light.
3. The **TrafficLight** class represents a traffic light, with properties such as ID, current signal, and durations for each signal state. It provides methods to change the signal and notify observers (e.g., roads) about signal changes.
4. The **TrafficController** class serves as the central controller for the traffic signal system. It follows the Singleton pattern to ensure a single instance of the controller. It manages the roads and their associated traffic lights, starts the traffic control process, and handles emergency situations.
5. The **TrafficSignalSystemDemo** class is the main entry point of the application. It demonstrates the usage of the traffic signal system by creating roads, traffic lights, assigning traffic lights to roads, and starting the traffic control process.
5. The **TrafficSignalSystemDemo** class is the main entry point of the application. It demonstrates the usage of the traffic signal system by creating roads, traffic lights, assigning traffic lights to roads, and starting the traffic control process.