| Modifier and Type | Method and Description |
|---|---|
StateTransitionDecl<S,E,T> |
StateTransitionDecl.from(S... source)
来源状态
|
StateTransitionDecl<S,E,T> |
StateTransitionDecl.on(E event)
触发事件
|
StateTransitionDecl<S,E,T> |
StateTransitionDecl.then(Consumer<StateTransitionContext<S,E,T>> action)
然后执行动作
|
StateTransitionDecl<S,E,T> |
StateTransitionDecl.to(S target)
目标状态
|
StateTransitionDecl<S,E,T> |
StateTransitionDecl.when(Predicate<StateTransitionContext<S,E,T>> condition)
额外条件
|
| Modifier and Type | Method and Description |
|---|---|
void |
StateMachine.addTransition(Consumer<StateTransitionDecl<S,E,T>> declaration)
添加状态转换规则
|
| Constructor and Description |
|---|
StateTransition(StateTransitionDecl<S,E,T> decl) |
Copyright © 2025. All rights reserved.