July 2004
Intermediate to advanced
752 pages
35h 59m
English
The use of guards to choose among firing of multiple state machine transitions.
A state machine transition includes a guard condition. When a trigger event for a transition occurs, the guard is evaluated. If it evaluates true, the transition may fire.
State machine transitions may be used to represent conditionals in the following ways:
A set of transitions leaving a source state have completion events as their triggers and guard conditions that together cover all possibilities. When the source state becomes active and its entry or do activities are completed, one of the transitions will be chosen. This situation is very much like a traditional conditional construct in a programming language.
A set of transitions ...
Read now
Unlock full access