Book a Demo

Author Topic: Indicators for AssociationClass  (Read 5721 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Indicators for AssociationClass
« on: September 02, 2008, 11:49:20 am »
Elsewhere (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1119859101/7#7) I have put forward the proposition that the Association "lozenge" should be regarded as a specific rendering of the Association Class (where the current binary AssociationClass is merely a specific form of the n-ary Association element).

Now, I'm not sure when this functionality came into EA, but as of at least v7.1, when you convert an ordinary class into an AssociationClass, the attached Association also becomes an "AssociationClass" when you open it's properties.

Now this causes confusion for shape scripting - since if I create a shape script, am I attempting to apply it to the vertex or the edge?  However, that's not what I'm discussing here.

It seems to me that when you convert an "ordinary" Class into an AssociationClass - there should be some indication that this has occurred.  Similarly with the linked edge (which appears to have transitioned from Association to AssociationClass).  Now some might argue that this latter transition is a bug, but I'm not so sure.

If the edge and the vertex are both on the same diagram, then EA follows the UML requirement to link them with a Notelink.  However, when both the edge AND the vertex are NOT on the same diagram, it would be useful to have a visual signal that the other (linked) element exists.

Trying to be consistent with my previous pronouncements, it seems to me that the addition of a small lozenge glyph in the top right of the Class and the addition of a small lozenge glyph in the centre of the Association would be sufficient to provide such an indication.  These indicators would mean: "There is another part of the construct that is not shown on this diagram".

What do others think?
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Indicators for AssociationClass
« Reply #1 on: September 02, 2008, 12:47:58 pm »
Particularly useful if we could turn the glyph on and off. This might be part of a more general option to do this across the board.
No, you can't have it!