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, Transitions between said states and
StateEntryActions / StateExitActions to be performed when
said states are changed.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
Method Summary
Modifier and TypeMethodDescriptionObtains theStateEntryActions defined for the states in theModel.Map<S, StateExitAction<S>> Obtains theStateExitActions defined for the states in theModel.S[]Obtains the valid states defined by theModel.Obtains theTransitions defined by theModel.
-
Method Details
-
getTransitions
Iterable<Transition<S>> getTransitions()Obtains theTransitions defined by theModel.- Returns:
- the
Transitions defined by theModel
-
getStateClass
- Returns:
- the
Classof 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 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
-