Book a Demo

Author Topic: Define composition vs. aggregation? Target role?  (Read 3023 times)

pstein

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Define composition vs. aggregation? Target role?
« on: October 30, 2010, 12:26:07 am »
How can I distinguish between an aggregation and a composition when designing a class model?

Can one say when its an aggreation then on the tab "Target role" the Aggregation drop-down must be set on "shared" whereas for a composition the drop down must show "composite"?

If not: What else is the difference between Aggregation=shared vs. composite?

What does "none" mean ? Just an Association?

Peter

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Define composition vs. aggregation? Target rol
« Reply #1 on: October 30, 2010, 12:37:50 am »
Yes,

The AggregationKind of the End of an Association defines wether we talk about a "composition", an "aggregation", or just a plain association.

Geert

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Define composition vs. aggregation? Target rol
« Reply #2 on: November 01, 2010, 10:14:04 pm »
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaarrrrrrrrrrrgggggggggggggggggggg!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


(amend. sorry I'm not sure what caused that response)
b
« Last Edit: November 01, 2010, 10:16:08 pm by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.