Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Metamodel to metamodel transformation
Metamodel to metamodel transformation [message #901540] Mon, 13 August 2012 09:49 Go to next message
Peter Johnsen is currently offline Peter JohnsenFriend
Messages: 52
Registered: January 2012
Member
Hi,

I wonder whether someone can help me out on this one.

I would like to use ATL to tranform a metamodel conforming to one meta-metamodel to a metamodel conforming to another meta-metamodel. That is, the source and target models reside on M2 and not M1 which is a more common scenario. Additionally, I wonder how to define these models in EMF.

What I would like to do is this (the numbers indicate meta levels):

- Define a meta-metamodel X3 in EMF named X3.ecore
- Create a metamodel conforming to X2 and name it X2.ecore
- Define a meta-metamodel Y3 in EMF named Y3.ecore
- Define a transformation mapping concepts from X3 to concepts in Y3 using ATL
- Transform the X2 model to an Y2 model (Y2.ecore)
- Create a model Y1 that confroms to Y2

1. How can I define the models?
2. How can I configure the ATL configuration to use my meta-metamodels and thereby execute the transformation?

Hopefully there are some experts out there!
Re: Metamodel to metamodel transformation [message #901542 is a reply to message #901540] Mon, 13 August 2012 09:55 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4187
Registered: July 2009
Senior Member
Hi

Ignore terminology such as M1,M2,M3; it frequently just causes confusion.

Model transformation can be done at any level with meta-models from the
next higher level.

You just need an ordinary model to model transformation.

Regards

Ed Willink


On 13/08/2012 10:49, Peter Johnsen wrote:
> Hi,
>
> I wonder whether someone can help me out on this one.
>
> I would like to use ATL to tranform a metamodel conforming to one
> meta-metamodel to a metamodel conforming to another meta-metamodel.
> That is, the source and target models reside on M2 and not M1 which is
> a more common scenario. Additionally, I wonder how to define these
> models in EMF.
>
> What I would like to do is this (the numbers indicate meta levels):
>
> - Define a meta-metamodel X3 in EMF named X3.ecore
> - Create a metamodel conforming to X2 and name it X2.ecore
> - Define a meta-metamodel Y3 in EMF named Y3.ecore
> - Define a transformation mapping concepts from X3 to concepts in Y3
> using ATL
> - Transform the X2 model to an Y2 model (Y2.ecore)
> - Create a model Y1 that confroms to Y2
>
> 1. How can I define the models?
> 2. How can I configure the ATL configuration to use my meta-metamodels
> and thereby execute the transformation?
>
> Hopefully there are some experts out there!
Re: Metamodel to metamodel transformation [message #901544 is a reply to message #901542] Mon, 13 August 2012 10:34 Go to previous messageGo to next message
Peter Johnsen is currently offline Peter JohnsenFriend
Messages: 52
Registered: January 2012
Member
Thanks for your rapid reply!

OK, that is good to hear - but I still wonder both how to define the models and how to setup the configuration.

E.g. if I create an Ecore model, how can I create a model that conforms to this, which again can be instantiated into terminal models. This is not at all clear.
If I create an Ecore model, and e.g. create a dynamic instance of on of its class, the resulting model can not be used as a metamodel.
Re: Metamodel to metamodel transformation [message #909373 is a reply to message #901544] Fri, 07 September 2012 03:35 Go to previous message
Tom H is currently offline Tom HFriend
Messages: 136
Registered: July 2009
Senior Member
I am interested in this also.

I noted that in the launch configuration it offers "metametamodel" checkbox, but no documentation to explain it...
Previous Topic:Reference Attributes in XMI
Next Topic:ATL transformation from EObject
Goto Forum:
  


Current Time: Fri Dec 19 14:27:48 GMT 2014

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

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