| Package | Description |
|---|---|
| com.github.pnavais.machine | |
| com.github.pnavais.machine.builder | |
| com.github.pnavais.machine.impl | |
| com.github.pnavais.machine.model |
| Modifier and Type | Method and Description |
|---|---|
Collection<StateTransition> |
StateMachine.getAllTransitions()
Retrieves all state transitions currently
defined.
|
Collection<StateTransition> |
StateMachine.getTransitions(String stateName)
Retrieves the state transitions for the given
state.
|
TransitionIndex<State,Message,StateTransition> |
StateMachine.getTransitionsIndex()
Retrieves the transition map
|
| Modifier and Type | Method and Description |
|---|---|
void |
StateMachine.add(StateTransition transition)
Adds a new Transition to the state
machine.
|
void |
StateMachine.remove(StateTransition transition)
Removes an existing Transition from the state machine.
|
| Modifier and Type | Method and Description |
|---|---|
StateMachineBuilder |
StateMachineBuilder.add(@NonNull StateTransition transition)
Adds the given transition to the transition map.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<StateTransition> |
StateTransitionMap.getAllTransitions()
Retrieve all the transitions stored in the transition map.
|
Collection<StateTransition> |
StateTransitionMap.getTransitions(State state)
Retrieves the transitions from the given state
or throws a
NullStateException
if not found. |
Collection<StateTransition> |
StateTransitionMap.getTransitions(String stateName)
Retrieves the transitions from the given state
or throws a
NullStateException
if not found. |
| Modifier and Type | Method and Description |
|---|---|
void |
StateTransitionMap.add(StateTransition transition)
Adds a new Transition to the statemachine.
|
boolean |
StateTransitionMap.contains(@NonNull StateTransition transition)
Checks the presence of the given transition in
the index.
|
void |
StateTransitionMap.remove(StateTransition transition)
Removes an existing Transition from the state machine.
|
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.
|
| 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.