Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Beginner's Question
[ATL] Beginner's Question [message #494816] Mon, 02 November 2009 18:09 Go to next message
No real name is currently offline No real nameFriend
Messages: 8
Registered: September 2009
Junior Member
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] Fri, 06 November 2009 02:26 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 8
Registered: September 2009
Junior Member
Bump. Can anyone help?
Re: [ATL] Beginner's Question [message #496109 is a reply to message #494816] Sun, 08 November 2009 17:17 Go to previous message
mag  is currently offline mag Friend
Messages: 3
Registered: November 2009
Junior Member
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: Mon Oct 21 10:03:37 GMT 2019

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

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

Back to the top