05.5 State Diagram
05.5 State Diagram
• Initial and Final States - The initial state is denoted by a filled black circle
and may be labeled with a name. The final state is denoted by a circle with
a dot inside and may also be labeled with a name.
State Machine Diagrams
• Transitions - Transitions from one state to the next are denoted by lines
with arrowheads. A transition may have a trigger, a guard and an effect, as
below.
• Self-Transitions - A state can have a transition that returns to itself, as in
the following diagram. This is most useful when an effect is associated
with the transition.
Alternative way to
show the same
information
•The ∞ symbol indicates that details of the Check PIN
sub-machine are shown in a separate diagram.
State Machine Diagrams
• Entry Point - Sometimes you won’t want to enter a sub-machine at the
normal initial state. For example, in the following sub-machine it would be
normal to begin in the "Initializing" state, but if for some reason it wasn’t
necessary to perform the initialization, it would be possible to begin in the
"Ready" state by transitioning to the named entry point.