Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » ATL Keep UML2 model references
ATL Keep UML2 model references [message #1660779] Mon, 09 March 2015 10:32 Go to next message
Bastian Mohrmann is currently offline Bastian MohrmannFriend
Messages: 12
Registered: November 2014
Junior Member
Hello ATL Community,

i am currently developing a model-to-model transformation from a model A that references UML2 to another model B that also references UML2.

What i am trying to do now is the following:
Lets suppose there is a class AA in model A that has an attribute "type" which references to an UML2 class. This class AA should now be transformed to a class BB from model B which also has this attribute "type" which references to an UML2 class. How can i define in a transformation rule that it just should keep the reference? Do i have to do "model weaving" or is there a simpler way?

Regards,
Bastian Mohrmann
Re: ATL Keep UML2 model references [message #1676112 is a reply to message #1660779] Sun, 15 March 2015 10:29 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Are A and B both expresssed in the UML language? Or are they metamodels that extend the UML2 metamodel?

Cheers,
Dennis
Re: ATL Keep UML2 model references [message #1679015 is a reply to message #1676112] Mon, 16 March 2015 12:36 Go to previous messageGo to next message
Bastian Mohrmann is currently offline Bastian MohrmannFriend
Messages: 12
Registered: November 2014
Junior Member
They are both metamodels that extend the UML2 metamodel
Re: ATL Keep UML2 model references [message #1689444 is a reply to message #1679015] Mon, 23 March 2015 15:38 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member



  1. Enable "allow inter-model references" in your ATL launch configuration
  2. Make sure that the "type" EReference you mentioned is not a containment reference
  3. Do not transform the referenced UML2 EClass



Cheers,
Dennis
Re: ATL Keep UML2 model references [message #1693032 is a reply to message #1689444] Tue, 21 April 2015 11:16 Go to previous message
Bastian Mohrmann is currently offline Bastian MohrmannFriend
Messages: 12
Registered: November 2014
Junior Member
Thanks Denis, it works now.

I followed the three advises you gave and everything is fine now.

Sorry for the late response. Regards,
Bastian
Previous Topic:Problem of transformation
Next Topic:[EMFTVM] Inheritance in lazy rule
Goto Forum:
  


Current Time: Wed Apr 24 23:15:04 GMT 2024

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

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

Back to the top