• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Diff types of associations

 
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI All
Do you know some good tutorial on UML diagram like when to use dased line , when to use solid line. What is the difference between different types of associations like aggregation, compositions and others both from conceptual and coding point of view.

THanks
kundan
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aggregation is the part-of relationship. It is like Car has Wheel (s) as its part.
So if you consider two objects Car and Wheel, then we can say Car aggregates Wheel (s). Also the Wheel object can also be a part of another object say Lorry.
So the part (Wheel) is can be binded to n whole (Car, Lorry) objects and the "part" can exist with out the "Whole".

Composition is a kind of association used to model the whole-part relationships between things. In this case the "part" cannot exist without the "whole" usually the "parts" are expected to live and die with the "whole". Any deletion of the "whole" is considered to cascade to the "parts".
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at http://faq.javaranch.com/view?UmlFaq and http://faq.javaranch.com/view?OoDesignFaq
 
author
Posts: 608
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a fair bit of advice at UML Class Diagram Guidelines which you may find useful for determining which to use.

- Scott
 
reply
    Bookmark Topic Watch Topic
  • New Topic