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
ConstructorDescriptionAnnotationDrivenModel
(Class<S> clzState, Object oInstance) Constructs anAnnotationDrivenModel
based on the specified annotated class. -
Method Summary
Modifier and TypeMethodDescriptionObtains theStateEntryAction
s defined for the states in theModel
.Map
<S, StateExitAction<S>> Obtains theStateExitAction
s defined for the states in theModel
.S[]
Obtains the valid states defined by theModel
.Obtains theTransition
s defined by theModel
.
-
Constructor Details
-
AnnotationDrivenModel
Constructs anAnnotationDrivenModel
based on the specified annotated class.
-
-
Method Details
-
getStateClass
-
getStateEntryActions
Obtains theStateEntryAction
s defined for the states in theModel
.- Specified by:
getStateEntryActions
in interfaceModel<S extends Enum<S>>
- Returns:
- the defined
StateEntryAction
s defined for the states in theModel
-
getStateExitActions
Obtains theStateExitAction
s defined for the states in theModel
.- Specified by:
getStateExitActions
in interfaceModel<S extends Enum<S>>
- Returns:
- the defined
StateExitAction
s defined for the states in theModel
-
getStates
Obtains the valid states defined by theModel
. -
getTransitions
Obtains theTransition
s defined by theModel
.- Specified by:
getTransitions
in interfaceModel<S extends Enum<S>>
- Returns:
- the
Transition
s defined by theModel
-