Working with Composite Structure Diagram¶
To create a Composite Structure Diagram:
- Select first an element where a new Composite Structure Diagram to be contained as a child.
- Select Model | Add Diagram | Composite Structure Diagram in Menu Bar or select Add Diagram | Composite Structure Diagram in Context Menu.
In Composite Structure Diagram, you can use following elements.
- Class
- Interface
- Association
- Aggregation
- Composition
- Dependency
- Generalization
- Interface Realization
- Signal
- DataType
- PrimitiveType
- Enumeration
- AssociationClass
- Collaboration
- Port
- Part
- Connector
- Collaboration Use
- Role Binding
See also
- UML Composite Structure Diagram
- For more information about UML Composite Structure Diagram.
Collaboration¶
To create a Collaboration:
- Select Collaboration in Toolbox.
- Drag on the diagram as the size of Collaboration.
To create a Collaboration (model element only) by Menu:
- Select an Element where a new Collaboration to be contained.
- Select Model | Add | Collaboration in Menu Bar or Add | Collaboration in Context Menu.
To edit a Collaboration, you can do following actions:
- Use Quick Edit for General Element by double-click or press
Enter
on a selected Collaboration. - Add Template Parameter - See Template Parameter.
Port¶
To create a Port:
- Select Port in Toolbox.
- Click on the element (e.g. Class) where Port to be contained.
To create a Port (model element only) by Menu:
- Select an Element where a new Port to be contained.
- Select Model | Add | Port in Menu Bar or Add | Port in Context Menu.
To edit a Port, you can do following actions:
- Use Quick Edit for General Element by double-click or press
Enter
on a selected Port.
Part¶
To create a Part:
- Select Part in Toolbox.
- Click on the element (e.g. Class) where Part to be contained.
To edit a Part, you can do following actions:
- Use Quick Edit for General Element by double-click or press
Enter
on a selected Part.
Note
Actually, Part is equivalent to Attribute but represented differently on diagrams.
Connector¶
To create an Connector:
- Select Connector in Toolbox.
- Drag from an element (e.g. Port) and drop on another element (e.g. Part).
Collaboration Use¶
To create a Collaboration Use:
- Select Collaboration Use in Toolbox.
- Drag on the diagram as the size of Collaboration Use.
To edit a Collaboration Use, you can do following actions:
- Use Quick Edit for General Element by double-click or press
Enter
on a selected Collaboration Use.
Role Binding¶
To create an Role Binding:
- Select Role Binding in Toolbox.
- Drag from a Collaboration Use and drop on an element (e.g. Part).