my dog learned polymorphism*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes class vs component diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "class vs component diagram" Watch "class vs component diagram" New topic
Author

class vs component diagram

Kazimierz Trzonek
Greenhorn

Joined: Oct 08, 2008
Posts: 22
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

Joined: Aug 26, 2006
Posts: 4968
    
    1

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

Joined: Oct 08, 2008
Posts: 22
best explenations I found:
http://www.ibm.com/developerworks/rational/library/dec04/bell/
http://www.agilemodeling.com/style/componentDiagram.htm
http://www.agilemodeling.com/artifacts/componentDiagram.htm

Kazimierz Trzonek
Greenhorn

Joined: Oct 08, 2008
Posts: 22
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

Joined: Jul 02, 2008
Posts: 254
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


SCJP, SCWCD, SCBCD, SCEA 5
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: class vs component diagram
 
Similar Threads
Class Diagram and Component Diagram
Class digram for FBN
Class Diagram and Component Diagram
Passed the part2
Cade Example and Sun Blueprints anomaly