Giter Club home page Giter Club logo

traffic-lights's Introduction

IDEA EDU Course

Implemented in the Java Desktop Application Developer Track of hyperskill.org JetBrain Academy.

Project goal is to beta test this new Jetbrains project and give feedback to the authors.

Technology / External Libraries

  • Java 20
  • Lombok
  • Slf4j
  • Tests with Junit-Jupiter and Mockito
  • Awaitility
  • Gradle 8.1.1

Program description

The application will provide a simplified version of a traffic lights system for a road junction in which many roads converge to one.

Project completion

Project was completed on 14.05.23.

Repository Contents

Sources for all project tasks (6 stages) with tests and configurations.

Progress

13.05.23 Project started. Setup of build and repo with gradle on Kotlin basis.

13.05.23 Stage 1 completed. Just print outs.

13.05.23 Stage 2 completed. A simple integer value menu and introduced a model class for traffic lights.

13.05.23 Stage 3 completed. Input validation with regex and invalidAction-Runnable on Integer-queries. Console clearing via OS-ProcessBuilder.

13.05.23 Stage 4 completed. Added SystemTimer on basis of java.util.Timer. Used Awaitility-library for timing unit tests

13.05.23 Stage 5 completed. Circular queue for the roads implemented with ArrayDeque and added to TrafficLights. SystemTimer outputs roads in its state display.

14.05.23 Final Stage 6 completed. Road-dependent interval count-downs. Complicated timer logic implemented in TrafficLights using inner Road class. Extensive unit tests.

traffic-lights's People

Contributors

wisskirchenj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.