S - the type of the state for the AnnotationDrivenModelpublic class AnnotationDrivenModel<S extends Enum<S>> extends Object implements Model<S>
AnnotationDrivenModel is a Model created through extracting information defined by Transitions annotation.| Constructor and Description | 
|---|
AnnotationDrivenModel(Class<S> clzState, Object oInstance)
Constructs an  
AnnotationDrivenModel based on the specified annotated class. | 
| Modifier and Type | Method and Description | 
|---|---|
Class<S> | 
getStateClass()
 | 
Map<S,StateEntryAction<S>> | 
getStateEntryActions()
Obtains the  
StateEntryActions defined for the states in the Model. | 
Map<S,StateExitAction<S>> | 
getStateExitActions()
Obtains the  
StateExitActions defined for the states in the Model. | 
S[] | 
getStates()
Obtains the valid states defined by the  
Model. | 
Iterable<Transition<S>> | 
getTransitions()
Obtains the  
Transitions defined by the Model. | 
public Map<S,StateEntryAction<S>> getStateEntryActions()
StateEntryActions defined for the states in the Model.getStateEntryActions in interface Model<S extends Enum<S>>StateEntryActions defined for the states in the Modelpublic Map<S,StateExitAction<S>> getStateExitActions()
StateExitActions defined for the states in the Model.getStateExitActions in interface Model<S extends Enum<S>>StateExitActions defined for the states in the Modelpublic Iterable<Transition<S>> getTransitions()
Transitions defined by the Model.getTransitions in interface Model<S extends Enum<S>>Transitions defined by the Model