|collection of objects in the from of a rule [message #57988]
||Thu, 16 August 2007 14:28
Originally posted by: youssef.srour.etu.univ-nantes.fr|
I have a question concern the "from" clause of a rule.
is it possible to get back a collection of objects in the "from" of a
like for example
from b : UML!Model,
c : Set(UML!ModelElement)
-- c must be a collection of ownedElement of b( c == b.ownedElement)
|Re: collection of objects in the from of a rule [message #58041 is a reply to message #57988]
||Thu, 16 August 2007 15:05
Originally posted by: quentin.glineur.obeo.fr|
This is a multi-part message in MIME format.
Content-Type: text/plain; charset=ISO-8859-15
When you post about ATL, please put [ATL] at the beginning of the
In fact, from your case description, I can't figure out a need of such a
collection. Indeed, the "from" part is used to filter the input model
elements in order to create the corresponding model fragments. There, c
does not bring any information about the matching. So it is not suitable
for a "from" clause.
If your need is to access this collection for the creation of your
element, simply use OCL expressions.
Youssef SROUR a
Powered by FUDForum
. Page generated in 0.01737 seconds