Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » extract element of sequence
extract element of sequence [message #535416] Sun, 23 May 2010 10:44 Go to next message
graa is currently offline graaFriend
Messages: 42
Registered: April 2010
Member
hi ,
how can I extract element of sequence
b=Sequence {IN2!G1:uml!AbstractGoal,IN2!G2:uml!AbstractGoal,IN2!G3:uml! AbstractGoal}
thanks
Re: extract element of sequence [message #535443 is a reply to message #535416] Sun, 23 May 2010 16:12 Go to previous messageGo to next message
zoro  is currently offline zoro Friend
Messages: 26
Registered: April 2010
Junior Member
You can use the function "one()" or "any()"

[Updated on: Sun, 23 May 2010 16:12]

Report message to a moderator

Re: extract element of sequence [message #535463 is a reply to message #535443] Sun, 23 May 2010 19:35 Go to previous messageGo to next message
graa is currently offline graaFriend
Messages: 42
Registered: April 2010
Member
thanks ,
but how can use this function?
Re: extract element of sequence [message #535662 is a reply to message #535416] Tue, 25 May 2010 08:15 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
b->at(x)
Re: extract element of sequence [message #535770 is a reply to message #535662] Tue, 25 May 2010 14:39 Go to previous messageGo to next message
graa is currently offline graaFriend
Messages: 42
Registered: April 2010
Member
what is x?
Re: extract element of sequence [message #535775 is a reply to message #535416] Tue, 25 May 2010 14:56 Go to previous message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
The index in the sequence of the element you want to obtain. The ATL User Guide contains everything you need, have a read !
Previous Topic:[ATL] Reference to input model in output model
Next Topic:[ATL] I do not understand rule inheritance
Goto Forum:
  


Current Time: Thu Apr 25 08:32:55 GMT 2024

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

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

Back to the top