Working with Component Diagram¶
To create a Component Diagram:
- Select first an element where a new Component Diagram to be contained as a child.
- Select Model | Add Diagram | Component Diagram in Menu Bar or select Add Diagram | Component Diagram in Context Menu.
In Component Diagram, you can use following elements.
- Component
- Artifact
- Interface
- Dependency
- Interface Realization
- Component Realization
- Node
- Deployment
- Communication Path
- Object
- Artifact Instance
- Component Instance
- Node Instance
- Link
See also
- UML Component Diagram
- For more information about UML Component Diagram.
Component¶
To create a Component:
- Select Component in Toolbox.
- Drag on the diagram as the size of Component.
To create a Component (model element only) by Menu:
- Select an Element where a new Component to be contained.
- Select Model | Add | Component in Menu Bar or Add | Component in Context Menu.
To edit a Component, you can do following actions:
- Use Quick Edit for Classifier by double-click or press
Enter
on a selected Component. - Add Attribute - See Attribute.
- Add Operation - See Operation.
To suppress Attributes, see Suppress Attributes.
To suppress Operations, see Suppress Operations.
To hide Operation signatures, see Show Operation Signature.
Artifact¶
To create a Artifact:
- Select Artifact in Toolbox.
- Drag on the diagram as the size of Artifact.
To create a Artifact (model element only) by Menu:
- Select an Element where a new Artifact to be contained.
- Select Model | Add | Artifact in Menu Bar or Add | Artifact in Context Menu.
To edit a Artifact, you can do following actions:
- Use Quick Edit for Classifier by double-click or press
Enter
on a selected Artifact. - Add Attribute - See Attribute.
- Add Operation - See Operation.
To suppress Attributes, see Suppress Attributes.
To suppress Operations, see Suppress Operations.
To hide Operation signatures, see Show Operation Signature.
Component Realization¶
To create an Component Realization:
- Select Component Realization in Toolbox.
- Drag from an element (realizing) and drop on a Component (to be realized).