public interface State
Pre- and post- actions are taken only on completed transitions between different states. Assume that the FSM is in state A, and the FSM will transition to state B under input I with action X. If A != B and X completes successfully, then after X completes execution, A.postAction is executed, followed by B.preAction.
Modifier and Type | Method and Description |
---|---|
void |
postAction(FSM fsm)
Method that defines action that occurs whenever this state is exited.
|
void |
preAction(FSM fsm)
Method that defines action that occurs whenever this state is entered.
|
void preAction(FSM fsm)
void postAction(FSM fsm)
Copyright © 2016 JBoss by Red Hat. All rights reserved.