Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » m2m ATL : using correct input format
m2m ATL : using correct input format [message #106032] Thu, 04 June 2009 05:36 Go to next message
mani is currently offline maniFriend
Messages: 1
Registered: July 2009
Junior Member
hi everyone,
I am using eclipse 3.3 , java1.6 ,emf 2.2 ATL 2.0.0

I am trying to run a transformation of a instance of one metamodel 2
instance of another metamodel using ATL

i am facing a problem of giving the input of instance & the meta models
in the right input format

As a result ,the transformation done using them is giving me a blank
out put . can some one elp me out regarding this .....

THE blank OUTPUT :
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"/>


THE TRANSFORMATION: ATL FILE :-

module Constlit; -- Module Template
create OUT : ASTMcoreXML from IN : UnionAppXML;

rule Constlit{
from
s :UnionApp!"AST::Constlit"
to
t :ASTMcore!"ASTMSyntax::Expression::BitLiteral"(
Value <- s.Uvalue
)
}

A PART OF META MODEL :

<?xml version="1.0" encoding="ASCII"?>
<http..schema.omg.org.spec.mof.2.0.emof.xmi:Package xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:http..schema.omg.org.spec.mof.2.0.emof.xmi="http://schema.omg.org/spec/mof/2.0/emof.xmi"
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Package.57d664ca 91e3425d-78715771a3840a4b "
name="ASTMCore" uri="ASTMCore">
<ownedType xmi:type="http..schema.omg.org.spec.mof.2.0.emof.xmi:Class"
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.151c726f36d99e61b38b fd1d7aea990906658d8dcf37dadc46be039cacd75a5c "
name="GASTMObject" isAbstract="true"/>
<nestedPackage
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Package.3001b231 1320b3db-35399e1f2819e75d "
name="ASTMSemantics" uri="ASTMSemantics">
<ownedType xmi:type="http..schema.omg.org.spec.mof.2.0.emof.xmi:Class"
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.0600ece0378d66e6e92a 07be9629d06531724505645a2ab1f73aec0f53b28587 "
name="AggregateScope"
superClass=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.405d9109886369aae195 5fb909f44cff37ee92c97ce89868a1104dcc13b1d3ee "/>
<ownedType xmi:type="http..schema.omg.org.spec.mof.2.0.emof.xmi:Class"
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.d46a543db8dc4ba272f3 4b118e6f704b9410c1e78a87a5a6be9154b69cccc7cc "
name="BlockScope"
superClass=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.405d9109886369aae195 5fb909f44cff37ee92c97ce89868a1104dcc13b1d3ee "/>
<ownedType xmi:type="http..schema.omg.org.spec.mof.2.0.emof.xmi:Class"
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.180f471e367f1ab781aa bdf0da393d458139734ba00c7d4f29db6a6b158159ce "
name="FunctionScope"
superClass=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.405d9109886369aae195 5fb909f44cff37ee92c97ce89868a1104dcc13b1d3ee ">
<ownedAttribute
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Property.7c7953c 0c1fe4a9-b4bef414f2a731e8 "
name="scopeOpenedBy" lower="1" upper="1"
opposite=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Property.ddd03ae 32126cd76-ce60703c3936f71f "
type=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.5b012d9086c78a88a083 cbbed7bc4f3c80afc5831bd279316f83ce4bdb49a9a7 "/>
</ownedType>
<ownedType xmi:type="http..schema.omg.org.spec.mof.2.0.emof.xmi:Class"
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.2a06145026ada7a65aa9 db834f87ec5924335d76ff4c3b1efa7b95f0dce2443c "
name="GASTMSemanticObject" isAbstract="true"
superClass=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.151c726f36d99e61b38b fd1d7aea990906658d8dcf37dadc46be039cacd75a5c "/>
<ownedType xmi:type="http..schema.omg.org.spec.mof.2.0.emof.xmi:Class"
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.55b41f5a96e2f2960bf8 cb9b16b49be6bd6ead6c564c50fefdbf30d26684c2d2 "
name="GlobalScope"
superClass=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.405d9109886369aae195 5fb909f44cff37ee92c97ce89868a1104dcc13b1d3ee "/>
<ownedType xmi:type="http..schema.omg.org.spec.mof.2.0.emof.xmi:Class"
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.3e380153c455dc7ce2d5 cec2658a67b41e7e28eed529f66bd32b668a842969f2 "
name="ProgramScope"
superClass=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.405d9109886369aae195 5fb909f44cff37ee92c97ce89868a1104dcc13b1d3ee "/>
<ownedType xmi:type="http..schema.omg.org.spec.mof.2.0.emof.xmi:Class"
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.bca02d0a82125d103987 b7751695770bde67ec0005be32ba7fee4d5ada89b7f8 "
name="Project"
superClass=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.2a06145026ada7a65aa9 db834f87ec5924335d76ff4c3b1efa7b95f0dce2443c ">
<ownedAttribute
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Property.3c63edc 696b0d7a2-8823fe7b18e199da "
name="files" lower="1" upper="-1"
type=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.cb1bf559b29340b0c473 63c451d3c6f44f3415e5d2533ac6d488adff5ed84661 "/>
<ownedAttribute
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Property.1ef83f8 5bd5fb8eb-8f64eb82b98d718d "
name="outerScope" lower="0" upper="1"
type=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.55b41f5a96e2f2960bf8 cb9b16b49be6bd6ead6c564c50fefdbf30d26684c2d2 "/>
</ownedType>
<ownedType xmi:type="http..schema.omg.org.spec.mof.2.0.emof.xmi:Class"
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.405d9109886369aae195 5fb909f44cff37ee92c97ce89868a1104dcc13b1d3ee "
name="Scope"
superClass=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.2a06145026ada7a65aa9 db834f87ec5924335d76ff4c3b1efa7b95f0dce2443c ">
<ownedAttribute
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Property.b9fa62b c9e588c71-ede957b490bf4f06 "
name="declOrDefn" lower="0" upper="-1"
type=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.194de51c1b872adf917d 3263172d0eb932bd1900f217aaf31f3f97fedfb2e3b8 "/>
<ownedAttribute
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Property.23c5a11 a161f3023-b357e111057213ba "
name="childScope" lower="0" upper="-1"
opposite=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Property.dd2fada 7f1ef0acb-6f978ca763ee31c5 "
type=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.405d9109886369aae195 5fb909f44cff37ee92c97ce89868a1104dcc13b1d3ee "/>
<ownedAttribute
xmi:id=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Property.dd2fada 7f1ef0acb-6f978ca763ee31c5 "
name="openedBy" lower="1" upper="1"
opposite=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Property.23c5a11 a161f3023-b357e111057213ba "
type=" http.//schema.omg.org/spec/mof/2.0/emof.xmi.Class.http.//sch ema.omg.org/spec/mof/2.0/emof.xmi.Class.405d9109886369aae195 5fb909f44cff37ee92c97ce89868a1104dcc13b1d3ee "/>
</ownedType>
Re: m2m ATL : using correct input format [message #106168 is a reply to message #106032] Mon, 08 June 2009 09:43 Go to previous message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020409010909050704080507
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

Maybe I miss something but it seems you have different namings for
metamodel shortname in your transformation:
UnionApp and UnionAppXML, ASTMcoreXML and ASTMcore

The "blank output" is generated by default. Do you have a stacktrace in
the Eclipse console view?

Regards,
Freddy.

mani a
Previous Topic:[QVTO] Memory Leak with Intermediate Properties?
Next Topic:problem launching atl from java
Goto Forum:
  


Current Time: Tue Apr 30 05:53:59 GMT 2024

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

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

Back to the top