Beispiel #1
0
 /**
  * Changes the FSM state to the specified state.
  *
  * @param name name of the state to change to.
  */
 protected void setNextState(Object name) {
   if (fsm != null) fsm.setNextState(name);
 }
Beispiel #2
0
 /** Terminates the FSM by setting the next state to be FINAL. */
 public void terminate() {
   setNextState(FINAL);
 }