S
- the type of stateE
- the type of eventpublic interface StateMachine<S,E> extends Region<S,E>
StateMachine
provides an APIs for generic finite state machine needed
for basic operations like working with states, events and a lifecycle.Modifier and Type | Method and Description |
---|---|
ExtendedState |
getExtendedState()
Gets the state machine extended state.
|
State<S,E> |
getInitialState()
Gets the initial state
S . |
StateMachineAccessor<S,E> |
getStateMachineAccessor()
Gets the state machine accessor.
|
boolean |
hasStateMachineError()
Checks for state machine error.
|
void |
setStateMachineError(java.lang.Exception exception)
Sets the state machine error.
|
addStateListener, getId, getState, getStates, getTransitions, getUuid, isComplete, removeStateListener, sendEvent, sendEvent, sendEvent, sendEvents, start, stop
startReactively, stopReactively
ExtendedState getExtendedState()
StateMachineAccessor<S,E> getStateMachineAccessor()
void setStateMachineError(java.lang.Exception exception)
exception
- the new state machine errorboolean hasStateMachineError()