Create Weaving Model from Transformation [message #496293] |
Mon, 09 November 2009 10:55  |
Eclipse User |
|
|
|
Hello Community,
is there a way to generate a weaving model out of an ATL transformation?
My problem is the following: I do have a weaving model Mw which hold refs to 2 different metamodels Ma and Mb. I also have a transformation which transforms Ma to a new Mc. What I need now is to update the refs in Mw of Ma to Mc. If the weaving model would work on the model level this would be no problem, then I could use the trace model approach. But the weaving model references into the metamodels Ma and Mb, so the tracing approach does not work.
Any ideas?
Greetings Simon
|
|
|
Re: Create Weaving Model from Transformation [message #496832 is a reply to message #496293] |
Wed, 11 November 2009 09:10  |
Eclipse User |
|
|
|
Hi Simon,
You can create a weaving model from an ATL transformation by implementing a higher order transformation, i.e., a transformation that takes as input an ATL transformation model Mt and that produces as output a weaving model Mw'.
For instance, for every rule in Mt you can produce a WLink, and for every binding within the rule you can produce a WLinkEnd. To do that, you need to know the metamodel of ATL.
Otherwise, what is the relation between Mb and Mc? Mc is a new version of Mb? In this case, you may check the metamodel difference approaches ( http://www.eclipse.org/m2m/atl/usecases/MMIndApproachtoDiffR ep/). They focus on representing the differences between metamodels, not on updating the weaving model, but it could be an inspiration .
Regards,
Marcos.
|
|
|
Powered by
FUDForum. Page generated in 0.03056 seconds