Skip to main content



      Home
Home » Archived » AMW » Problem in AMWtoATL(HOT)
Problem in AMWtoATL(HOT) [message #559407] Thu, 16 September 2010 10:40 Go to next message
Eclipse UserFriend
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 10:42] by Moderator

Re: Problem in AMWtoATL(HOT) [message #629618 is a reply to message #559407] Tue, 28 September 2010 20:22 Go to previous message
Eclipse UserFriend
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: Thu Mar 20 21:55:18 EDT 2025

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

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

Back to the top