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.

  1. Select Diagram > New from the application toolbar.
  2. In the New Diagram window, select Composite Structure Diagram.
  3. Click Next.
  4. Enter the diagram name and description. The Location field enables you to select a model to store the diagram.
  5. 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
Create class

A class will be created.

Class created
Class created

Creating part

To create a part inside a class:

  1. Move your mouse pointer over the class.
  2. Click on the Resource Catalog button.

    Clicking on Resource Catalog button
  3. Select New Part from Resourcce Catalog.

    To create part
    A part is created.

    Part created

Creating port

To create a port that attaches to a class:

  1. Move your mouse pointer over the class.
  2. Click on the Resource Catalog button.
    Clicking on Resource Catalog button
    Clicking on Resource Catalog button
  3. Select New Port from Resourcce Catalog.
    To create port
    To create port
    A port is created.
    Port created
    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
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
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
Connector created

Continue to complete the diagram.

Completed 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
 

Technical Support

Have technical issues or suggestions? Please contact Visual Paradigm Support Team.

Sales Support

Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.

Discussion Forum

Share your suggestions of opinions at VP Discussion Forum.