Package com.tangosol.util.fsm
Interface Model<S extends Enum<S>>
- Type Parameters:
- S- the type of state of the- FiniteStateMachine
- 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 SummaryModifier 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- 
getTransitionsIterable<Transition<S>> getTransitions()Obtains theTransitions defined by theModel.- Returns:
- the Transitions defined by theModel
 
- 
getStateClass- Returns:
- the Classof the state
 
- 
getStatesS[] getStates()Obtains the valid states defined by theModel.- Returns:
- the valid states of the Model
 
- 
getStateEntryActionsMap<S,StateEntryAction<S>> getStateEntryActions()Obtains theStateEntryActions defined for the states in theModel.- Returns:
- the defined StateEntryActions defined for the states in theModel
 
- 
getStateExitActionsMap<S,StateExitAction<S>> getStateExitActions()Obtains theStateExitActions defined for the states in theModel.- Returns:
- the defined StateExitActions defined for the states in theModel
 
 
-