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
Hello,

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 :
index.php/fa/33353/0/
  • Attachment: diagram.png
    (Size: 4.94KB, Downloaded 194 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: 388
Registered: May 2011
Senior Member
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
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Have a question about license of Sirius
Next Topic:Java extension not found
Goto Forum:
  


Current Time: Mon Nov 12 22:01:21 GMT 2018

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

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

Back to the top