Trafcod is a language designed to describe traffic control programs. These traffic control programs consist of a set of rules that must be evaluated every time-step (0,1s). At each time-step all rules are evaluated repeatedly until no more changes to the internal state occur, or until the of evaluation cycle limit has been reached. (Reaching the evaluation cycle limit usually indicates a problem in the traffic control program logic.)
Trafcod programs can be written manually, but are usually generated with the Vrigen software.
The current Trafcod interpreter is written in C and C++ and runs under Microsoft Windows. It can be run in several ways. Not all of these need to be available in a Java version. The Java version should be able to run as a client under OTSim and probably as a stand-alone system for debuggin where the user can activate and deactivate detectors using mouse clicks. The source code that needs to be considered for porting is less than 200 kByte.
Porting the Trafcod interpreter to Java makes very flexible traffic control programs available in any environment that can run OTSim.
Trafcod is a language designed to describe traffic control programs. These traffic control programs consist of a set of rules that must be evaluated every time-step (0,1s). At each time-step all rules are evaluated repeatedly until no more changes to the internal state occur, or until the of evaluation cycle limit has been reached. (Reaching the evaluation cycle limit usually indicates a problem in the traffic control program logic.)
Trafcod programs can be written manually, but are usually generated with the Vrigen software.
The current Trafcod interpreter is written in C and C++ and runs under Microsoft Windows. It can be run in several ways. Not all of these need to be available in a Java version. The Java version should be able to run as a client under OTSim and probably as a stand-alone system for debuggin where the user can activate and deactivate detectors using mouse clicks. The source code that needs to be considered for porting is less than 200 kByte.
Porting the Trafcod interpreter to Java makes very flexible traffic control programs available in any environment that can run OTSim.