Table of Contents

Note: The homage of Metamill is not reachable since quite some time. It is unclear to me what happens with this tool. If you have news about Metamill please let me know.

Generate production quality code from state diagrams created with Metamill

SinelaboreRT generates readable and maintainable code from hierarchical UML state machines created with Metamill. With its unique features the code-generator 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 MM -t "ImplementationView:Oven"  -o oven oven.xmi

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

Done!

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

What next?

Download a free 30 days evaluation version and test the code-generator and read some of the articles from the Designers Toolbox to get a deep understanding of the various generator features.

Feel free to send us questions if you get stuck.