Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] ATL as source metamodel
[ATL] ATL as source metamodel [message #480229] Fri, 14 August 2009 13:22 Go to next message
Marcel  is currently offline Marcel Friend
Messages: 54
Registered: July 2009
Member
I want to create a transformation that transforms existing ATL
transformations into something else.
What steps should I take to create an ATL model from my textual
transformation such that I can use it as input model?
Do I need to use TCS for this, or are there other options as well?
Re: [ATL] ATL as source metamodel [message #481251 is a reply to message #480229] Thu, 20 August 2009 09:13 Go to previous messageGo to next message
Marcel  is currently offline Marcel Friend
Messages: 54
Registered: July 2009
Member
I learned by going trough the ATL wiki that I can also use the ATL parser
to acquire an ATL model from a textual ATL transformation.

Can anybody explain to me how I can invoke just the ATL parser to generate
an ATL model from my ATL code?

Thanks!


Marcel wrote:

> I want to create a transformation that transforms existing ATL
> transformations into something else.
> What steps should I take to create an ATL model from my textual
> transformation such that I can use it as input model?
> Do I need to use TCS for this, or are there other options as well?
Re: [ATL] ATL as source metamodel [message #481583 is a reply to message #481251] Fri, 21 August 2009 16:26 Go to previous messageGo to next message
Kelly Garces is currently offline Kelly GarcesFriend
Messages: 39
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------080308010303090100070302
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Marcel,

> Can anybody explain to me how I can invoke just the ATL parser to
> generate an ATL model from my ATL code?
>

To inject ATL code to ATL models, you need ATL+AM3. Having this version,
you have two ways to perform the injection:

1) using a contextual menu
Open AM3 perspective
Right click on transformation
Select the option Inject ATL file to ATL model

2) using an ANT task

<am3.loadModel modelhandler="EMF" name="transfo" metamodel="ATL" path="..">
<injector name="ebnf"> <param name="name" value="ATL"/>
<param name="parserGenerator" value="antlr3"/> <classpath>
<pathelement
location="/ATL/Syntax/ATL-parser.jar"/> </classpath> </injector>
</am3.loadModel>
For the second option... Find enclosed a project containing the
ATL-parser.jar, you should unzip it into your workspace.

Regards,

--
Kelly Garces - Phd. student
AtlanMod & AsCoLa research teams
Re: [ATL] ATL as source metamodel [message #492486 is a reply to message #480229] Tue, 20 October 2009 15:13 Go to previous message
Kelly Garces is currently offline Kelly GarcesFriend
Messages: 39
Registered: July 2009
Member
Hi Marcel,

I suggest you to install the ATL version 3.0 from the CVS.
If there was any issue of inheritance rules in previous version, these
should be solved in ATL 3.0.

I actually tested the way of injecting ATL files (i.e., by means of Ant
task), I got the expected model. Notably, I got the references to
superRules.

Find below the ant task doing that:

<atl.loadModel modelHandler="EMF" name="transfo" metamodel="ATL"
path="..." >
<injector name="ATL"/>
</atl.loadModel>

The installation guide of ATL 3.0 is

http://wiki.eclipse.org/ATL_Developer_Doc#Install_ATL_from_C VS

Best regards,


Marcel a écrit :
> I want to create a transformation that transforms existing ATL
> transformations into something else.
> What steps should I take to create an ATL model from my textual
> transformation such that I can use it as input model?
> Do I need to use TCS for this, or are there other options as well?
>
>


--
Kelly Garces - Phd. student
AtlanMod & AsCoLa research teams
École des Mines de Nantes
4, rue Alfred Kastler
44307 Nantes Cedex 3 - France
Previous Topic:[ATL]Standalone App for ATL Transformation?
Next Topic:[QVTO] Can't resolve EObject as OCL type?
Goto Forum:
  


Current Time: Mon Jan 20 03:49:47 GMT 2025

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

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

Back to the top