code: @Override
      public void nextState(PHATInterface phatInterface) {
          switch (state) {
              case NOT_INIT:
                  initState(phatInterface);
                  setState(STATE.STARTED);
                  break;
              case STARTED:
                  if(isFinished(phatInterface)) {
                      setState(FINISHED);
                  } else {
                      simpleNextState(phatInterface);
                  }
                  break;
              case FINISHED:
                  break;
              case INTERRUPTED:
                  if (finishCondition != null) {
                      finishCondition.automatonInterrupted(this);
                  }
                  interrupt(phatInterface);
                  break;
              case RESUMED:
                  if (finishCondition != null) {
                      finishCondition.automatonResumed(this);
                  }
                  resume(phatInterface);
                  setState(STATE.STARTED);
                  break;
          }    
      }
docs: Se obliga a implementar un nextState ya que en automaton depende del autómata subordinado.
  @param state