| 构造器和说明 |
|---|
StateMachine() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addTransition(java.util.function.Consumer<StateTransitionDecl<S,E,T>> declaration)
添加状态转换规则
|
protected StateTransitionDecl<S,E,T> |
from(S... source)
添加状态转换规则
|
S |
sendEvent(E event,
EventContext<S,T> eventContext)
发送事件
|
public void addTransition(java.util.function.Consumer<StateTransitionDecl<S,E,T>> declaration)
protected StateTransitionDecl<S,E,T> from(S... source)
public S sendEvent(E event, EventContext<S,T> eventContext)
event - 事件eventContext - 事件上下文