Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Multiple source patterns to an UML Association(Multiple source patterns to an UML Association)
[ATL] Multiple source patterns to an UML Association [message #674378] Thu, 26 May 2011 13:09 Go to next message
Eclipse UserFriend
Hi, im learning ATL, everything was fine until this problem:

i have to create an UML association in the target model, to do this i have my model with this pattern object1-object2-object2-object4 tha association must be between object1 and object2, any suggestions? the objects are conected by means of a link(the link has source and target, the object not).

Thanks
Re: [ATL] Multiple source patterns to an UML Association [message #674508 is a reply to message #674378] Fri, 27 May 2011 03:37 Go to previous message
Eclipse UserFriend
You can have multiple froms for a rule. So then you have to code the corresponding filter.
example :
from object1 : UML!Class, object2 : UML!Class, object3 : UML!Class, object4 : UML!Class (object1.hasAssociationTo(object2) and object2.hasAssociationTo(object3) and object3.hasAssociationTo(object4))
Previous Topic:[Xtext] Reload behavior after changing ecore file
Next Topic:[ATL] http://wiki.eclipse.org/ATL/Concepts broken
Goto Forum:
  


Current Time: Sun Aug 31 08:40:17 EDT 2025

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

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

Back to the top