| Package | Description |
|---|---|
| org.apache.mina.statemachine | |
| org.apache.mina.statemachine.context | |
| org.apache.mina.statemachine.transition |
| Modifier and Type | Method and Description |
|---|---|
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. |
State |
State.getParent()
Returns the parent
State. |
State |
StateMachine.getState(String id)
Returns the
State with the specified id. |
| Modifier and Type | Method and Description |
|---|---|
Collection<State> |
StateMachine.getStates()
|
| Constructor and Description |
|---|
State(String id,
State parent)
Creates a new
State with the specified id and parent. |
StateMachine(State[] states,
String startStateId)
Creates a new instance using the specified
States and start
state. |
| Constructor and Description |
|---|
StateMachine(Collection<State> states,
String startStateId)
Creates a new instance using the specified
States and start
state. |
| Modifier and Type | Method and Description |
|---|---|
State |
StateContext.getCurrentState()
Returns the current
State. |
State |
AbstractStateContext.getCurrentState() |
| Modifier and Type | Method and Description |
|---|---|
void |
StateContext.setCurrentState(State state)
Sets the current
State. |
void |
AbstractStateContext.setCurrentState(State state) |
| 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(Object eventId,
State nextState)
|
MethodTransition(Object eventId,
State nextState,
Method method,
Object target)
|
MethodTransition(Object eventId,
State nextState,
Object target)
|
MethodTransition(Object eventId,
State nextState,
String methodName,
Object target)
|
NoopTransition(Object eventId,
State nextState)
|
Copyright © 2004–2017 Apache MINA Project. All rights reserved.