Skip to main content



      Home
Home » Modeling » Compare » [EMF Compare] handeling inheritance
[EMF Compare] handeling inheritance [message #1799338] Wed, 05 December 2018 03:26 Go to next message
Eclipse UserFriend
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?

[Updated on: Wed, 05 December 2018 05:06] by Moderator

Re: [EMF Compare] handeling inheritance [message #1799628 is a reply to message #1799338] Tue, 11 December 2018 09:22 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: [EMF Compare] handeling inheritance [message #1799862 is a reply to message #1799628] Sat, 15 December 2018 06:47 Go to previous message
Eclipse UserFriend
Thank you
Previous Topic:EMF Merge Issue
Next Topic:comparing packages in text comparison
Goto Forum:
  


Current Time: Wed Jul 23 11:00:27 EDT 2025

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

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

Back to the top