Skip to main content



      Home
Home » Eclipse Projects » Sirius » A node with multiple inheritance
A node with multiple inheritance [message #1791992] Mon, 09 July 2018 07:53 Go to next message
Eclipse UserFriend
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 378 times)

[Updated on: Mon, 09 July 2018 07:55] by Moderator

Re: A node with multiple inheritance [message #1791994 is a reply to message #1791992] Mon, 09 July 2018 08:05 Go to previous message
Eclipse UserFriend
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
Previous Topic:Have a question about license of Sirius
Next Topic:Java extension not found
Goto Forum:
  


Current Time: Wed Jul 23 11:03:29 EDT 2025

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

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

Back to the top