Dear Igor

To add further precisions on Bernard's mail :

- AFAIK it is quite difficult to generate code from sequence diagrams, even if 
they demonstrate a kind of completeness, that shall be analysed in some way (if 
anyone has informations regarding this point, feel free to post it as answer, I 
would be glad to learn more on this topic)

- State machine are more easily generated, by using Acceleo to either :
  a - generate directly the kind of state machine you want (see the state 
pattern, or generate tables like in parsers) or 
  b - generate .sm files used by StateMachineCompiler (see 
http://smc.sourceforge.net/) to generate state machine in various languages 
(this is the option choosen by SMUC  tool in Topcased for example)...

I've attached an Acceleo file for the second option, that I used to generate C 
state machine.
The Acceleo generator generate the .sm file that shall be used as input to smc, 
and a .c and .h file containing the skeleton of the implementations function 
used in the state machine (operations in transitions and boolean functions used 
in guards)
As smc takes only one-level hierachical state machine, we have choosen to 
flatten our state-machine, so the generator you see assume that your 
state-machine is flattened

- I have no experience in Activity generation

Good luck

Regards

Cedric Gava

Attachment: generate.mtl
Description: Binary data

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users

Reply via email to