collection of objects in the from of a rule [message #57988] |
Thu, 16 August 2007 14:28 |
Eclipse User |
|
|
|
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
"rule" ?
like for example
rule a{
from b : UML!Model,
c : Set(UML!ModelElement)
-- c must be a collection of ownedElement of b( c == b.ownedElement)
to......
}
|
|
|
Re: collection of objects in the from of a rule [message #58041 is a reply to message #57988] |
Thu, 16 August 2007 15:05 |
Eclipse User |
|
|
|
Originally posted by: quentin.glineur.obeo.fr
This is a multi-part message in MIME format.
--------------000305060201010700040409
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Hi, Youssef
When you post about ATL, please put [ATL] at the beginning of the
subject. Thanks.
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.
Regards,
Quentin GLINEUR
Youssef SROUR a
|
|
|
Powered by
FUDForum. Page generated in 0.02991 seconds