S
- type can be of any class which is an immediate subclass
of FiniteStateMachine.State
E
- type can be of any class which is an immediate subclass
of FiniteStateMachine.Event
A
- type of args for action callbackspublic static class FiniteStateMachine.StateTable<S extends FiniteStateMachine.State,E extends FiniteStateMachine.Event,A>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
FiniteStateMachine.FetchTimeout |
fetch |
S |
state |
Constructor and Description |
---|
StateTable(S state,
FiniteStateMachine.FetchTimeout fetch,
FiniteStateMachine.EntryActionCallback<E,A> entryCallback,
FiniteStateMachine.ExitActionCallback<A> exitCallback)
An overloaded constructor for state table.
|
StateTable(S state,
long timeout,
FiniteStateMachine.EntryActionCallback<E,A> entryCallback,
FiniteStateMachine.ExitActionCallback<A> exitCallback)
A constructor for state table.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public final S extends FiniteStateMachine.State state
public final FiniteStateMachine.FetchTimeout fetch
public StateTable(S state, long timeout, FiniteStateMachine.EntryActionCallback<E,A> entryCallback, FiniteStateMachine.ExitActionCallback<A> exitCallback)
state
- State under interest to create a state tabletimeout
- timeout period defined for an actionentryCallback
- action callback that triggers when entry to this state happensexitCallback
- action callback that triggers when exit from this state happenspublic StateTable(S state, FiniteStateMachine.FetchTimeout fetch, FiniteStateMachine.EntryActionCallback<E,A> entryCallback, FiniteStateMachine.ExitActionCallback<A> exitCallback)
state
- State under interest to create a state tablefetch
- FetchTimeout instance to define or retrieve timeoutentryCallback
- action callback that triggers when entry to this state happensexitCallback
- action callback that triggers when exit from this state happens