How to Draw Composite Structure Diagram?
Composite structure diagram is a kind of UML diagram that visualizes the internal structure of a class or collaboration. It is a kind of component diagram mainly used in modeling a system at micro point-of-view.
Creating composite structure diagram
Perform the following steps to create a UML composite structure diagram.
- Select Diagram > New from the application toolbar.
- In the New Diagram window, select Composite Structure Diagram.
- Click Next.
- Enter the diagram name and description. The Location field enables you to select a model to store the diagram.
- Click OK.
Creating class
To create a class in composite structure, click Class on the diagram toolbar and then click on the diagram.
Create class |
A class will be created.
Class created |
Creating part
To create a part inside a class:
- Move your mouse pointer over the class.
- Click on the Resource Catalog button.
Clicking on Resource Catalog button - Select New Part from Resourcce Catalog.
To create part
Part created
Creating port
To create a port that attaches to a class:
- Move your mouse pointer over the class.
- Click on the Resource Catalog button.
Clicking on Resource Catalog button - Select New Port from Resourcce Catalog.
To create port
Port created
Specifying type of port
Right-click the port and select Open Specification... from the pop-up menu. The Port Specification window appears.
Click the combo box of Type and select a class.
Select type |
Click OK button to apply the changes. Type will be shown on the caption of the port.
Type shown on port |
Creating connector
To create connector, click Connector on the diagram toolbar.
Create connector |
Drag from the source shape, move the mouse over the target shape and then release the mouse button to create the connector.
Connector created |
Continue to complete the diagram.
Completed diagram |
Related Resources
The following resources may help you to learn more about the topic discussed in this page.
Chapter 11. Composite structure diagram | Table of Contents | Chapter 12. Timing diagram |