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>
AnAnnotationDrivenModelis aModelcreated through extracting information defined byTransitionsannotation.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
-
Constructor Summary
Constructors Constructor Description AnnotationDrivenModel(Class<S> clzState, Object oInstance)Constructs anAnnotationDrivenModelbased 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 theStateEntryActions defined for the states in theModel.Map<S,StateExitAction<S>>getStateExitActions()Obtains theStateExitActions defined for the states in theModel.S[]getStates()Obtains the valid states defined by theModel.Iterable<Transition<S>>getTransitions()Obtains theTransitions defined by theModel.
-
-
-
Method Detail
-
getStateEntryActions
public Map<S,StateEntryAction<S>> 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
public Map<S,StateExitAction<S>> 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
-
getTransitions
public Iterable<Transition<S>> getTransitions()
Obtains theTransitions defined by theModel.- Specified by:
getTransitionsin interfaceModel<S extends Enum<S>>- Returns:
- the
Transitions defined by theModel
-
-