Executing a one-time rule [message #54668] |
Wed, 25 July 2007 11:42  |
Eclipse User |
|
|
|
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 12:29  |
Eclipse User |
|
|
|
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)
|
|
|
Powered by
FUDForum. Page generated in 0.02989 seconds