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:51] pmuellerwiki:news:12may2014 [2014/05/13 18:45] (current) pmueller
Line 1: Line 1:
-====== New version 3.6 add support for activity diagrams ======+====== New version 3.6 has support for activity diagrams ======
  
  
-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 20: Line 20:
 The following figure shows a fictitious activity diagram with all the elements presently supported from the code generator. The following figure shows a fictitious activity diagram with all the elements presently supported from the code generator.
  
 +{{ :wiki:news:activity.png?nolink |}}
  
 The code generator supports several configuration parameters that can be specified in the codegen.cfg file. The parameters are: The code generator supports several configuration parameters that can be specified in the codegen.cfg file. The parameters are:
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 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.+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.
  
 Nevertheless the generator can already be used for real word applications. Please give it a try! Your feedback is very welcome. Nevertheless the generator can already be used for real word applications. Please give it a try! Your feedback is very welcome.
  
-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.1399927909.txt.gz · Last modified: 2014/05/12 22:51 by pmueller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki