Modifier and Type | Field and Description |
---|---|
protected State7 |
FSMContext7.mPreviousState
Stores which state a transition left.
|
protected State7 |
FSMContext7.mState
The current state.
|
Modifier and Type | Field and Description |
---|---|
protected Deque<State7> |
FSMContext7.mStateStack
This stack is used to store the current state when a push
transition is taken.
|
Modifier and Type | Method and Description |
---|---|
State7 |
FSMContext7.getPreviousState()
If this FSM is in transition, then returns the previous
state which the last transition left.
|
State7 |
FSMContext7.getState()
Returns the current state.
|
Modifier and Type | Method and Description |
---|---|
void |
FSMContext7.pushState(State7 state)
Pushes the current state on top of the state stack and
sets the current state to
state . |
void |
FSMContext7.setState(State7 state)
Sets the current state to the given value.
|
Constructor and Description |
---|
FSMContext7(State7 initState)
Creates a finite state machine context for the given
initial state.
|
Copyright © 2020. All rights reserved.