Skip to content
Peter Mueller edited this page Oct 23, 2023 · 7 revisions

Installation

It is necessary to install both the SinelaboreRT and a state machine modelling tool of your choice. The order doesn’t matter. If you use the internal state machine editor, no UML modelling tool is required.

  1. SinelaboreRT is bundled as a Java jar file: No installation is required for the SinelaboreRT jar file. An installer is also provided for Windows and Mac users. It installs an executable wrapper around the jar file, which can then be used like any other native GUI program installed on your computer. Download the latest demo version from here: https://www.sinelabore.de/doku.php/wiki/accepted_download
  2. Java Runtime Environment: The editor is completely written in Java. It can therefore run on different operating systems such as Windows, Linux or MacOS. The required Java Runtime Environment (version 11 or higher recommended) is available for download here: https://jdk.java.net
  3. Graphviz layout engine: The Graphviz layout engine is used internally and is only needed if you want to use the built-in visual state machine editor. Install the version for your operating system from here: www.graphviz.org/.

Generating Code

The Code Generator is a command line tool and can be fully controlled by a number of command line parameters and a configuration file. The code generator can be invoked as follows

%java -cp "path/to/codegen/jar/file/*" codegen.Main
sinelaboreRT codegen version xxx
Usage: java -cp "PATH-TO-JAR/*" codegen.Main [-xls] \\
[-gencfg] [-doxygen] [-Trace] [-verbose] [-U configfile][-t route:to:class] \\
[-l cppx|cx|SSC|java|swift|csharp|lua|python] [-A] [-s|-S|-E] [-c|-c1] \\
[-p EA|MD|CADIFRA|UMODEL|SSC|ASTAH|VP|Modelio|MM|PAPYRUS] [-o outfilename] modelfile

A real command line to generate C-code from a model created with the integrated state diagram editor on Windows might look like as follows:

D:\>c:\jdk-11\bin\java.exe -cp "c:\sinelaboreRT5.0\bin\*" codegen.Main -p ssc
-o manual  manual.xml
Config path: D:\\codegen.cfg
Starting robustness tests of state machine ...
State names: ..............
Machine hierarchy: ........
Machine height = 1
Transitions: ..............
Default states: ...........
Final states: .............
Choices: ..................
No. of children in composites: ...
Connectivity of states: ...
Can’t find the License.txt file or invalid file. Codegen is running in demo mode
Expected license file location: /C:/sinelaboreRT5.0/bin/License.txt
Running in demo mode!

The input file (here manual.xml) is the state diagram file produced from the modeling tool. The outfile (here manual) – defines the name of the generated files and is used as prefix at many places in the generated code.

Clone this wiki locally