|
Re: A node with multiple inheritance [message #1791994 is a reply to message #1791992] |
Mon, 09 July 2018 12:05 |
|
Hello,
I think you should specify your mappings bottom-up instead of top-down.
You should have a mapping representing your nodes from it's container (for instance from an EPackage have a semantic expression on the eClassifier feature) and then define the referenced edge mapping of the inheritance from the inheriting class (Sensor 2) toward the inherited class (root). For example, for an EClass the semantic candidate expression would use the eSuperTypes feature.
You can look how inheritance is handled with Ecore Tools (https://www.eclipse.org/ecoretools/), or with the org.eclipse.sirius.sample.ecore.design sample in Sirius git.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02815 seconds