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: 301
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: Thu Apr 25 01:35:35 GMT 2024

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

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

Back to the top