-
-
Notifications
You must be signed in to change notification settings - Fork 72
State Methods
Andrew Gresyk edited this page Apr 12, 2024
·
2 revisions
-
All state methods are optional
-
All state methods take three different types of controls, each of which has different allowed functionality on it.
-
Event reaction methods have to cover all event types.
| 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 |
| Method | Description |
|---|---|
void State::planSucceeded(FullControl&);void State::planFailed(FullControl&);
|
Plans success / failure reactions for region |