kamsza / traffic-simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Traffic Simulator

Project carried out as part of the subject Object Oriented Programming.

The purpose of the project was creating a traffic simulator, that:

  • allows changing traffic lights,
  • allows adjusting animation speed and number of vehicles,
  • provides data on traffic jams.

The Simulation.java file contains a set of functions that can be used to create vertical or horizontal roads with any number of lanes.

An example of using the functions is given in the file Main.java, and the animation below.

nagr2.gif

About


Languages

Language:Java 100.0%