https://github.com/dakostu/cellularfreeway
Simulation of Nagel and Schreckenberg's cellular automaton model for freeway traffic simulation
https://github.com/dakostu/cellularfreeway
cellular-automata cellular-automation cellular-automaton cellular-automatons cellular-network freeway simulation traffic traffic-simulation trafficsim
Last synced: about 1 month ago
JSON representation
Simulation of Nagel and Schreckenberg's cellular automaton model for freeway traffic simulation
- Host: GitHub
- URL: https://github.com/dakostu/cellularfreeway
- Owner: Dakostu
- License: gpl-2.0
- Created: 2017-11-28T11:07:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-29T16:42:11.000Z (over 7 years ago)
- Last Synced: 2025-04-17T04:18:22.570Z (about 1 month ago)
- Topics: cellular-automata, cellular-automation, cellular-automaton, cellular-automatons, cellular-network, freeway, simulation, traffic, traffic-simulation, trafficsim
- Language: Java
- Homepage:
- Size: 932 KB
- Stars: 10
- Watchers: 0
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CellularFreeway

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](http://www.pd.infn.it/~agarfa/didattica/met_comp/lab_20140108/1992_origca.pdf).
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]"