Generate production quality code from state diagrams created with Modelio

SinelaboreRT generates readable and maintainable code from hierarchical UML state machines created with Modelio. With its unique features the tool covers well the requirements of embedded real-time and low power application developers. With its new C++ and Java backend it is also a perfect tool for developers of server or desktop applications.

Key Features:

Watch the code generator in action

The following example shows how the code generator works by means of a simple microwave oven.

Requirements:

The sate machine below shows a possible solution.

To generate for example C code just export your model to XMI and call the code generator as follows:

java -jar codegen.jar -p Modelio -t "Model:Class Model:first_example_step3" -o oven first_example_step3.xml

After checking the model against a set of well-formedness rules (e.g. no double state names) the complete state machine code is generated.

Done!

Look into the generated files: oven.c oven.h oven_ext.h

It is also possible to generate code from activity diagrams. As an example the selftest() function was modeled as activity diagram. It shows the supported node types and has no other function.

More complex examples to generate code from

Model with parallel regions.

Model with a sub-machine in state S2.

Supported state diagram features

Find out more about the code generator

Download the demo version and try it right now. It includes many other examples.

Modelio HowTo

:?:What options should I use for exporting a XMI file in Modelio 3

:!: Select the following options: