| 构造器和说明 |
|---|
StateMachine() |
| 限定符和类型 | 方法和说明 |
|---|---|
StateMachine |
addState(State... states) |
StateMachine |
addState(State state)
添加一个状态
|
void |
firstState(int stateId) |
State |
getCurrentState() |
ConstraintMap<Object> |
getParams() |
State |
getPreState() |
void |
loop()
状态机循环
|
StateMachine |
reverse2PreState()
跳转回上一个状态
|
void |
start()
开启
|
public void start()
throws StateException
StateExceptionpublic void firstState(int stateId)
public StateMachine addState(State... states) throws StateException
StateExceptionpublic StateMachine addState(State state) throws StateException
state - ExceptionStateExceptionpublic StateMachine reverse2PreState() throws StateException
StateExceptionpublic void loop()
throws StateException
public State getCurrentState()
public State getPreState()
public ConstraintMap<Object> getParams()
Copyright © 2017. All rights reserved.