diff --git a/problems/traffic-signal.md b/problems/traffic-signal.md index 1ece3d4c..99371ebe 100644 --- a/problems/traffic-signal.md +++ b/problems/traffic-signal.md @@ -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/) @@ -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. \ No newline at end of file +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.