an example of automatic domain: a level crosssing

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 Program

Compilation of the Signal text

        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.

Construction of the binary

In the sub-directory TRAIN, execute the command

	make 

Simulation

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.

 All Files

Generated on Mon Jul 25 16:55:00 2011 for Polychrony, by  doxygen 1.6.1. This page has been designed by the Espresso team ( contact )