Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Creation of element based edge
Creation of element based edge [message #1429449] Tue, 23 September 2014 08:42 Go to next message
Franck MIMET is currently offline Franck MIMETFriend
Messages: 28
Registered: August 2014
Junior Member
Hello,

This is my second topic in this forum and I hope that the answers to my problem will be as much helpful as the first time Razz

I'm trying to create a Diagram representation, containing Containers and Edges.
All the containers and the contained bordered nodes are well displayed, but not the edges which are too numerous Mad

As my metamodel use an ecore association class, I assumed to use an Element based edge.
Sirius creates too much edges between the nodes!!

AssociationClass---------->Source
|
|_______________> Target

The problem is that several instances of the AssociationClass are referencing the same source AND target, but only one instance of AssociationClass is referenced.
That's why I've got multiple edges!

What should I do to limit the number of edges?

I'm sorry about the confused explanion, and I'll try to extract an example from my project to make it clearer Rolling Eyes


Regards,
Miguel
Re: Creation of element based edge [message #1429498 is a reply to message #1429449] Tue, 23 September 2014 10:01 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Miguel,

I don't know your metamodel, but if you want edges for AssocationClass
only if this last is referenced, you can have a "Semantic Candidates
Expression" which filter unwanted AssociationClass or yet the
"Precondition" available in the Advanced tab.

Best Regards.

Le 23/09/2014 10:42, Miguel Dalcampo a écrit :
> Hello,
>
> This is my second topic in this forum and I hope that the answers to my
> problem will be as much helpful as the first time :p
> I'm trying to create a Diagram representation, containing Containers and
> Edges.
> All the containers and the contained bordered nodes are well displayed,
> but not the edges which are too numerous :x
>
> As my metamodel use an ecore association class, I assumed to use an
> Element based edge.
> Sirius creates too much edges between the nodes!!
>
> AssociationClass---------->Source
> |
> |_______________> Target
>
> The problem is that several instances of the AssociationClass are
> referencing the same source AND target, but only one instance of
> AssociationClass is referenced.
> That's why I've got multiple edges!
>
> What should I do to limit the number of edges?
>
> I'm sorry about the confused explanion, and I'll try to extract an
> example from my project to make it clearer :roll:
>
> Regards,
> Miguel



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Creation of element based edge [message #1429559 is a reply to message #1429498] Tue, 23 September 2014 11:57 Go to previous message
Franck MIMET is currently offline Franck MIMETFriend
Messages: 28
Registered: August 2014
Junior Member
Hi Esteban,

That's probably the key of the problem.

I've got a class 'A' that reference the AssociationClass 'B'.
The associationClass 'AssoClass' reference two class 'B' and 'C'.

A
|
|
v
AssoClass-------->B
|
|
v
C

There are two types of containers:
- the first one 'C1' is issued from 'C'.
- the second one 'C2' is issued from 'A' and contains nodes with information from 'C'. I add also nodes which displays the address of the referenced AssociationClass elements.

In the label the edge I display the adress of the AssociationClass element.

The edge are created even if the AssociationClass element is not in 'C2'!
The addresses does not match, but the edges are created.

Miguel
Previous Topic:Optimize performances on big models
Next Topic:Creating Sirius Diagram - in headless plugin
Goto Forum:
  


Current Time: Wed Apr 01 18:55:13 GMT 2020

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

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

Back to the top