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(java.lang.String id)
Returns the
State with the specified id. |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<State> |
StateMachine.getStates()
|
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
State s and start
state. |
Constructor and Description |
---|
StateMachine(java.util.Collection<State> states,
java.lang.String startStateId)
Creates a new instance using the specified
State s 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 |
Transition.getNextState()
Returns the
State which the StateMachine should move to
if this Transition is taken and Transition.execute(Event) returns
true . |
State |
AbstractTransition.getNextState() |
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)
|
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.