Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » collection of objects in the from of a rule
collection of objects in the from of a rule [message #57988] Thu, 16 August 2007 14:28 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:[ATL]Problem with transformation of a model that contains XMI href attribute
Next Topic:[ATL] Is it possible to add elements to an existing model ?
Goto Forum:
  


Current Time: Fri Apr 26 10:40:03 GMT 2024

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

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

Back to the top