Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How to extract an ATL model to an ATL file?
[ATL] How to extract an ATL model to an ATL file? [message #101848] Mon, 16 March 2009 10:10 Go to next message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
HI,
To do a high order transformation with ATL i need to extract an ATL model
(.ecore) to an ATL file (.atl) so that i can compile it (is it possible to
directly compile the ATL model into .asm ?). I'm using ATL 3.0, i've seen
some examples that use TCS but i think that was with ATL2.x (i'm i right?).

thanks in advance

Skander TURKI
UBS Lab-STICC
Lorient.
Re: [ATL] How to extract an ATL model to an ATL file? [message #101957 is a reply to message #101848] Mon, 16 March 2009 14:05 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
Skander wrote:
> HI,
> To do a high order transformation with ATL i need to extract an ATL
> model (.ecore) to an ATL file (.atl) so that i can compile it (is it
> possible to directly compile the ATL model into .asm ?). I'm using ATL
> 3.0, i've seen some examples that use TCS but i think that was with
> ATL2.x (i'm i right?).
>
> thanks in advance
>
> Skander TURKI
> UBS Lab-STICC Lorient.
>

Here's an example of how to extract ATL models to text via Ant:
http://ssel.vub.ac.be/viewvc/atl-superimposition-semantics/b uild.xml?revision=7530&view=markup

This example is based on an ATL 2.1.0 snapshot, which includes AM3.

In principle, it's also possible to compile an ATL model into a .asm
file, but you'll have to write your own compiler that skips the parsing
step, based on AtlDefaultCompiler.java. It's normally easier to extract
ATL models to file first, provided you have the ATL Ant tasks available.

Dennis
Previous Topic:[ATL] How can I get all the possible values of an enumeration?
Next Topic:[XMI] XMI parser
Goto Forum:
  


Current Time: Mon Sep 23 05:03:17 GMT 2024

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

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

Back to the top