Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] problem with KM32ATLCopier transformation example
[ATL] problem with KM32ATLCopier transformation example [message #14097] Tue, 30 January 2007 18:46 Go to next message
Eclipse UserFriend
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 #14184 is a reply to message #14097] Thu, 01 February 2007 03:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atl_apprentice.yahoo.com

nobody?
Re: [ATL] problem with KM32ATLCopier transformation example [message #14201 is a reply to message #14097] Thu, 01 February 2007 05:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: freddy.allilaire.univ-nantes.fr

Hi,

I think you should regenerate the file "Sample-KM3.ecore". I suppose it
was generated with a previous version of the KM3 metamodel.

To do that, you should launch the action called "Inject KM3 file to KM3
model" (available in the context menu) on the file sample.km3.

Regards,
Freddy.

ATL_Apprentice a écrit :
> 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 #14274 is a reply to message #14201] Thu, 01 February 2007 18:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atl_apprentice.yahoo.com

Thank you very much! Works now!

Regards
Re: [ATL] problem with KM32ATLCopier transformation example [message #14291 is a reply to message #14097] Fri, 02 February 2007 04:54 Go to previous message
Eclipse UserFriend
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?
>
>
Previous Topic:[ATL] New ATL use case: DSLs coordination for Telephony
Next Topic:[ATL] Executing OCL queries
Goto Forum:
  


Current Time: Sun Nov 09 11:22:24 EST 2025

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

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

Back to the top