An example using a predefined Graphical library

This example is defined in the directory: /home/lbesnard/Polychrony/V4.19/Linux/Examples/usingGraphicalLibrary/Example2.

Algorithm:

This example is a simple "watch" that produces seconds, minutes, hours and days. The days are not managed as in a calendar but as a simple (infinite) counter:

The screen-display is done using a graphical user interface. This interface uses the predefined Signal Library called "libGraphics" (defined in the signal lib directory of Polychrony distribution).

Signal Programs

Compiling

Add to the SIGNAL_LIBRARY_PATH environment variable (command for tcsh) :

          setenv SIGNAL_LIBRARY_PATH ${SIGNAL_LIBRARY_PATH}:${SignalLibJava_graphical}:${SignalLib_Graphical}:${SignalLib_Java}

Compile the program with the command :

          signal -tra -java vtSimpleWatch.SIG -par=vtSimpleWatch.PAR

It produces the results in the vtSimpleWatch sub-directory.

Compiling

Goto vtSimpleWatch sub-directory.

The following data files are used for Graphical simulation:

Compiling the Java code: the generated code must be modified.

Then

 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 )