Skip to content

sssf/traffic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traffic simulation

Ioopm traffic assignment A program for simulating a road crossing with support for loading parameter values from a text file.

  C           B                               A
s1<----r1-----<---------r0---------------------
s2<----r2-----< 

Usage

Compile and run with make.
Parameter values can be assignened in the properties.data file in the bin directory.

Parameters

AtoB        - length of lane between A and B
BtoC        - length of lane between B and C
Turn        - length of turn lane
delay       - delay between printouts
steps       - number of steps to perform simulation
period      - traffic light full period
green       - traffic light green period
frequency   - car spawn frequency (0 - 100)

About

Ioopm traffic assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors