Problem whit ATL trasformation [message #161834] |
Thu, 20 July 2006 04:44 |
Eclipse User |
|
|
|
Originally posted by: teresa.bisanti.gmail.com
Hallo everybody,
I'm beginner of EMF e ATL.
I have problems with the trasformation in models.
I have installed:
Eclipse 3.1.2
EMF 2.1
ATL 1.0
OMONDO Eclipse UMLfreeEdition 2.1.
I'd like to make the following trasformation:
| MM1 | --------( Rules )-------- | MM2 |
^ ^ ^
| | |
| | |
| M1 | ---->( Trasformation )---> | M2 |
First step:
| MM1 |
^
|
|
| M1 |
I realized the first step without any problems. In this way:
1) I created a java project;
2) I created a Class Diagram creating following files:
MM1.ecd;
MM1.ecore;
3)I have created a EMF Project and I created
MM1.edit;
MM1.editor;
MM1.genmodel;
4)I have created a EMF model creating following file:
M1.MM1 (Note the extension !!!!!!)
By the same way I realized the last step:
| MM2 |
^
|
|
| M2 |
Third step:
( Rules )
^
|
|
( Trasformation )
By using ATL I'm able define the rules of trasformation making MM12MM2.atl
But trying to apply it,
it require me as input a MODEL with an extention (".ecore" or ".xmi") not
avaible.
Just to better explain:
EMF create a file ".ecore" only for the METAMODEL but not for model.
Indeed the model receives as extension metamodel's name.
Where am I wrong?
Is there another way to have a model with ".ecore" extension?
thanks
|
|
|
Powered by
FUDForum. Page generated in 0.07321 seconds