Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How to handle meta-model dependencies ???
[ATL] How to handle meta-model dependencies ??? [message #669397] Tue, 10 May 2011 04:08
Aur is currently offline Aur
Messages: 29
Registered: August 2010
Junior Member
Hi all,

I am searching a way to produce an ATL transformation that uses a meta model which has some dependencies. The following figure shows the problem I am facing. (I hope so ...)
https://docs.google.com/drawings/pub?id=15IfRWVYdLgcuOITfpFeDhIybD1CK1G2P4U-rGmv4o1I&w=640&h=480


Ignoring B.ecore's dependencies, the ATL module could be something like:

module myModule;
create OUT: mmB_bis from IN: mmB;

rule B2B{
  from f : mmB!B
  to t : mmB_bis!B(
    b1 <- f.b1
  )
}


But if I want to use the dependencies, how can I produce something like:

module myModule;
create OUT: mmOut from IN: mmB;

rule B2B{
  from f:mmB!B
  to t: mmB_bis !B(
    b1 <- f.b1
    a1 <- f.a1
  )
}


This rule produces error, because of the fact that mmB!B.a1 is not defined. Which is true, it is an inherited feature coming from an other ecore file.

So if someone could give me some track, that will be really helpful.

Thanks in advance,

Aurelien


Previous Topic:[ATL] Using ATL in a "standalone" Software
Next Topic:[atl]executable file
Goto Forum:
  


Current Time: Tue Jul 29 19:01:03 EDT 2014

Powered by FUDForum. Page generated in 0.02425 seconds