Hi Frank,
I think I found the problem. Actually it is a version problem with
the ATL metamodel. When this example was done I did not take into
account the 'refining mode' and the possibility of having abstract
ATL rules. Now there are two mandatory attributes 'isAbstract' and
'isRefining'.
For the moment, you can modify the 'AMWtoATL.atl' transformation
by doing the following:
- in the rule 'rule Module', it should be like this:
atl : ATLMeta!Module (
isRefining <- false, -- add this line
-in the rule 'rule Root', add two bindings:
atl : ATLMeta!MatchedRule (
isAbstract <- false, -- new
isRefining <- false, -- new
- in the rule 'rule ElementLink',
add the same two bindings.
atl : ATLMeta!MatchedRule (
isAbstract <- false, -- new
isRefining <- false, -- new
I will put the the transformation with these modifications in the
web site.
Regards,
Marcos.
Frank Grimm wrote:
Hi,
the ATL-model.ecore generated by executing AMWtoATL.atl holds
many elements
(it is attached to this posting). So it looks like transforming
the weaving
model into the ATL model works fine, but executing the generated
ATL-model.ecore does not properly work ...
Cheers,
Frank.
Marcos Didonet Del Fabro wrote:
Hi,
Can you look into the ATL-model.ecore to see if it has any
elements?
This way we can verify if the problem is when transforming the
weaving
model into the ATL model or when extracting the ATL-model.ecore
into .atl.
Regards,
Marcos.
Frank Grimm wrote:
Dear newsgroup,
I tried the Keys2Nested_AMW2ATL model weaving example and
following the
instructions given on the example's documentation website
(http://www.eclipse.org/gmt/amw/examples/Keys2Nested_AMW2ATL/Keys2Nested_AMW2ATL_doc.php)
I could execute the first ATL programme, i.e., AMW2toTL.atl to
create the
transformation model output_atl/ATL-model.ecore. But when I try to
"Extract ATL-0.2 model into ATL-0.2 file" from ATL-model.ecore,
the
generated output_atl/ATL-model.atl's content is just
module ModelTrans;
create OUT : XML
The rest of the file (as inculded in the example zip) is
missing. Neither
the eclipse log file nor the consolse show any error messages.
I'm using a "clean" Eclipse 3.1.1 installation with EMF 2.1.1,
ADT, AMW,
and AM3. The ADT version used is 20060113, AMW version is
20060126, and
AM3 version is 20060117 (all versions were downloaded from the
Eclipse
GMT website).
What am I doing wrong? Could you please give some hints which
part of the
source code is performing the extraction of an ATL model into a
ATL file?
Many thanks in advance,
Frank.
(Please remove "nospam-" in email address to directly reply via
email.)
------------------------------------------------------------------------