Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » One model to many with composations ?
One model to many with composations ? [message #1833562] Sat, 17 October 2020 23:00 Go to next message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
Dear All,

I have to transform instance A to C, and B to D,E,F,G then, the order of the composition should be as follows C->D->E->F->G.

I research a lot, yet could find a way to link elements such as D,E,F,G.

The attached figure illustrates the problem.

Thanks

[Updated on: Sat, 17 October 2020 23:00]

Report message to a moderator

Re: One model to many with composations ? [message #1833565 is a reply to message #1833562] Sun, 18 October 2020 07:04 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 581
Registered: September 2012
Location: Belgium
Senior Member

If you use the standard ATL matched rules (so just "rule"), then the order of the model elements doesn't matter. You can refer to all elements in any rule, you just cannot navigate into target element properties.

Cheers,
Dennis
Re: One model to many with composations ? [message #1833566 is a reply to message #1833565] Sun, 18 October 2020 09:40 Go to previous messageGo to next message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
Dear Dennis,

Actually, I am able to transform all target elements, however, target C,D,E,F,G elements should be composed of each other such as C contains D, D contains E, E contains F, and F contains G. Because of not declaring any relation between these elements they are all transform as Root elements. So I should define any relation in order to make them composed of each other, otherwise they are not recognized by the viewer because of being Root elements.
Re: One model to many with composations ? [message #1833607 is a reply to message #1833566] Mon, 19 October 2020 17:31 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 581
Registered: September 2012
Location: Belgium
Senior Member

That is determined by your metamodel: the EReferences from one metaclass to another must be marked as containment.

Cheers,
Dennis
Previous Topic:Multiple Input models / metamodels (Model Fusion)
Next Topic:transform .atl file to .java file
Goto Forum:
  


Current Time: Sat Nov 11 08:17:59 GMT 2023

Powered by FUDForum. Page generated in 0.02006 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top