aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes UML Version and Component Diagrame 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 "UML Version and Component Diagrame" Watch "UML Version and Component Diagrame" New topic
Author

UML Version and Component Diagrame

Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
Hello Gentlepeople,
What version of UML must our diagram conform to?

Also, due to lack of knowledge, I have a couple of questions regarding it - went throught this article hereUML 2 Component Diagram. It says a component can provide or require interfaces represented by a lollipop and a socket. If you look at the diagram, these two interfaces are linked by a placing the lollipop and socket next to each other. Also, they are linked by a dashed line? What does that mean? When one is required over the other?

Thanks.
BR
Changski Tie Zheng Zhang
Greenhorn

Joined: Oct 03, 2006
Posts: 27
Hi Brian,
I didn't use anything fancy (lollipop and socket), just basic features in Rational Rose will be enough, I think.


PMP, SCEA
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Hi Brian,

A major concept about the component diagram is that the components in the diagram interact with each other via clear and well-defined interfaces. These interfaces can be APIs, protocols, etc. Among classes the interaction is usually via APIs, but when the components represent an external system, the interface should be explicitly specified.

I use Jude which has the interface notation.

Now, the dashed line denotes a dependency while the lollipop and socket represent the interface. So, both are required when using an interface.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
Do you also show the PROTOCOL if used to communicate among components?
BR
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Sure.
Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
Hello Changski,

Originally posted by Changski Tie Zheng Zhang:
Hi Brian,
I didn't use anything fancy (lollipop and socket), just basic features in Rational Rose will be enough, I think.


Ok, so if I don't use the lollipop and the socket, the remaining notation for component diagram are the dashed arrow and the solid arrow which I believe have the same semantic as in Class diagram ie, dependency and association. Nnow when do I use association vs dependency in Component Diagram?

Also, do you use a bi-directional association?

BR
[ November 08, 2006: Message edited by: Brian Smith ]
chris hacker
Greenhorn

Joined: Nov 08, 2006
Posts: 3
Hi Brian,

I download a community edition of visual paradigm for UML which has everything you need to complete the assignment. FYI, I have lollipops and sockets on my component diagram. As long as you have the well designed session beans. You shouldn't have any problem to come up with a ver good looking diagram.

Good luck!

CH
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: UML Version and Component Diagrame