| Package | Description |
|---|---|
| org.statefulj.fsm | |
| org.statefulj.fsm.model | |
| org.statefulj.fsm.model.impl | |
| org.statefulj.persistence.memory |
| Modifier and Type | Method and Description |
|---|---|
State<T> |
Persister.getCurrent(T stateful)
Returns the current state.
|
State<T> |
FSM.getCurrentState(T obj) |
State<T> |
FSM.onEvent(T stateful,
String event,
Object... args)
Process event.
|
protected State<T> |
FSM.transition(T stateful,
State<T> current,
String event,
Transition<T> transition,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
Persister.setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current state to the next state.
|
void |
Persister.setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current state to the next state.
|
protected void |
FSM.setCurrent(T stateful,
State<T> current,
State<T> next) |
protected void |
FSM.setCurrent(T stateful,
State<T> current,
State<T> next) |
protected State<T> |
FSM.transition(T stateful,
State<T> current,
String event,
Transition<T> transition,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
State<T> |
StateActionPair.getState() |
| Modifier and Type | Method and Description |
|---|---|
void |
State.addTransition(String event,
State<T> next)
Add a deterministic Transition with no Action
|
void |
State.addTransition(String event,
State<T> next,
Action<T> action)
Add a deterministic Transition with an Action
|
| Modifier and Type | Class and Description |
|---|---|
class |
StateImpl<T> |
| Modifier and Type | Method and Description |
|---|---|
State<T> |
StateActionPairImpl.getState() |
| Modifier and Type | Method and Description |
|---|---|
void |
StateImpl.addTransition(String event,
State<T> next) |
void |
StateImpl.addTransition(String event,
State<T> next,
Action<T> action) |
void |
StateActionPairImpl.setState(State<T> state) |
| Constructor and Description |
|---|
DeterministicTransitionImpl(State<T> to) |
DeterministicTransitionImpl(State<T> to,
Action<T> action) |
DeterministicTransitionImpl(State<T> from,
State<T> to,
String event) |
DeterministicTransitionImpl(State<T> from,
State<T> to,
String event) |
DeterministicTransitionImpl(State<T> from,
State<T> to,
String event,
Action<T> action) |
DeterministicTransitionImpl(State<T> from,
State<T> to,
String event,
Action<T> action) |
StateActionPairImpl(State<T> state,
Action<T> action) |
| Modifier and Type | Method and Description |
|---|---|
State<T> |
MemoryPersisterImpl.addState(State<T> state) |
State<T> |
MemoryPersisterImpl.getCurrent(T stateful) |
State<T> |
MemoryPersisterImpl.getStart() |
State<T> |
MemoryPersisterImpl.removeState(State<T> state) |
State<T> |
MemoryPersisterImpl.removeState(String name) |
| Modifier and Type | Method and Description |
|---|---|
Collection<State<T>> |
MemoryPersisterImpl.getStates() |
| Modifier and Type | Method and Description |
|---|---|
State<T> |
MemoryPersisterImpl.addState(State<T> state) |
State<T> |
MemoryPersisterImpl.removeState(State<T> state) |
void |
MemoryPersisterImpl.setCurrent(T stateful,
State<T> current) |
void |
MemoryPersisterImpl.setCurrent(T stateful,
State<T> current,
State<T> next) |
void |
MemoryPersisterImpl.setCurrent(T stateful,
State<T> current,
State<T> next) |
void |
MemoryPersisterImpl.setStart(State<T> start) |
| Modifier and Type | Method and Description |
|---|---|
void |
MemoryPersisterImpl.setStates(Collection<State<T>> states) |
| Constructor and Description |
|---|
MemoryPersisterImpl(Collection<State<T>> states,
State<T> start) |
MemoryPersisterImpl(List<State<T>> states,
State<T> start,
String stateFieldName) |
MemoryPersisterImpl(T stateful,
List<State<T>> states,
State<T> start) |
MemoryPersisterImpl(T stateful,
List<State<T>> states,
State<T> start,
String stateFieldName) |
| Constructor and Description |
|---|
MemoryPersisterImpl(Collection<State<T>> states,
State<T> start) |
MemoryPersisterImpl(List<State<T>> states,
State<T> start,
String stateFieldName) |
MemoryPersisterImpl(T stateful,
List<State<T>> states,
State<T> start) |
MemoryPersisterImpl(T stateful,
List<State<T>> states,
State<T> start,
String stateFieldName) |
Copyright © 2015. All rights reserved.