Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class vs component diagram

 
Kazimierz Trzonek
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which classes from the class diagram i dont have to put in component diagram?

do i put interfaces or their implementations in componenet diagram?

which classes that arent on class diagram do i put on component diagram?

what are objects that i put into component diagram? are they classes from class diagram?

is eg security (implemented declarativly in web.xml) a component?

does component ~ class or component ~ package/functionality

which relationship line should connect service with dao on class diagram?

is there any sample solution of sample assignment? or any old assigment from sun?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, I think you might want to start off by defining what a component diagram is. Do a google search and find some sample component diagrams, and find a good definition. Then share with us on this thread what you found out.



http://en.wikipedia.org/wiki/Component_diagram

From the questions you're asking, it seems that you're really struggling with what a component diagram is. Components and classes are very different concepts.

-Cameron McKenzie
 
Kazimierz Trzonek
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when do we use assembly line, and when normal arrows?

when one component displays an interface, and other uses it - than it's assembly?

but whan use line whith arrow?

shouldn't on below picture be used assebly connections? (picture from http://www.visual-paradigm.com/VPGallery/diagrams/Component.html):



on the picture from wiki assebly is used in internal dependencies of component, and arrows connect to external ports.

are ports equal to interfaces? name port is used in external context and interface in internal?
 
J J Wright
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the relevant section of the UML 2.x specification. It makes it quite clear what the various elements are for, the constraints that exist upon them, and the associations and attributes that characterise them
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic