Skip to content

This is a Java core project focused on design patterns. It implements the STATE pattern to control traffic light states, with the use of OBSERVER and SINGLETON patterns. This project serves as a hands-on exercise to explore and practice design patterns in Java.

License

Notifications You must be signed in to change notification settings

MiroslavKolosnjaji/Trafic-Light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Java Java-Core License: MIT GitHub forks

Trafic-Light

This was was homework exercise, task for this exercise was to implement STATE pattern Idea was to implements states that will change lights on Trafic-Light. In this version of code there are also OBSERVER pattern, Singleton pattern Process of changing lights is automatized using Thread class. To start this app, just run Main class. Here are intervals for each ligh: RED 7sec, RED/YELLOW 3sec, GREEN 5sec, YELLOW 3sec.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This is a Java core project focused on design patterns. It implements the STATE pattern to control traffic light states, with the use of OBSERVER and SINGLETON patterns. This project serves as a hands-on exercise to explore and practice design patterns in Java.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages