Skip to main content



      Home
Home » Eclipse Projects » Sirius » Constrain edges to be unique
Constrain edges to be unique [message #1835709] Thu, 10 December 2020 14:50
Eclipse UserFriend
Hi,

I am trying to add constraints to my editor using the Validation specification available in Sirius. I have multiple different classes for edges (composition, aggregation, association, inheritance). I want to set up constraints so that between two nodes you can't have more than one edge. Say a node cannot have an association to another node and be a parent of that node as shown in the picture.
index.php/fa/39521/0/

Right now I'm using self.incomingEdges and self.outgoingEdges only returns a sequence of DEdge classes and I have no idea how to parse the sequence to check for the edge class to check to make sure that they are all the same class. Any ideas would be welcome.
Previous Topic:Is there a way to support UML Aggregation in Sirius?
Next Topic:How to prevent associations to parent containers
Goto Forum:
  


Current Time: Thu Jun 12 09:34:12 EDT 2025

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

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

Back to the top