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?
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.
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Joined: Oct 26, 2002
Do you also show the PROTOCOL if used to communicate among components? BR
Joined: Jul 09, 2001
Joined: Oct 26, 2002
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 ]
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.