| Package | Description |
|---|---|
| org.jeasy.states.api |
This package contains the public APIs.
|
| org.jeasy.states.core |
This package contains the core implementation of finite state machine.
|
| org.jeasy.states.util |
This package contains utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
State |
FiniteStateMachine.fire(Event event)
Fire an event.
|
State |
FiniteStateMachine.getCurrentState()
Return current FSM state.
|
State |
FiniteStateMachine.getInitialState()
Return FSM initial state.
|
State |
Transition.getSourceState()
Return transition source state.
|
State |
Transition.getTargetState()
Return transition target state.
|
| Modifier and Type | Method and Description |
|---|---|
Set<State> |
FiniteStateMachine.getFinalStates()
Return FSM final states.
|
Set<State> |
FiniteStateMachine.getStates()
Return FSM registered states.
|
| Modifier and Type | Method and Description |
|---|---|
FiniteStateMachineBuilder |
FiniteStateMachineBuilder.registerFinalState(State finalState)
Register FSM final state which is not mandatory.
|
TransitionBuilder |
TransitionBuilder.sourceState(State sourceState)
Set the source state of the transition.
|
TransitionBuilder |
TransitionBuilder.targetState(State targetState)
Set the target state of the transition.
|
| Modifier and Type | Method and Description |
|---|---|
FiniteStateMachineBuilder |
FiniteStateMachineBuilder.registerFinalStates(Set<State> finalStates)
Register FSM final states set.
|
| Constructor and Description |
|---|
FiniteStateMachineBuilder(Set<State> states,
State initialState)
Create a new
FiniteStateMachineBuilder. |
| Constructor and Description |
|---|
FiniteStateMachineBuilder(Set<State> states,
State initialState)
Create a new
FiniteStateMachineBuilder. |
| Modifier and Type | Method and Description |
|---|---|
static String |
Utils.dumpFSMStates(Set<State> states)
Utility method to print states names as string.
|
Copyright © 2020. All rights reserved.