Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How to transform model and meta model in one transformation
[ATL] How to transform model and meta model in one transformation [message #684748] Thu, 16 June 2011 07:06 Go to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi all,

I have a model which I want to transform. However, I do not only want to transform model but also its meta model. This is my scenario:

I have a model M and its meta model MM. I want to transform both M and MM into one model. The target model will hold the meta model elements and the model elements of M as model elements. This is what I tried to do:

create OUT:target from MM:ecore, M:model;

rule EClass2Target{
 from
  s:ecore!EClass
 to
  t:target!Target(
   name <- s.name
 )
}


The rule eclass to target does not execute. How can I get this rule executed?

Ralph
Re: [ATL] How to transform model and meta model in one transformation [message #684752 is a reply to message #684748] Thu, 16 June 2011 07:17 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARD
Messages: 522
Registered: July 2009
Senior Member
Did you use the is metametamodel option for ecore ?
Re: [ATL] How to transform model and meta model in one transformation [message #684760 is a reply to message #684752] Thu, 16 June 2011 07:41 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

I now tried with "Is metamodel" option in the debug dialog. But this shows no effect. Here is what I filled in:

Meta Models:
-------------

ecore: uri:http://www.eclipse.org/emf/2002/Ecore "Is metamodel"
model: uri:http://www.eclipse.org/uml2/3.0.0/UML Model Handler: UML2
target: /plugin/model/target.ecore

Source Models
--------------

MM: /plugin/model/test.uml
M: /plugin/model/test.uml
target: /plugin/model/out.xyz

Thanks,

Ralph
Previous Topic:[ATL] How to inject XML?
Next Topic:[ATL] Meta-Model to model
Goto Forum:
  


Current Time: Mon Sep 22 18:22:03 GMT 2014

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

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