Skip to content

Java Concurrency final project for UMGC - CMCS335. Demonstrates concurrency in Java with simulated cars traveling on a road with multiple intersections.

License

Notifications You must be signed in to change notification settings

brianvegh/CarTrafficLightSimulator

Repository files navigation

CarTrafficLightSimulator

Fully graphical Java Swing application that uses event handlers, listeners and incorporates Java’s concurrency functionality and the use of threads. This application displays time, traffic signals and other information for traffic analysts. The GUI design includes viewing ports/panels to display the following components of the simulation:

  1. Current time stamps in 1 second intervals
  2. Real-time Traffic light display for three major intersections
  3. X, Y positions and speed of up to 3 cars as they traverse each of the 3 intersections

Additionaly, vehicles have user-adjustable speeds; stoplights are able to be paused and resumed.

To Run:

Clone this Git Repo and run 'Run CarTrafficLightSimulator.bat". The included batch file will open the program's Javadoc documentation in your default web browser, as well as execute the CarTrafficLightSimulator.jar program file.

Class Diagram:

Program Images:

Car Added:

Light Added:

Cars Pulled Over:

Cars Speed:

Resume Cars:

Resume Lights

About

Java Concurrency final project for UMGC - CMCS335. Demonstrates concurrency in Java with simulated cars traveling on a road with multiple intersections.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published