Package com.tangosol.util.fsm
Interface Model<S extends Enum<S>>
- Type Parameters:
S
- the type of state of theFiniteStateMachine
- All Known Implementing Classes:
AnnotationDrivenModel
,SimpleModel
public interface Model<S extends Enum<S>>
A
Model
represents the definition of a FiniteStateMachine
,
the set of known states, Transition
s between said states and
StateEntryAction
s / StateExitAction
s to be performed when
said states are changed.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
Method Summary
Modifier and TypeMethodDescriptionObtains theStateEntryAction
s defined for the states in theModel
.Map
<S, StateExitAction<S>> Obtains theStateExitAction
s defined for the states in theModel
.S[]
Obtains the valid states defined by theModel
.Obtains theTransition
s defined by theModel
.
-
Method Details
-
getTransitions
Iterable<Transition<S>> getTransitions()Obtains theTransition
s defined by theModel
.- Returns:
- the
Transition
s defined by theModel
-
getStateClass
- Returns:
- the
Class
of the state
-
getStates
S[] getStates()Obtains the valid states defined by theModel
.- Returns:
- the valid states of the
Model
-
getStateEntryActions
Map<S,StateEntryAction<S>> getStateEntryActions()Obtains theStateEntryAction
s defined for the states in theModel
.- Returns:
- the defined
StateEntryAction
s defined for the states in theModel
-
getStateExitActions
Map<S,StateExitAction<S>> getStateExitActions()Obtains theStateExitAction
s defined for the states in theModel
.- Returns:
- the defined
StateExitAction
s defined for the states in theModel
-