| [ATL] problem with KM32ATLCopier transformation example [message #14097] |
Tue, 30 January 2007 18:46  |
Eclipse User |
|
|
|
Originally posted by: atl_apprentice.yahoo.com
Hi,
I want to learn about ATL transformations which have some ATL transformation
as a target.
The only example I could find on
http://www.eclipse.org/m2m/atl/atlTransformations/ was the KM32ATLCopier
transformation example. But the result of the transformation was empty.
I'm working with the ATL bundle from the INRIA website
( http://www.sciences.univ-nantes.fr/lina/atl/www/atldemo/ATLB undle-20060501.zip)
Here's what I did:
- I extracted the archive to my eclipse workspace folder
- I imported the existing project into eclipse
- I created the run configuration as follows:
> ATL Configuration tab:
* Project name: KM32ATLCopier
* ATL file name: /KM32ATLCopier/KM32ATLCopier.atl
> Model Choice tab
* Model: IN, Meta model: KM3
* Model: OUT, Meta model: ATL
* Path editor:
OUT: "/KM32ATLCopier/ATLCopier.ecore"
IN: "/KM32ATLCopier/Sample-KM3.ecore"
ATL: "uri:http://www.eclipse.com/gmt/2005/ATL"
KM3: "uri:http://www.eclipse.com/gmt/2005/KM3"
In the configuration.png image included in the example archive it
shows "uri:KM3".
I don't know how they did that, but I don't think it makes a
difference.
- I checked the ATLCopier.ecore file with a text editor BEFORE running
KM32ATLCopier
It appeared to be non-empty.
- I runned KM32ATLCopier using the run configuration I just created.
- When I look at ATLCopier.ecore now it only contains:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
And I get no problems/errors/warning or whatsoever...
What's wrong with this example?
|
|
|
|
|
|
| Re: [ATL] problem with KM32ATLCopier transformation example [message #14291 is a reply to message #14097] |
Fri, 02 February 2007 04:54  |
Eclipse User |
|
|
|
Originally posted by: marcos.didonet-del-fabro.univ-nantes.fr
Hi,
I have been working with ATL transformations that take weaving models as input and that
produce ATL transformations as output (higher-order transformations).
You can find a set of HOTs in the AMW (Atlas Model Weaver) use cases page. This way you
can have more examples about this topic.
http://www.eclipse.org/gmt/amw/usecases/
I give you a brief overview of three of them:
- Metamodel comparison and model migration: an ATL transformation takes a weaving model as
input an produces an ATL transformation as output. This transformation will perform the
transition between two different versions of a same metamodel.
- Tool interoperability: an ATL transformation takes a weaving model between two tool
metamodels as input an produces an ATL transformation as output. This transformation will
transform the models of one tool into the models of another tool.
- Traceability of model transformations: an ATL transformation takes a transformation as
input (Class2Relational) and produces a new Class2Relational transformation. This
transformation is modified to generate an additional traceability weaving model.
Regards,
Marcos.
ATL_Apprentice wrote:
> Hi,
>
> I want to learn about ATL transformations which have some ATL transformation
> as a target.
>
> The only example I could find on
> http://www.eclipse.org/m2m/atl/atlTransformations/ was the KM32ATLCopier
> transformation example. But the result of the transformation was empty.
>
> I'm working with the ATL bundle from the INRIA website
> ( http://www.sciences.univ-nantes.fr/lina/atl/www/atldemo/ATLB undle-20060501.zip)
>
> Here's what I did:
>
> - I extracted the archive to my eclipse workspace folder
>
> - I imported the existing project into eclipse
>
> - I created the run configuration as follows:
> > ATL Configuration tab:
> * Project name: KM32ATLCopier
> * ATL file name: /KM32ATLCopier/KM32ATLCopier.atl
> > Model Choice tab
> * Model: IN, Meta model: KM3
> * Model: OUT, Meta model: ATL
> * Path editor:
> OUT: "/KM32ATLCopier/ATLCopier.ecore"
> IN: "/KM32ATLCopier/Sample-KM3.ecore"
> ATL: "uri:http://www.eclipse.com/gmt/2005/ATL"
> KM3: "uri:http://www.eclipse.com/gmt/2005/KM3"
>
> In the configuration.png image included in the example archive it
> shows "uri:KM3".
> I don't know how they did that, but I don't think it makes a
> difference.
>
> - I checked the ATLCopier.ecore file with a text editor BEFORE running
> KM32ATLCopier
> It appeared to be non-empty.
>
> - I runned KM32ATLCopier using the run configuration I just created.
>
> - When I look at ATLCopier.ecore now it only contains:
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
>
> And I get no problems/errors/warning or whatsoever...
>
>
>
> What's wrong with this example?
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04010 seconds