Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Constrain edges to be unique
Constrain edges to be unique [message #1835709] Thu, 10 December 2020 19:50
Thomas Chiang is currently offline Thomas ChiangFriend
Messages: 100
Registered: March 2020
Senior Member
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: Fri Apr 26 07:07:05 GMT 2024

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

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

Back to the top