An open API service indexing awesome lists of open source software.

https://github.com/miroslavkolosnjaji/trafic-light


https://github.com/miroslavkolosnjaji/trafic-light

design-patterns design-patterns-implemented-in-java java java-swing-gui

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

![Java](https://img.shields.io/badge/Java-17-brightgreen)
![Java-Core](https://img.shields.io/badge/Java-Core-brightgreen)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
![GitHub forks](https://img.shields.io/github/forks/MiroslavKolosnjaji/Trafic-Light)

# 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](LICENSE) file for details.