Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » How to use ATL stand-alone
How to use ATL stand-alone [message #45682] Wed, 13 June 2007 03:31 Go to next message
stephen Yu is currently offline stephen YuFriend
Messages: 35
Registered: July 2009
Member
Hi,
Does anybody use ATL Command-Line done by Dennis?
( http://ssel.vub.ac.be/viewcvs/viewcvs.py/UML1CaseStudies/uml 1cs-atlcommandline/src/org/atl/commandline/Main.java?view=ma rkup)

Would you explain something about the parameters, see followings:
Usage: <this program> --trans <transformation url> [--in <id>=<model>
<id>=<metamodel> <MDR|EMF>] [--out <id>=<model> <id>=<metamodel>
<MDR|EMF>] [--lib <id>=<library url>] [--superimpose <transformation url>]
--next --trans ...

It's difficult for me to figure out the right value for each paramter.
Would you give me an example for this command-line?

Thanks a lot.

Stephen
Re: How to use ATL stand-alone [message #46981 is a reply to message #45682] Sat, 16 June 2007 16:06 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 295
Registered: July 2009
Senior Member
On 2007-06-13 05:31:39 +0200, shifeng.yu@hp.com (Stephen Yu) said:

> Hi, Does anybody use ATL Command-Line done by Dennis?
> ( http://ssel.vub.ac.be/viewcvs/viewcvs.py/UML1CaseStudies/uml 1cs-atlcommandline/src/org/atl/commandline/Main.java?view=ma rkup)

Would
>
> you explain something about the parameters, see followings:
> Usage: <this program> --trans <transformation url> [--in <id>=<model>
> <id>=<metamodel> <MDR|EMF>] [--out <id>=<model> <id>=<metamodel>
> <MDR|EMF>] [--lib <id>=<library url>] [--superimpose <transformation
> url>] --next --trans ...
>
> It's difficult for me to figure out the right value for each paramter.
> Would you give me an example for this command-line?
>
> Thanks a lot.
>
> Stephen

Assume your ATL transformation declares the following input and output models:

module MyTrans;
create OUT : MetaModelOut from IN : MetaModelIn;

I also assume that you're working with EMF, and your files are all
stored in a folder on c:\atl.
The you have to use the following command line:

--trans file:/C:/atl/MyTrans.asm
--in IN=file:/C:/atl/inmodel.in MetaModelIn=file:/C:/atl/in.ecore EMF
--out OUT=file:/C:/atl/outmodel.out MetaModelOut=file:/C:/atl/out.ecore EMF

(I hope I've describe the URLs in a correct format.)
The IDs are retrieved from the create-line in your ATL-transformation:

create
OUT: -- ID of out model
MetaModelOut -- ID of out metamodel
from
IN : -- ID of in model
MetaModelIn; -- ID of in metamodel

All paths have to be URLs, the transformation is the compiled version.

Hope this helps,

Jens
Previous Topic:[ATL] Can't use getOpposite on UML!Property
Next Topic:[ATL] var in imperative block
Goto Forum:
  


Current Time: Wed Nov 26 05:36:45 GMT 2014

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

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