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