• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

composit component in UML 2.0

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I�d like to ask you a question about modelling composit component in UML 2.0:
If we have component C which continent some sub-components, for instance C1,C2, C3. As I know, in order to model such a component, we write C with (c1: C1, c2:C2, c3:C3) that�s means: the component C with instances of C1, C2 and C3 and not C1, C2, C3 them-self.
My question, if (for instance) C1 have, in its turn, sub-components (C11, C12), in this case, how we can model C, C1 and their sub-components C11, C12 in UML 2.0

Sincere thanks.
JL.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You just wind up with a tree. C has lines to C1, C2, C3. C1 has lines to C11 C12, C13, etc. A complex tree can quickly get too large to take in on a single diagram. That's where it's nice to distinguish between the model which contains everything and a diagram which shows some small part of the model for some specific purpose. For example, a diagram with C, C1, C2, C3 is perfectly valid for a particular level of abstraction. Another diagram with C1, C11, C12, C13 is good at another level.

Bookmark Scott Ambler's Agile Modeling site. I refer to it fairly often.

Diagrams of UML 2

Composition

Scott pops in here now and then, too. He's pretty big on that "purpose" I mentioned above. I like to fill in "_______ reads this to learn ________ so they can ________" That will help you know what level of abstraction to put in, or whether to skip the diagram entirely.
 
Trust God, but always tether your camel... to this tiny ad.
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic