[ATL] Combining values from several input models [message #108210] |
Fri, 10 July 2009 17:44 |
Tee Bee Messages: 18 Registered: July 2009 |
Junior Member |
|
|
I have three input models conforming to the following ecore metamodels;
MMA, MMB and MMC:
- MMA consists of two concepts: X and A where X has a containment
reference to A and an int attribute AA.
- MMB consists of concepts X and B where X contains a reference to B and
an int attribute BB.
- MMC has the concepts X and C, where X is composed of C. In addition, X
has an int attribute named CC.
- The output metamodel MMO has the concepts X, A, B and C, where X is
composed of A, B and C.
The question is; is it possible to transform input models conforming to
the metamodels MMA, MMB and MMC with objects (x a, aa : 3), (x b, bb : 4)
and (x c, cc : 5) in such a way that the output model conforming to MMO
yields entities x, a, b, c, where x is composed of a, b and c and contains
the attributes aa, bb and cc with values 3, 4 and 5 using ATL? In other
words; X in the output model is build by combining the values for X from
the three input models.
You probably need to evaluate input models somehow. Anyone who can
illustrate this with some ATL rules?
Any help is highly appreciated! Thanks! :)
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02802 seconds