Sunday, October 29, 2017

Work with composite state shapes in UML statechart diagrams

Work with composite state shapes in UML statechart diagrams

Add a history indicator to a state region

  1. In a statechart diagram, create a state region by dragging a Composite State shape onto the drawing page.

  2. Double-click the new statechart drawing page icon in the tree view to navigate to the drawing page that represents the composite state.

In the diagram that represents the composite state or state region, drag a Shallow History or Deep History shape onto the drawing page.

  • Use Transition shapes to indicate the transitions that come from outside the state region. Glue the endpoints of the Transition shapes with arrowheads to connection points Connection point image - blue X on the history indicator shape. Double-click the Transition shapes to add transition strings.

  • Use a Transition shape to indicate the outgoing transition from the history indicator shape. Glue the Transition shape endpoint without an arrowhead to a connection point Connection point image - blue X on the history indicator shape. Glue the Transition shape endpoint with an arrowhead to the destination state shape.

Create a composite or nested state in a statechart diagram

  1. In a statechart diagram, drag a CompositeState shape onto the drawing page.

The composite state icon appears in the tree view and a new statechart drawing page appears that represents the composite state.

  1. Double-click the new statechart drawing page icon in the tree view to navigate to the drawing page that represents the composite state.

  2. Drag State, Transition, Shallow or Deep History indicators, and other shapes onto the drawing page to represent concurrent, mutually exclusive, or nested substates within the composite state.

No comments:

Post a Comment