SinelaboreRT Header Logo

SinelaboreRT

As simple as possible, but not any simpler!

User Tools

Site Tools


wiki:news:12may2014

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:news:12may2014 [2014/05/12 22:57] pmuellerwiki:news:12may2014 [2014/05/13 18:45] (current) pmueller
Line 2: Line 2:
  
  
-There are two diagrams that can be used to express dynamic behaviour in the UML. State machine diagrams express the states of an object and the events and transitions to change the state. In opposite activity diagrams (aka flow diagrams) describe the control flow of an algorithm. The great thing of both types of diagrams is that they allow to generate 100% code out of the model description.+There are two diagrams that can be used to express dynamic behaviour in the UML. State machine diagrams express the states of an object and the events and transitions to change the state. In contrast activity diagrams (aka flow diagrams) describe the control flow of an algorithm. The great thing of both types of diagrams is that they allow to generate 100% code out of the model description.
  
 The latest version of the sinelabore code generator can now also generate code from activity diagrams. Activity diagrams consist of the following elements: The latest version of the sinelabore code generator can now also generate code from activity diagrams. Activity diagrams consist of the following elements:
-  * black circle to indicate the begin of the activity+  * Black circle to indicate the begin of the activity
   * Circled black circle to indicate the end of the activity (return)   * Circled black circle to indicate the end of the activity (return)
   * Rounded rectangles representing actions   * Rounded rectangles representing actions
Line 38: Line 38:
 ''java -jar codegen.jar -A -p EA -o testcase -t "Model:test:class_with_activities"  testcase.xml'' ''java -jar codegen.jar -A -p EA -o testcase -t "Model:test:class_with_activities"  testcase.xml''
  
-The generated c-file can be found {{:wiki:news:testcase_test_operation.c|here}}. Due the way the algorithm is generated (based on an a while loop with switch / case statements) all kinds of loops including back links can be generated without problem. For the shown diagram the generated code contains just 180 lines of code including empty lines and some documentation.+The generated c-file can be found {{:wiki:news:testcase_test_operation.c|here}}. Due the way the algorithm is generated (based on a while loop with switch / case statements) all kinds of loops including back links can be generated without problem. For the shown diagram the generated code contains just 180 lines of code including empty lines and some documentation.
  
 ⇒The activity generator backend is still under development. Error handling and parser robustness must be increased. Additionally sections about the activity generator must be added to the manual. ⇒The activity generator backend is still under development. Error handling and parser robustness must be increased. Additionally sections about the activity generator must be added to the manual.
Line 48: Line 48:
  
  
-Beside the activity generator backend the new version also contains several improvements in the state machine generator. In addition support for regions in Java was added.+Beside the activity generator backend the new version also contains several improvements in the state machine generator. In addition support for transitions from initial states to choice states in Java was added.
  
 Have fun! Have fun!
wiki/news/12may2014.1399928223.txt.gz · Last modified: 2014/05/12 22:57 by pmueller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki