Note: The CG::Class::ImplementStatechart property
must be set to Checked for these operations to be
generated.
These operations are
generated in the Framework
Entries section of the specification file for an object.
Entering a state
The enter() operation
allows an object
to enter a state after the object has successfully received a trigger
and any possible guard condition has been passed. The enter() operation
also executes any user‑defined action on entry for the state.
Taking events
The takeEvent() operation
takes an event off the event queue and evaluates whether that event
is valid to trigger a transition of the object out of its current
state.
Dispatching events
The dispatchEvent() operation
uses a switch statement
to process the outbound transitions from the states of an object.