Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » MOF to EMF using ATL(elp me with this process...)
icon5.gif  MOF to EMF using ATL [message #645584] Sat, 18 December 2010 10:31 Go to next message
Salman  is currently offline Salman Friend
Messages: 6
Registered: September 2010
Junior Member
Hi every body
I want to transform a model written in MOF to a model in EMF and then transfer it back to MOF, I have searched alot for a plug-in but I couldnt find it, if you know any please address it for me... I thing it's possible using ATL but I dont know how to use ATL in this process when the core of the models are different I mean one is Ecore and the other is MOF core... can you help me with this...?
Re: MOF to EMF using ATL [message #645622 is a reply to message #645584] Sat, 18 December 2010 23:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Salman,

Not sure exactly what you mean by MOF, but an Ecore model can be saved
as either Ecore format or EMOF format using either
EcoreResourceFactoryImpl or EMOFResourceFactoryImpl to create the
resource used for serialization. No transformation is required...


Salman wrote:
> Hi every body
> I want to transform a model written in MOF to a model in EMF and then
> transfer it back to MOF, I have searched alot for a plug-in but I
> couldnt find it, if you know any please address it for me... I thing
> it's possible using ATL but I dont know how to use ATL in this process
> when the core of the models are different I mean one is Ecore and the
> other is MOF core... can you help me with this...?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: MOF to EMF using ATL [message #645639 is a reply to message #645622] Sun, 19 December 2010 10:46 Go to previous messageGo to next message
Salman  is currently offline Salman Friend
Messages: 6
Registered: September 2010
Junior Member
Ed
thank for your reply, actualy MOF is an old meta-model which has influenced the design of EMF, UML's meta-model is MOF and I'm working on a paper related to transforming these two meta-models I know that its possible with ATL but I need guid in programming with ATL when the core of the two models are different (in this case MOF and EMF). again thanks Wink
Re: MOF to EMF using ATL [message #645646 is a reply to message #645639] Sun, 19 December 2010 12:05 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Salman

I don't think you understood Ed's reply.

MOF as such is generic. In practice either CMOF or EMOF are used.

Since EMF tooling supports loading of EMOF models (and UML2 tooling
supports loading of CMOF models) there is no need to write a
transformation inorder to use MOF models with EMF.

[The meta-model of UML is currently CMOF, but that is changing, in UML
2.4, to UML so that UML is self-describing.]

Regards

Ed Willink


On 19/12/2010 10:46, Salman wrote:
> Ed
> thank for your reply, actualy MOF is an old meta-model which has
> influenced the design of EMF, UML's meta-model is MOF and I'm working
> on a paper related to transforming these two meta-models I know that
> its possible with ATL but I need guid in programming with ATL when the
> core of the two models are different (in this case MOF and EMF). again
> thanks ;)
Re: MOF to EMF using ATL [message #645672 is a reply to message #645639] Sun, 19 December 2010 17:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Salman,

Comments below.

Salman wrote:
> Ed
> thank for your reply, actualy MOF is an old meta-model which has
> influenced the design of EMF, UML's meta-model is MOF
UML 2.0 is defined EMOF and CMOF; is that what you're talking about?
> and I'm working on a paper related to transforming these two
> meta-models I know that its possible with ATL but I need guid in
> programming with ATL when the core of the two models are different (in
> this case MOF and EMF).
EMF is the framework as a whole; it doesn't denote any particular model.
If you mean Ecore ,which is isomorphic to EMOF and can be serialized
to/from EMOF, it's better to call it it.

So it's not clear what you're trying to transform to what. I.e., MOF
to UML? MOF to Ecore? Are both EMOF and CMOF are involved?
> again thanks ;)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: MOF to EMF using ATL [message #646184 is a reply to message #645646] Wed, 22 December 2010 15:12 Go to previous message
Salman  is currently offline Salman Friend
Messages: 6
Registered: September 2010
Junior Member
Hi
thank you all, you know, I need to represent a program that gets a model in MOF (CMOF or EMOF) and then produces that model in EMF format (Considering all the rules described in Ecore) and then allows the user to do this process vise versa, I mean this program should change the XMI format of the source model to the XMI format of the target model.
I think I've found an e-clipse plug-in which name is "model2model qvt transformation", had any of you worked whit this plug-in before?
thank you all again Wink
Previous Topic:[ATL] Adding entries to a Map attribute from imperative code
Next Topic:[ATL] asSequence(): RegularVM vs EMF-VM
Goto Forum:
  


Current Time: Thu Apr 25 08:30:17 GMT 2024

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

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

Back to the top