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>>
AModel
represents the definition of aFiniteStateMachine
, the set of known states,Transition
s between said states andStateEntryAction
s /StateExitAction
s to be performed when said states are changed.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<S>
getStateClass()
Map<S,StateEntryAction<S>>
getStateEntryActions()
Obtains theStateEntryAction
s defined for the states in theModel
.Map<S,StateExitAction<S>>
getStateExitActions()
Obtains theStateExitAction
s defined for the states in theModel
.S[]
getStates()
Obtains the valid states defined by theModel
.Iterable<Transition<S>>
getTransitions()
Obtains theTransition
s defined by theModel
.
-
-
-
Method Detail
-
getTransitions
Iterable<Transition<S>> getTransitions()
Obtains theTransition
s defined by theModel
.- Returns:
- the
Transition
s defined by theModel
-
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
-
-