Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Beginner's Question
[ATL] Beginner's Question [message #494816] Mon, 02 November 2009 13:09 Go to next message
Eclipse UserFriend
This is a pretty stupid question, bu the ATL tutorial/wiki wasn't very clear on this.

So I have a source and a target metamodels.

Source:
http://i17.photobucket.com/albums/b86/knuk/source.png

Target:
http://i17.photobucket.com/albums/b86/knuk/target.png

So let's say I want to make a matching rule that matches Rosetta->DesignUnit->EString to Rosetta->DesignUnit->Label->EString

I know the syntax would look something like this, but I'm still confused as to what ClassA or ClassB would be.
rule case {
	from
		s : MM_A!ClassA
	to
		t : MM_B!ClassB (
			something <- s.something
		),

}

Re: [ATL] Beginner's Question [message #495776 is a reply to message #494816] Thu, 05 November 2009 21:26 Go to previous messageGo to next message
Eclipse UserFriend
Bump. Can anyone help?
Re: [ATL] Beginner's Question [message #496109 is a reply to message #494816] Sun, 08 November 2009 12:17 Go to previous message
Eclipse UserFriend
Not shure, but something like:

rule case {
	from
		s : MM_A!Rosetta
	to
		t : MM_B!Rosetta (
			contents <- Sequnce{ design_unit)
		),
		design_unit: MM_B!DesignUnit(
                        name2 <- label
                ),
                label: MM_B!Label(
                name <- s.name
}
Previous Topic:[QVTO] Get static model (hardcoded model)
Next Topic:Eclipse Modeling Days
Goto Forum:
  


Current Time: Sun Jul 06 04:31:08 EDT 2025

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

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

Back to the top