Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » A node with multiple inheritance
A node with multiple inheritance [message #1791992] Mon, 09 July 2018 11:53 Go to next message
Matthieu Durot is currently offline Matthieu DurotFriend
Messages: 10
Registered: February 2017
Junior Member

I am defining an ecore model representing a graph contening nodes.

My goal is that one node could be children of multiple other nodes and that this node appears only one time on a diagram with multiple arrows coming from his father's nodes.

For the moment I've only managed to duplicate the node on my model/diagram.

Is it possible to do that with Sirius ?

I'm using Sirius 3.1.4.

Here is what it looks like for the moment :
  • Attachment: diagram.png
    (Size: 4.94KB, Downloaded 245 times)

[Updated on: Mon, 09 July 2018 11:55]

Report message to a moderator

Re: A node with multiple inheritance [message #1791994 is a reply to message #1791992] Mon, 09 July 2018 12:05 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 500
Registered: May 2011
Senior Member

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 (, or with the sample in Sirius git.


Steve Monnier - Obeo
Need training or professional services for Sirius?
Previous Topic:Have a question about license of Sirius
Next Topic:Java extension not found
Goto Forum:

Current Time: Mon Jan 18 17:02:36 GMT 2021

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

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

Back to the top