Issue when helper does not match equivalent elements [message #1220705] |
Fri, 13 December 2013 03:30  |
Eclipse User |
|
|
|
Hi,
I have the following helper which is called from both lazy and matched rules. I have noticed that it always returns the empty OrderedSet{}. The elements returned by the getConstrainedElements() do have equivalents as getPoints() is called on every element in the model.
helper def : getPoints(element : UML!Element) : OrderedSet(UML!Constraint) =
if(thisModule.isDM())
then
OrderedSet{}
else
UML!Constraint.allInstances()->select(e|e.getConstrainedElements()->collect(f|f.getUniqueElementEncoding)->flatten()->includes(element.getUniqueElementEncoding) )
endif;
The UML API is fine but ATL does not match the elements as it thinks they are not the same. If I look at their XMI ID in ATL they also do not match as the element passed in has a unique ID every time instead of the one that it really has in the underlying .uml file. Is there a way of performing such matches correctly?
Regards,
Ronan
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06424 seconds