Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Executing a one-time rule
Executing a one-time rule [message #54668] Wed, 25 July 2007 15:42 Go to next message
Eclipse UserFriend
Originally posted by: leonardobsjr.yahoo.com.br

Hello Everyone,
I'm in a need of a way to use a one-time rule to work with a set of
objects. Giving some details, i have a bag of instantiated objects from a
class A. I want to get all those objects and make them atrributes of a
class B with a one-time rule that get all those objects and return a
single B class. I know i can't do it with a declarative rule because when
it matches always return something.
I don't know if i explained it well, but that's it.

Thanks,
Sorry about the bad english (wrote in a hurry),
Leonardo Jr.
Re: Executing a one-time rule [message #54743 is a reply to message #54668] Wed, 25 July 2007 16:29 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
Leonardo Jr. a écrit :
> Hello Everyone,
> I'm in a need of a way to use a one-time rule to work with a set of
> objects. Giving some details, i have a bag of instantiated objects from
> a class A. I want to get all those objects and make them atrributes of a
> class B with a one-time rule that get all those objects and return a
> single B class. I know i can't do it with a declarative rule because
> when it matches always return something. I don't know if i explained it
> well, but that's it.
>
> Thanks, Sorry about the bad english (wrote in a hurry),
> Leonardo Jr.
>
>
I think lazy rules could help you, take look at this section in ATL wiki :
http://wiki.eclipse.org/ATL_Language_Troubleshooter

Regards,

--
William Piers
MDA Consultant, Obeo (http://www.obeo.fr)
Previous Topic:ATL User Manual
Next Topic:[ATL] graphical to hierarchical languages
Goto Forum:
  


Current Time: Tue Jan 19 22:35:33 GMT 2021

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

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

Back to the top