| Constructor and Description |
|---|
StateMachine() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransition(Consumer<StateTransitionDecl<S,E,T>> declaration)
添加状态转换规则
|
S |
sendEvent(E event,
EventContext<S,T> eventContext)
发送事件
|
public void addTransition(Consumer<StateTransitionDecl<S,E,T>> declaration)
public S sendEvent(E event, EventContext<S,T> eventContext)
event - 事件eventContext - 事件上下文Copyright © 2025. All rights reserved.