Skip to content

This is a traffic simulator created in Java. It's made using the MVC pattern implemented by myself. The view of the application has been developed with Swing.

Notifications You must be signed in to change notification settings

arturobp3/Traffic_Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traffic Simulator

Steps to use the application:

  • Load an event file in the simulator (On the menu bar: Ficheros > Cargar Eventos). You can find those events here

  • Now, insert the previously loaded events in the simulator (Simulador > Insertar evento). I recommend using the file called "cruces_2.ini", since you will be able to execute more simulation steps.

  • Choose a delay. If you choose 1000, it will take 1 second to execute and you will be able to see everything more clearly.

  • Choose the steps you want to execute.

  • Press the play button and enjoy!

Graphical user interface

The map is composed of 4 elements:

  • Crossroads: Blue nodes that connect roads .

  • Roads: Lines that contain all type of vehicles. They are controlled by traffic lights.

    • Vehicles: Pink circles that move over the roads.
    • Traffic Lights: Triangle located at the crossroads. They can be green or red.

About

This is a traffic simulator created in Java. It's made using the MVC pattern implemented by myself. The view of the application has been developed with Swing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages