Regimes in Dynamics definitions
This example introduces the Regime, Transition
and OnEntry elements within
a Dynamics block. Rather than having a single state instance, the entity can
be on one of the defined regimes at any given time. The Transition element
occurring inside a condition block serves to move it from one regime to another.
The OnEntry block inside a regime can contain initialization directives
that apply each time the entity enters that regime.
Full listing: