[ATL] Multiple source patterns to an UML Association [message #674378] |
Thu, 26 May 2011 13:09  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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))
|
|
|
Powered by
FUDForum. Page generated in 0.06542 seconds