This example is defined in the directory: /home/lbesnard/Polychrony/V4.19/Linux/Examples/levelCrossing/complete.
This directory contains the description and the simulation of a level crossing (restricted for the simulation to Unix only). The level crossing is composed of :
signal -c -tra TRAIN.SIG -par=TRAIN.PAR
or, with computation of clusters,
signal -c -tra TRAIN.SIG -par=TRAIN.PAR -clu
The results of the Signal compilation are produced in the sub-directory TRAIN. It contains
TRAIN_main.c and TRAIN_io.c are not used to build the executable binary. They are replaced by a module written in C: simul.c. The purpose of simul.c is to handle the visual display and the management of the events generated by the user with X Windows.
In the sub-directory TRAIN, execute the command
make
In the sub-directory TRAIN, run the command:
TRAIN
To the question
"Distance of the observer?"
you may answer (for example): 100
Caution: the files calledBySignalProgram.c mkwindows.c and simul.c must not be deleted.