gergutisan / CellularFreeway

Simulation of Nagel and Schreckenberg's cellular automaton model for freeway traffic simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CellularFreeway

preview pic

This program is an attempt at programming a cellular automaton model for freeway traffic as laid out by Kai Nagel and Michael Schreckenberg in their abstract.

This simulation can be run indefinitely or up to a certain amount of steps with an optional launch parameter.

How to launch CellularFreeway

Use the Main class to launch the program. You need to enter at least four numerical values as command line arguments to successfully start the simulation. The source code itself can also be compiled using the Java 1.8 SDK.

Launching the program in a command-line interface, for example, would look like this:

"./Java main [length of street in cells] [amount of cars on street] [decimal probability number] [time interval between simulation steps] [optional: amount of steps]"

About

Simulation of Nagel and Schreckenberg's cellular automaton model for freeway traffic simulation

License:GNU General Public License v2.0


Languages

Language:Java 100.0%