Book a Demo

Author Topic: Suppressing relationships under visual enclosure  (Read 3066 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Suppressing relationships under visual enclosure
« on: February 05, 2019, 06:20:44 pm »
We have converted our legacy Aggregation and Composition relationships to Associations with Association Kind set correctly.

As I have previously mentioned, we have a script to manage Visual Enclosure, automatically setting the relationship when one item is visually embedded within another.

Imagine our surprise when the relationships that were previously suppressed (not hidden - that's another story) suddenly appeared on the diagram!  We tracked it down to having neglected to set the SupplierEnd.Aggregation value.  Set it correctly and voila, the relationship is suppressed!

Now we have determined that a number of relationships can be managed using visual enclosure - depending on the metatypes of the enclosing and enclosed items.

However, ONLY Associations (or the legacy Aggregation) with Aggregation Kind set to shared or composite are suppressed.  So it occurred to us that since Aggregation Kind is not relevant for the other types of relationships, it could be used as a signal to the renderer to suppress the relationship if there is a visual enclosure.  We could then implement ANY relationship to support suppression during visual enclosure.

Thoughts?
Should I submit a feature request?

Paolo

[Edit: The values for <end>.Aggregation are 0,1,2  Will need 3 to suppress Associations (and other relationships) that aren't meronymies.]
« Last Edit: February 06, 2019, 11:10:16 am by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!