Aggregating parts or states in capsule-based UML diagrams

In capsule-based structure diagrams, you can group several parts into a single one to encapsulate some of the complexity of the diagram.

About this task

Restriction: You cannot aggregate inherited capsule parts. You must have a capsule-based structure or state machine diagram open.

The new, single part is based on a new capsule that contains the parts that you specified. In capsule-based state machine diagrams, you can group selected vertices of a state machine into a single state to reduce some of the complexity of the machine. When you aggregate states, you create a new state that contains the vertices from the selected set.

To aggregate states or parts of a capsule into a single part or state:

Procedure

  1. In the diagram editor, select the parts or states to aggregate, right-click the selection; then click Refactor > Aggregate.
  2. In the Aggregate window, type a name for a part and for a class, or for the new state, and click OK.

    If you aggregate states, any transitions to external states are connected through entry or exit points on the border of the new state.


Feedback