SinelaboreRT Header Logo

SinelaboreRT

It's better when it's simple!

User Tools

Site Tools


Sidebar

Tool Landing Pages

Examples

Designers Toolbox

How-To

Integrated state-chart editor with auto-layout

Focus on modeling and not on moving states around to create a nice looking diagram! Syntax aware text fields offer a comfortable way to specify actions, guards etc. When the diagram passed the model checker it can be directly simulated. Connect the diagram to the real hardware to monitor the state machine in action.

There are better ways to model state machines than using spread sheets!

In the past different μC manufacturers have published application notes about the benefit of using state machines for the design of embedded software. An example is the application note SLAA402 from Texas Instruments (TI). It suggests to generate source code based on a spread sheet table. Nowadays several affordable UML modeling tools are available supporting the efficient design of state machines in a graphical way. SinelaboreRT generates production quality source code from state diagrams created with many different UML tools. Give it a try!

Latest Changes

PageDateUserTags
Generate efficient source code from UML state diagrams and activity diagrams! 2017/03/20 19:35 Peter Mueller  
Navigation 2017/03/18 16:39 Peter Mueller  
History 2017/03/18 16:38 Peter Mueller  
wiki:howto:argouml_how-to

ArgoUML HowTo

Below some tips and tricks are listed that simplify the state-chart creation using ArgoUML. If you have further hints let us know and we add them here.

:?:Creating entry/action/do code:

:!: Double click in the state. Then type in e.g. entry followed by a slash. Now type in the entry action code. The action is a call action which is ok. There is no need to change this into any other type of action.


:?:Q: How to define multiline state actions:

:!: Open the state properties and double click on the action you want the edit

Then enter the action code. From now on only change the acton code in the property editor. Otherwise you loose all lines except the first one.


:?:Q: How to quickly define the event, guard and action for a transition:

:!: Create a transition and double click in the text area of the transition. Then type in the event, the optional guard and the optional action.


:?:Q: How to define a multiline transition action:

:!: Double click the effect in the transition’s properties dialog

and type in the code.

This is the result:

By default a Call Action is created. There is no need to change the transition type for the code generator.

wiki/howto/argouml_how-to.txt · Last modified: 2012/10/23 00:01 by pmueller