Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » AMW » Problem in AMWtoATL(HOT)
Problem in AMWtoATL(HOT) [message #559407] Thu, 16 September 2010 14:40 Go to next message
masato  is currently offline masato
Messages: 2
Registered: September 2010
Junior Member
Hi

i want to do AMWtoATL(Generate Transformation[HOT]) from Families2Persons sample.

http://www.eclipse.org/m2m/atl/atlTransformations/Families2P e rsons/Families2Persons.zip

I'm getting ATL file like this.
------------------------------------------------------------
module T_In2Out;
create PersonsModel : Persons from FamiliesModel : Families;

rule Member_2_Male2 {
from
v_left : Families!Member
to
v_right : Families!Male (
fullName <- v_left.firstName
)
}
------------------------------------------------------------

but i wanted to ATL file like this..
------------------------------------------------------------
module T_In2Out;
create PersonsModel : Persons from FamiliesModel : Families;

rule Member_2_Male2 {
from
v_left : Families!Member
to
v_right : Persons!Male (
fullName <- v_left.firstName
)
}
------------------------------------------------------------


AMW file setting is ...

[load km3]
・mw_base_extension.km3、mmw_match.km3、mmw_propagation.k m3、mmw_compare.km3

[WeavingModel Panel]
・TransformationWeavingPanelExtension

[WModel]
・Matchmodel

[ left & right Panel]
・ModelRef、DefaultWovenPanel、
・Metamodel : Families.ecore 、 Persons.ecore

[match model]
・<ownedElement> Element Equal
  ・<child> Attribute Equal
    ・<left> Left Element firstName
    ・<right> Right Element fullName
  ・<left> Left Element Member
  ・<right> Right Element Male


I saw the problem from similar topic. but i still unsolved...
can you please help me.

I am sorry if my English is hard to understand.

thanks

masato.

[Updated on: Thu, 16 September 2010 14:42]

Report message to a moderator

Re: Problem in AMWtoATL(HOT) [message #629618 is a reply to message #559407] Wed, 29 September 2010 00:22 Go to previous message
Marcos Didonet Del Fabro is currently offline Marcos Didonet Del Fabro
Messages: 84
Registered: July 2009
Member
Hi,

You need to set up the right part of the binding with the "name" elemet" in the right woven panel.

Regards,

Marcos.

Previous Topic:AMW+ QVT
Next Topic:How to simple ATL
Goto Forum:
  


Current Time: Tue Sep 16 11:23:11 GMT 2014

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

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