Book a Demo

Author Topic: When a Composition ISN'T  (Read 3072 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
When a Composition ISN'T
« on: January 30, 2010, 01:46:11 am »
Those of you who've been long-time members of the forum will recall my railing (over 5 years ago now) about how fundamentally broken the EAComposition and EAAggregation connectors were...
I've therefore religiously (certainly zealously) avoided them "like the plague" in the interim.  However, as I've previously indicated, I'm FORCED to use them - because there's no other way to achieve certain outcomes with MDG Technologies.

When creating an MDG Technology, one can create a metaclass of "Composition" by using the dialog on drag.  Similarly, you can create a stereotype in Settings|UML...|Stereotypes with a base class of "Composition".

There's only one small problem...  You can't create connector of type "Composition".  Indeed, take any non Composition connector and try <Context Menu>|Advanced>|Change Type... - you'll see that "Composition is NOT one of the available selections.

The reason for this is that an EAComposition (as opposed to a Association with composite aggregation) is actually a connector of type "Aggregation", subtype "Strong".  Similarly, an EAAggregation (as opposed to a Association with shared aggregation) is a connector of type "Aggregation", subtype "Weak".  It would be a good idea to remove these spurious entries rather than leave them around to confuse poor sods like me...

So if you're wondering why your stereotype shapescripts for composition base types don't seem to work very well... This is why.

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: When a Composition ISN'T
« Reply #1 on: February 02, 2010, 11:32:03 am »
See: Aggregation and Association proposal for a proposal to provide consistent processing and rendering of EA Aggregations, Compositions and Associations.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!