Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] lazy rules
[ATL] lazy rules [message #96884] Wed, 10 December 2008 14:54 Go to next message
Rasha is currently offline RashaFriend
Messages: 61
Registered: July 2009
Member
Does anyone know where I can find more information and examples about lazy
rules?

Thanks in advance,

Rasha
Re: [ATL] lazy rules [message #96893 is a reply to message #96884] Thu, 11 December 2008 09:28 Go to previous message
Tristan Faure is currently offline Tristan FaureFriend
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
>
>




Previous Topic:[QVTO] Using programatically provided model source
Next Topic:Correct way of using the output() function
Goto Forum:
  


Current Time: Fri Apr 19 08:36:36 GMT 2024

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

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

Back to the top