Book a Demo

Author Topic: Aggregation and Containment  (Read 6350 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Aggregation and Containment
« on: June 14, 2005, 06:28:10 pm »
Hi,

the UML 2 specification does not grok (is silent on) containment.

However, by general consensus we know (agree) that shared aggregation can only be containment of the target by reference and that containment of the target by value can only be a composition.

In many tools (Rose for example) containment an aggregation are intimately linked (as indicated above).  In EA they are separated; which, in my opinion, is no bad thing. 8)

(Aggregation is a form of meronymy - the relationship of part to the whole.  UML 2 only provides for some of the 6 (generally accepted) forms of meronymy)  BTW: sometimes meronymy is spelt meronomy (incorrectly in my view) http://www.ilc.cnr.it/EAGLES96/rep2/node7.html

Anyway, the crux of my post is: in those tools where aggregation and containment are linked, the containment control is in the opposite end to the role.  Thus if Class A aggregates Class B, and the aggregation item is on the A end, when you look at the A end role there is a subcontrol marked "Containment of B" - where you can indicate "By Reference, By Value or Unspecified" - and the form of aggregation changes appropriately?.

In EA, the containment appears to be related to the role itself.  Thus if I want to indicate the above example, I would go to the A role, mark the aggregation as shared, go to the B role and mark the containment as "By Reference"

Have I got this right?

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

thomaskilian

  • Guest
Re: Aggregation and Containment
« Reply #1 on: June 15, 2005, 01:08:48 am »
Not an answer but it is metonymy, not meronymy (I had to use my dictionary).

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Aggregation and Containment
« Reply #2 on: June 15, 2005, 01:50:17 am »
Quote
Not an answer but it is metonymy, not meronymy (I had to use my dictionary).

metonymy

n : substituting the name of an attribute or feature for the name of the thing itself (as in `they counted heads') ???

Perhaps you used the wrong dictionary? ;D

Paolo


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

thomaskilian

  • Guest
Re: Aggregation and Containment
« Reply #3 on: June 16, 2005, 01:14:59 am »
Maybe. It doesn't contain the word you mentioned, so I just don't know what you are talking about.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Aggregation and Containment
« Reply #4 on: June 16, 2005, 01:25:21 am »
Quote
Maybe. It doesn't contain the word you mentioned, so I just don't know what you are talking about.
www.dictionary.com 8)

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

thomaskilian

  • Guest
Re: Aggregation and Containment
« Reply #5 on: June 16, 2005, 01:28:58 am »
Thanks  :) I keep that in mind for the next time. (Still no answer to your question though)