Regions

Use regions to group the different sets of states and transitions that your system or sub-system can go through.

Context

The Region tool is available in the following objects:
  • State machine diagrams with a frame (see State Machine Diagrams) – A region is generated by default with the creation of the diagram.

  • Composite states (States) - A region is generated in a state by default with the creation of its first sub-state.

In this example, the Computer Monitor Behavior State Machine Diagram 1 state machine diagram has two regions, Brightness and Resolution. The Brightness region contains three states, Dim, Bright, and Very Bright. The Resolution region contains three states, 1024*768pixels, 1280*1024pixels, and 1600*1200pixels.

Procedure

  1. To create a region in a state machine diagram or inside a composite state, select the object to display its context menu, and click the Region tool. Specify a name for the region as appropriate.

    The following properties are available on the Info tab in the General category:

    Property

    Description

    Name/Code/Comment

    Identify the object. The name should clearly convey the object's purpose to non-technical users, while the code, which is used for generating code or scripts, may be abbreviated, and should not normally include spaces. You can optionally add a comment to provide more detailed information about the object. By default the code is synchronized with the name. To decouple name-code synchronization, enter a new code in the Code field.

    The other tabs such as Dependencies and Diagrams contain additional properties information. For details, see Object Properties.
  2. Create states and transitions in the region as appropriate.