Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » how obtain a tree with rules
how obtain a tree with rules [message #486358] Thu, 17 September 2009 12:28
debutante is currently offline debutanteFriend
Messages: 6
Registered: July 2009
Junior Member
Good morning,

I want to obtain a tree with two knots. the father is the
"editor"(finalDSL!Editor) and the son is the list of containers which do
not contain graphic objects (frames).I try different rules but i don't
obtain wchich i would.

Here are my two rules:


rule E2P {
from e : finalDSL!Editor (e.MyContainer->size()<>0)

to out : javadestination!Package (
name <- e.name,
classes <- finalDSL!Container.allInstances()->collect(c|thisModule.C2C(c))
)
}

unique lazy rule C2C {
from e : finalDSL!Container (e.MyGObject->size()=0)
to out : javadestination!JAVAClass (
name <- e.name

) }

think you a lot
Previous Topic:[QVTO] How to handle optional attributes with primitive types?
Next Topic:syntax to define exp(3*log(3) in ATL file
Goto Forum:
  


Current Time: Fri Apr 26 06:05:10 GMT 2024

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

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

Back to the top