Transformation Lists [message #734492] |
Sat, 08 October 2011 01:33 |
Rui Domingues Messages: 194 Registered: October 2010 |
Senior Member |
|
|
I'm new at ATL, and I was trying to implement a transformation via ATL.
I've a metamodel A, like this:
Model( List{TI} )
TI (List{AC})
AC (name:String)
and I want to transform A models to a model conforming to a metamodel B.
B:
Model( clas: List{Cla} )
Cla (name)
My problem is that I know
A!Model is transformed to B!Model and B!Model.clas will contain a Cla for each AC in TI.
So I have:
rule Model {
s: A!Model
t: B!Model(
clas <- A!TI->allInstances()
)
but I dont know how is the rule for TI, since it should return a set of Clas.
Someone can explain me, how to do, when there are intermediate objects that are just containers, with no direct transformation?
Thanks in advance.
Rui
|
|
|
Powered by
FUDForum. Page generated in 0.03816 seconds