Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

aggregation or composition in Component Diagram?

 
Bil Bob
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,

I would reallly appreciate your advice.

Is aggregation or composition in Component Diagram legal UML? I have seen so many sites now and none with it...yet no books or sites which exclusively forbit it.

Thanks VERY much in advance
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bil,

UML is a family of graphical notations; the usage of these notations within diagrams is secondary and therefore the same notations can be used across diagrams.

-- Dan
 
Bil Bob
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your input, Dan

Much appreciated!
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No you shouldn't use them in component diagrams.

Component diagrams serve a different purpose than the class diagram. Therefore some of the constructs used in a class diagram does not make sense in a component diagram.
 
Bil Bob
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajith,

Is the idea of nothing but dependencies for components what you generally follow. (I know interface can have diff relationships)

That is what i generally see with most books I read...inc Cade et al

Thanks!!!
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is a good rule to go by. You can also show groupings of similar components.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic