User Tools

Site Tools


v040:userguide

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
v040:userguide [2016/03/24 09:27]
deva
v040:userguide [2016/03/24 10:38] (current)
deva [Compilation to C++]
Line 110: Line 110:
 Open the generated Papyrus diagram and start the model either in //run// or in //debug// mode. The current state and currently executed transition gets highlighted. Open the generated Papyrus diagram and start the model either in //run// or in //debug// mode. The current state and currently executed transition gets highlighted.
  
-{{v020:​animation.png}}+{{v040:​animation.png}}
  
 For each state machine diagram, the state changes of the first activated object of the corresponding type will be highlighted. An expected later improvement will make it possible to select the object to be animated during the debug session. For each state machine diagram, the state changes of the first activated object of the corresponding type will be highlighted. An expected later improvement will make it possible to select the object to be animated during the debug session.
 ==== Compilation to C++ === ==== Compilation to C++ ===
  
-The experimental ​C++ model compiler can be reached by selecting ​the ''​txtUML''​ / ''​Generate C++ code from txtUML''​ menu.+**Note:​** ​The generated ​C++ code is incomplete. It contains structure (classes, attributes, methods, state machine elements) only, the behaviors (method bodies, instructions of state machine entries etc.) are not generated. Complete ​code generation is expected in a later release.
  
-**Note:​** ​The generated ​C++ code contains structure (classes, attributes, methods, state machine elements) only, the behaviors (method bodies, instructions of state machine entries etc.) are not generated. This is expected in a later release.+The C++ model compiler can be reached by selecting ​the ''​txtUML''​ / ''​Generate C++ code from txtUML''​ menu.
  
 +{{v040:​cppgen.png}}
 +
 +The Eclipse project and the package that contains the model must be specified. The //txtUML deployment configuration//​ is a description of how the object instances will be distributed into different threads. We suggest reviewing the deployment configurations in the {{v040:​demo.zip|demo projects}}. Detailed documentation of the deployment configuration language will be available when the complete C++ code generation will be released.
 +
 +The generated C++ code is saved in the //cpp-gen// folder of the selected project. Note that you might have to //refresh// the folder so that the newly generated files become visible in Eclipse.
 +
 +{{v040:​cppfiles.png}}
  
v040/userguide.1458808039.txt.gz ยท Last modified: 2016/03/24 09:27 by deva