This example is defined in the directory: /home/lbesnard/Polychrony/V4.19/Linux/Examples/usingGraphicalLibrary/Example1.
X:= A+B
with i/o done using a graphical user interface. This interface uses the predefined Signal Library called "libGraphis" (defined in the signal lib directory of Polychrony distribution).
Compile the program with the command:
signal -tra -java ADDINT.SIG -par=ADDINT.PAR
It produces in the ADDINT sub-directory, the files
Goto ADDINT sub-directory.
The data files for Graphical simulation are:
Compiling the Java code: the generated code must be modified.
import Signal.lib.Java.graphical.Direction; import Signal.lib.Java.graphical.Simu;
Simu sim = new Simu();
Then