|
Re: [ATL] lazy rules [message #96893 is a reply to message #96884] |
Thu, 11 December 2008 09:28 |
Tristan Faure Messages: 460 Registered: July 2009 |
Senior Member |
|
|
Hi Rasha
lazy rules permits to do the same thing as matched rules but they are
explictly called example :
Meta model :
Model -----> Packages
(contanment * ==> packageableElements)
in rule Model2X (s : source, t : target)
you can say
myCollec <- t.myCollec->union(s.packageableElements->collect(p |
thisModule.theConcernedLazyRule(p)))
-- the lazy rule is applied for each element of the collection
In a lazy rule you can call a resolveTemp or doing anything you can do
in matched rules
Note : you can put unique for lazy rule and the object will be created
once time even you match an object several times
more information : http://wiki.eclipse.org/ATL_FAQ
Rasha a écrit :
> Does anyone know where I can find more information and examples about
> lazy rules?
>
> Thanks in advance,
>
> Rasha
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.01325 seconds