Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » merging models
merging models [message #104791] Sun, 10 May 2009 16:43 Go to next message
debutante is currently offline debutanteFriend
Messages: 6
Registered: July 2009
Junior Member
good afternoon,

i have to merge two models (2 PIMs) to transform it to a PSM, I want to
know how should i define the ATL file?

does the ATL file contain the corespondence between concepts of the 2
source metamodels (metamodels of PIMs) and the metamodel of the PSM? or
there is other technic to do this transformation?

thx a lot
Re: merging models [message #104819 is a reply to message #104791] Mon, 11 May 2009 07:59 Go to previous message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
you can have a module declaration like this:

module Marte2ATL;
create OUT : PSM from IN1 : PIM1 , IN2 : PIM2;

and then you can have rules like this:

rule ModelElement_A {
from s : PIM1!MetaModelElementA1 , v : PIM2!MetaModelElementD2
(conditionOn{s,v})
to p: PSM!MetaModelElementF
(
...(Bindings)
)
Previous Topic:[ATL] get header from .asm or .atl in Java
Next Topic:[ATL] A Problem with atl transformation to Ecore
Goto Forum:
  


Current Time: Wed Sep 25 01:50:57 GMT 2024

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

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

Back to the top