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>>AModelrepresents the definition of aFiniteStateMachine, the set of known states,Transitions between said states andStateEntryActions /StateExitActions 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 theStateEntryActions defined for the states in theModel.Map<S,StateExitAction<S>>getStateExitActions()Obtains theStateExitActions defined for the states in theModel.S[]getStates()Obtains the valid states defined by theModel.Iterable<Transition<S>>getTransitions()Obtains theTransitions defined by theModel.
-
-
-
Method Detail
-
getTransitions
Iterable<Transition<S>> getTransitions()
Obtains theTransitions defined by theModel.- Returns:
- the
Transitions 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 theStateEntryActions defined for the states in theModel.- Returns:
- the defined
StateEntryActions defined for the states in theModel
-
getStateExitActions
Map<S,StateExitAction<S>> getStateExitActions()
Obtains theStateExitActions defined for the states in theModel.- Returns:
- the defined
StateExitActions defined for the states in theModel
-
-