|
|
|
Re: Java code generation from UML Behavioral diagrams [message #1785256 is a reply to message #1784467] |
Wed, 11 April 2018 15:27 |
|
Hi,
well, a UML model is an EMF model (there is an UML.ecore in the org.eclipse.uml2.uml model). So, I don't see a problem to write ATL transformations, but you would have to rewrite a Java generator from scratch. Therefore, I would recommend to look into the transformation approach in Papyrus SW designer. The idea is that the code generators support the basic structural UML entities and opaque expressions. Additional functionality, such as state-machine generation is provided by model 2 model transformations (i.e. UML to UML) that are part of a configurable/extensible transformation chain. Doing so, the existing Java code generator is reused. In this case, the required transformation would not be very different from the one we have for C++ .
Hope that helps
Ansgar
|
|
|
Powered by
FUDForum. Page generated in 0.74244 seconds