Combine / Concatenate matched rules of two modules [message #1722024] |
Tue, 02 February 2016 10:18 |
|
Hello,
I'm dealing with ATL (EMFTVM) for some weeks now and made several
transformations between meta models. Most of the modules transform
metamodels from or to UML.
I have a module which defines rules for the transformation of meta model
M1 to UML (M1->UML) and another module which defines rules for the
transformation from UML to meta model M2 (UML->M2).
Now, I need a transformation from M1 to M2 (M1->M2). Currently, I get
this by first do the transformation from M1 to UML and then take the
output resource as input resource for UML to M2 ((M1->UML)->(UML->M2)).
My question is: Is it possible to define a module for M1 to M2 which
uses M1ToUML and UMLToM2 (M1->UML->M2)? How would rules in this module
look like to reuse the rules from the other modules?
Thank you very much in advance.
Cheers,
Joachim
|
|
|
Re: Combine / Concatenate matched rules of two modules [message #1725105 is a reply to message #1722024] |
Mon, 29 February 2016 20:15 |
|
ATL does not allow this by design: you cannot build intermediate model states within a single ATL transformation. Because you only need a constant amount of intermediate states (only one), you can use a model transformation chain. With EMFTVM, you can use the EMFTVM-specific Ant tasks to achieve that. Using Ant, you can pass the intermediate model in-memory from the M1-to-UML transformation to the second UML-to-M2 transformation. See https://wiki.eclipse.org/ATL/EMFTVM#Ant
Cheers,
Dennis
|
|
|
|
Powered by
FUDForum. Page generated in 0.03484 seconds