| Modifier and Type | Method and Description |
|---|---|
TransitionIndex<State,Message,StateTransition> |
StateMachine.getTransitionsIndex()
Retrieves the transition map
|
| Constructor and Description |
|---|
StateMachine(@NonNull TransitionIndex<State,Message,StateTransition> transitionIndex)
Creates the state machine with the given
transition map.
|
StateMachine(@NonNull TransitionIndex<State,Message,StateTransition> transitionIndex,
@NonNull TransitionChecker<State,Message> transitionChecker)
Creates the state machine with the given
transition map and checker
|
| Modifier and Type | Method and Description |
|---|---|
TransitionIndex<N,M,T> |
Transitioner.getTransitionsIndex()
Retrieves the transition index used
by the transition.
|
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
TransitionValidator.validate(T transition,
TransitionIndex<N,M,T> transitionIndex,
TransitionValidator.Operation operation)
Checks the transition parameter correctness
with respect to current transitions on the given
index.
|
| Modifier and Type | Class and Description |
|---|---|
class |
StateTransitionMap
The State Machine contains a simple map of Transitions between
different nodes (States) triggered by incoming messages.
|
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
StateTransitionValidator.validate(StateTransition transition,
TransitionIndex<State,Message,StateTransition> transitionIndex,
TransitionValidator.Operation operation)
Checks the transition parameter correctness
with respect to current transitions on the given
index before applying the operation.
|
| Constructor and Description |
|---|
SimpleEnvelope(State source,
Message message,
State target,
TransitionIndex<State,Message,StateTransition> transitionIndex) |
Copyright © 2019 state-machine. All rights reserved.