A component diagram contains components, interfaces and relationships. Also other types of symbols that you've already learned can also appear in a component diagram.
The
component diagram's main icon is a rectangle that has two rectangles overlaid on its left
side. You put the name of the component inside the icon. The name is string. If the
component is a member of a package, you can prefix the component's name with the name of
the package.
The component icon |
A component and the interfaces it realizes are representable in two ways.
One
way is to show the interface as a rectangle that contains interface-related information.
It's connected to the component by the dotted line and empty triangle that vizualize
realization.
Other way to represent interface is as a small circle connected to the component by a
solid line, which represents a realization relationship.
Interface can be represented as a rectangle containing information, connected to the component by a realization arrow | |
Interface is a small circle, connected to the component with a solid line, wich stands for realization |