Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » [EMF Compare] handeling inheritance
[EMF Compare] handeling inheritance [message #1799338] Wed, 05 December 2018 08:26 Go to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 320
Registered: July 2016
Senior Member
Hi there,

Can I use EMF Compare to detect whether a metamodel is a sub of another metamodel? (something like conformance but about metamodels)
Does it handle inheritance? I mean to say, will I be able to somehow detect it is ok, if in the first metamodel there exists a class which has a parent with some references and attributes and in the second metamodel there exists a class with the same name which has not that parent but it has some of those references and attributes?

On the other hand, I would like to get 'Yes' for the attached metamodels as the metamodel2 conforms the metamodel1 . Could EMF Compare help me in this regard?


Member of MDSE Research Group
http://mdse.ui.ac.ir

[Updated on: Wed, 05 December 2018 10:06]

Report message to a moderator

Re: [EMF Compare] handeling inheritance [message #1799628 is a reply to message #1799338] Tue, 11 December 2018 14:22 Go to previous messageGo to next message
Philip Langer is currently offline Philip LangerFriend
Messages: 95
Registered: March 2015
Location: Vienna, Austria
Member

Hi,

very interesting use case! However, this is definitely not one of the use cases EMF Compare is directly aiming at. EMF Compare might help though to match the structural features for such kind of analysis (such as fullName in your example) or map EClasses with each other.

Nevertheless, I have my doubts whether it really pays off to use EMF Compare for this purpose. Eventually you'll need a very custom matcher and an own component that analysis the matches in order to compute a verdict whether metamodel1 conforms to metamodel2. So the part you'd be reusing EMF Compare is rather limited with most of the "meat" of your implementation being customized extensions of EMF Compare anyway. Thus, I'd tend towards writing a component from scratch that does such a kind of analysis.

Hope that helps,

Philip


--
Philip Langer

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMF Compare] handeling inheritance [message #1799862 is a reply to message #1799628] Sat, 15 December 2018 11:47 Go to previous message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 320
Registered: July 2016
Senior Member
Thank you

Member of MDSE Research Group
http://mdse.ui.ac.ir
Previous Topic:EMF Merge Issue
Next Topic:comparing packages in text comparison
Goto Forum:
  


Current Time: Sun Oct 25 00:41:50 GMT 2020

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

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

Back to the top