validNextState method
Is ProbeState
a valid next state for this probe?
For example:
- if the current state of this probe is
initialized
then a valid next state isresumed
. - if the current state of this probe is
resumed
then a valid next state ispaused
. - if the current state of this probe is
resumed
theninitialized
is not a valid next state.
Implementation
bool validNextState(ProbeState nextState) =>
_stateMachine.validNextState(nextState);