A component instance is an instance of a component (see Section 22.4, “Component”) which may reside on a node instance (see
Section 22.3, “Node Instance”). In the UML metamodel
ComponentInstance
is a sub-class of
Instance
and is specifically an instance that is
derived from a component.
A component is represented on a class diagram as a box with two small rectangles protruding from its left side, labeled with its name.
A component instance is represented on a sequence diagram in
ArgoUML as a box with two small rectangles protruding from its left
side labeled with the component instance name (if any) and component
type, separated by a colon (:
).
![]() | Tip |
---|---|
It is the presence of the colon ( |
The details tabs that are active for component instances are as follows.
ToDoItem
Standard tab.
Properties
See Section 22.5.2, “Component Instance Property Toolbar” and Section 22.5.3, “Property Fields For Component Instance” below.
Documentation
Standard tab.
Style
Standard tab. The Bounds:
field
defines the bounding box for the component on the
diagram.
Source
Standard tab, containing just the name of the component instance.
![]() | Caution |
---|---|
A component instance should not generate any code, so having this tab active is probably a mistake. |
Constraints
Standard tab. ArgoUML only supports constraints on Classes and Features (Attributes, Operations, Receptions, and Methods), so this tab is grayed out.
Tagged Values
Standard tab.
![]() | Note |
---|---|
The UML |
Go
up
Navigate up through the package structure.
Delete
This deletes the component instance from the model
![]() | Warning |
---|---|
This is a deletion from the model
not just the diagram. To delete a
component instance from the diagram, but keep it within the
model, use the main menu |
Name
Text box. The name of the component instance. By convention component instance names start with a lower case letter and use bumpy caps to divide words within the name.
![]() | Note |
---|---|
ArgoUML does not enforce this naming convention. |
Classifier
Drop down selector. A Component instance type can be selected here.
![]() | Caution |
---|---|
ArgoUML V0.14 lists many more items in the dropdown list then solely Components. Beware to select Components only. |
Stereotype
Drop down selector. Component instance has no stereotypes by default in the UML standard.
Navigate Stereotype
icon. If a
stereotype has been selected, this will navigate to the
stereotype property panel (see Section 15.4, “Stereotype”).
Namespace
Drop down selector. Records and allows to change the namespace for the component instance. This is the package hierarchy.