Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Transformation Lists
Transformation Lists [message #734492] Sat, 08 October 2011 01:33
Rui Domingues is currently offline Rui Domingues
Messages: 193
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
Previous Topic:index from sequence
Next Topic:Transforming Use Case Maps (jUCMNav) to Activity Diagrams (UML 2.0) using M2M
Goto Forum:
  


Current Time: Fri Oct 31 10:07:05 GMT 2014

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

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