Metamodel to metamodel transformationhttps://www.eclipse.org/forums/index.php/mv/msg/369398/901540/#msg_901540
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!]]>Peter Johnsen2012-08-13T09:49:15-00:00Re: Metamodel to metamodel transformationhttps://www.eclipse.org/forums/index.php/mv/msg/369398/901542/#msg_901542
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!]]>Ed Willink2012-08-13T09:55:13-00:00Re: Metamodel to metamodel transformationhttps://www.eclipse.org/forums/index.php/mv/msg/369398/901544/#msg_901544
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.]]>Peter Johnsen2012-08-13T10:34:36-00:00Re: Metamodel to metamodel transformationhttps://www.eclipse.org/forums/index.php/mv/msg/369398/909373/#msg_909373
I noted that in the launch configuration it offers "metametamodel" checkbox, but no documentation to explain it...]]>Tom H2012-09-07T03:35:40-00:00