| Package | Description |
|---|---|
| org.apache.mina.statemachine | |
| org.apache.mina.statemachine.context | |
| org.apache.mina.statemachine.transition |
| Modifier and Type | Field and Description |
|---|---|
private State |
State.parent |
private State |
StateMachine.startState |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,State> |
StateMachine.states |
| Modifier and Type | Method and Description |
|---|---|
(package private) State |
State.addOnEntrySelfTransaction(SelfTransition onEntrySelfTransaction)
Adds an entry
SelfTransition to this State |
(package private) State |
State.addOnExitSelfTransaction(SelfTransition onExitSelfTransaction)
Adds an exit
SelfTransition to this State |
State |
State.addTransition(Transition transition)
Adds an outgoing
Transition to this State with weight 0. |
State |
State.addTransition(Transition transition,
int weight)
Adds an outgoing
Transition to this State with the
specified weight. |
(package private) static State[] |
StateMachineFactory.createStates(java.util.List<java.lang.reflect.Field> fields) |
State |
State.getParent()
Returns the parent
State. |
State |
StateMachine.getState(java.lang.String id)
Returns the
State with the specified id. |
| Modifier and Type | Method and Description |
|---|---|
private java.util.Stack<State> |
StateMachine.getCallStack(StateContext context) |
java.util.Collection<State> |
StateMachine.getStates()
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
StateMachine.executeOnEntries(StateContext context,
State state) |
(package private) void |
StateMachine.executeOnExits(StateContext context,
State state) |
private void |
StateMachine.handle(State state,
Event event) |
private void |
StateMachine.setCurrentState(StateContext context,
State newState) |
| Modifier and Type | Method and Description |
|---|---|
private static void |
StateMachineFactory.setupSelfTransitions(java.lang.reflect.Method m,
java.lang.Class<? extends java.lang.annotation.Annotation> onEntrySelfTransitionAnnotation,
java.lang.Class<? extends java.lang.annotation.Annotation> onExitSelfTransitionAnnotation,
java.util.Map<java.lang.String,State> states,
java.lang.Object handler) |
private static void |
StateMachineFactory.setupTransitions(java.lang.Class<? extends java.lang.annotation.Annotation> transitionAnnotation,
java.lang.Class<? extends java.lang.annotation.Annotation> transitionsAnnotation,
java.lang.Class<? extends java.lang.annotation.Annotation> onEntrySelfTransitionAnnotation,
java.lang.Class<? extends java.lang.annotation.Annotation> onExitSelfTransitionAnnotation,
java.util.Map<java.lang.String,State> states,
java.util.List<java.lang.Object> handlers) |
private static void |
StateMachineFactory.setupTransitions(java.lang.Class<? extends java.lang.annotation.Annotation> transitionAnnotation,
java.lang.Class<? extends java.lang.annotation.Annotation> transitionsAnnotation,
java.lang.Class<? extends java.lang.annotation.Annotation> onEntrySelfTransitionAnnotation,
java.lang.Class<? extends java.lang.annotation.Annotation> onExitSelfTransitionAnnotation,
java.util.Map<java.lang.String,State> states,
java.lang.Object handler) |
| Constructor and Description |
|---|
State(java.lang.String id,
State parent)
Creates a new
State with the specified id and parent. |
StateMachine(State[] states,
java.lang.String startStateId)
Creates a new instance using the specified
States and start
state. |
| Constructor and Description |
|---|
StateMachine(java.util.Collection<State> states,
java.lang.String startStateId)
Creates a new instance using the specified
States and start
state. |
| Modifier and Type | Field and Description |
|---|---|
private State |
AbstractStateContext.currentState |
| Modifier and Type | Method and Description |
|---|---|
State |
AbstractStateContext.getCurrentState() |
State |
StateContext.getCurrentState()
Returns the current
State. |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractStateContext.setCurrentState(State state) |
void |
StateContext.setCurrentState(State state)
Sets the current
State. |
| Modifier and Type | Field and Description |
|---|---|
private State |
AbstractTransition.nextState |
| Modifier and Type | Method and Description |
|---|---|
State |
AbstractTransition.getNextState() |
State |
Transition.getNextState()
Returns the
State which the StateMachine should move to
if this Transition is taken and Transition.execute(Event) returns
true. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
AbstractSelfTransition.doExecute(StateContext stateContext,
State state)
Executes this
SelfTransition. |
boolean |
MethodSelfTransition.doExecute(StateContext stateContext,
State state) |
boolean |
AbstractSelfTransition.execute(StateContext stateContext,
State state) |
boolean |
SelfTransition.execute(StateContext stateContext,
State state)
Executes this
SelfTransition. |
| Constructor and Description |
|---|
AbstractTransition(java.lang.Object eventId,
State nextState)
|
MethodTransition(java.lang.Object eventId,
State nextState,
java.lang.reflect.Method method,
java.lang.Object target)
|
MethodTransition(java.lang.Object eventId,
State nextState,
java.lang.Object target)
|
MethodTransition(java.lang.Object eventId,
State nextState,
java.lang.String methodName,
java.lang.Object target)
|
NoopTransition(java.lang.Object eventId,
State nextState)
|