Package com.tangosol.util.fsm
Class AnnotationDrivenModel<S extends Enum<S>>
java.lang.Object
com.tangosol.util.fsm.AnnotationDrivenModel<S>
- Type Parameters:
S- the type of the state for theAnnotationDrivenModel
- All Implemented Interfaces:
Model<S>
An
AnnotationDrivenModel is a Model created through extracting
information defined by Transitions annotation.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationDrivenModel(Class<S> clzState, Object oInstance) Constructs anAnnotationDrivenModelbased on the specified annotated class. -
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.
-
Constructor Details
-
AnnotationDrivenModel
Constructs anAnnotationDrivenModelbased on the specified annotated class.
-
-
Method Details
-
getStateClass
-
getStateEntryActions
Obtains theStateEntryActions defined for the states in theModel.- Specified by:
getStateEntryActionsin interfaceModel<S extends Enum<S>>- Returns:
- the defined
StateEntryActions defined for the states in theModel
-
getStateExitActions
Obtains theStateExitActions defined for the states in theModel.- Specified by:
getStateExitActionsin interfaceModel<S extends Enum<S>>- Returns:
- the defined
StateExitActions defined for the states in theModel
-
getStates
Obtains the valid states defined by theModel. -
getTransitions
Obtains theTransitions defined by theModel.- Specified by:
getTransitionsin interfaceModel<S extends Enum<S>>- Returns:
- the
Transitions defined by theModel
-