[EMF Compare] handeling inheritance [message #1799338] |
Wed, 05 December 2018 08:26 |
Banafsheh Azizi Messages: 328 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 |
|
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/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03459 seconds