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>
public class AnnotationDrivenModel<S extends Enum<S>> extends Object implements Model<S>
AnAnnotationDrivenModel
is aModel
created through extracting information defined byTransitions
annotation.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
-
Constructor Summary
Constructors Constructor Description AnnotationDrivenModel(Class<S> clzState, Object oInstance)
Constructs anAnnotationDrivenModel
based on the specified annotated class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<S>
getStateClass()
Map<S,StateEntryAction<S>>
getStateEntryActions()
Obtains theStateEntryAction
s defined for the states in theModel
.Map<S,StateExitAction<S>>
getStateExitActions()
Obtains theStateExitAction
s defined for the states in theModel
.S[]
getStates()
Obtains the valid states defined by theModel
.Iterable<Transition<S>>
getTransitions()
Obtains theTransition
s defined by theModel
.
-
-
-
Method Detail
-
getStateEntryActions
public Map<S,StateEntryAction<S>> 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
public Map<S,StateExitAction<S>> 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
-
getTransitions
public Iterable<Transition<S>> getTransitions()
Obtains theTransition
s defined by theModel
.- Specified by:
getTransitions
in interfaceModel<S extends Enum<S>>
- Returns:
- the
Transition
s defined by theModel
-
-