InitalState

StarUML

InitalState

Top  Previous  Next

Semantics

An initial is a kind of pseudostate that represents the starting point in a region of a state machine. It has a single outgoing transition to the default state of the enclosing region, and has no incoming transitions. There can be one (and only one) initial state in any given region of a state machine. It is not itself a state but acts as a marker.

Procedure for creating initial state

In order to create InitialState,

1.Click [Toolbox] -> [Statechart] -> [InitialState] button.

ch05_532

2.And click at the position where InitialState will be placed in the [main window].

ch05_533

Procedure for creating initial state from state

In order to create initial state with outgoing transition to selected object, use shortcut creation syntax.

1.Double-click state. At the quick dialog, After "-*" string, enter initial state name or none.

ch05_534

2.Press [Enter] key and initial state with outgoing transition to selected state is created.

ch05_535