Book a Demo

Author Topic: Aggregates connector is shown the wrong way around  (Read 2197 times)

nguyenhaongnam

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Aggregates connector is shown the wrong way around
« on: November 12, 2018, 01:14:30 pm »
It is a long-standing peculiarity that the "Aggregates"-connectors in EA's class diagram were by default shown/drawn the wrong way around, i.e. the diamond was drawn at the target side, not on the source side. Fortunately there used to be a flag in the preferences (Pref's -> Links -> Association default - source --> target) that allowed to swap (i.e. correct) that behavior.
That flag is still there but in the v13.0 and also 13.5 this flag has apparently no effect, i.e. that connector is shown the wrong way round, regardless of whether that flag is checked or not.

To see, which way these connectors ought to be drawn correctly just have a look at https://en.wikipedia.org/wiki/Class_diagram or at https://www.uml-diagrams.org/composition.html?context=class-diagrams.

Is there some secret sauce to tweak EA to create correct UML class diagrams or does one now have to live with that bug?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Aggregates connector is shown the wrong way around
« Reply #1 on: November 12, 2018, 03:22:33 pm »
The option you are talking about is:
Start | View | Preferences | Links | Draw Aggregations Reversed.

This option is still used when dragging an aggregation or composition from the toolbox.

That option doesn't have any effect when using the quicklinker because that generally shows 'to whole' or 'to part' in the menu.

Regardless of which option you pick or how you create it, the source end of the aggregation has/will always be the the part unless you explicitly swap it via the UI.

From a UML perspective, associations don't have a source and target. They have two1 equal ends.

The real question, is why is this causing you a problem? Perhaps we can solve that problem.

1 When aggregation is set it's limited to two, with only one specifying aggregation. Otherwise it's two or more.