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() |
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
State s and start
state. |
Constructor and Description |
---|
StateMachine(Collection<State> states,
String startStateId)
Creates a new instance using the specified
State s and start
state. |
Modifier and Type | Method and Description |
---|---|
State |
StateContext.getCurrentState() |
State |
AbstractStateContext.getCurrentState() |
Modifier and Type | Method and Description |
---|---|
void |
StateContext.setCurrentState(State state)
Sets the current
State . |
void |
AbstractStateContext.setCurrentState(State state)
Sets the current
State . |
Modifier and Type | Method and Description |
---|---|
State |
Transition.getNextState() |
State |
AbstractTransition.getNextState() |
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)
Executes this
SelfTransition . |
boolean |
AbstractSelfTransition.execute(StateContext stateContext,
State state)
Executes this
SelfTransition . |
boolean |
SelfTransition.execute(StateContext stateContext,
State state)
Executes this
SelfTransition . |
Constructor and Description |
---|
AbstractTransition(Object eventId,
State nextState)
|
AbstractTransition(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–2020 Apache MINA Project. All rights reserved.