Skip to content

State Methods

Andrew Gresyk edited this page Apr 12, 2024 · 2 revisions
  1. All state methods are optional

  2. All state methods take three different types of controls, each of which has different allowed functionality on it.

  3. Event reaction methods have to cover all event types.

Tests

State Methods

Method Description
void State::enter(PlanControl&);
void State::reenter(PlanControl&);
void State::exit(PlanControl&);
Activation,
reactivation,
deactivation (executed upon successful transition)
void State::update(FullControl&);
void State::react<TEvent>(const TEvent&, FullControl&);
Update active states
Let active state to react to event
void State::entryGuard(GuardControl&);
void State::exitGuard(GuardControl&);
Guards, invoked before a transition is actualized

Region Head Methods

Method Description
void State::planSucceeded(FullControl&);
void State::planFailed(FullControl&);
Plans success / failure reactions for region