public AnswerIF answerQuestion(AnswerFactoryIF factory, QuestionIF question, long step) {
   boolean enabled = "true".equalsIgnoreCase(question.getParameters()[0]);
   actionExecutor.setWriteSensorsToFile(enabled);
   return factory.createAnswer(AnswerTypesIF.ANSWER_TYPE_OK, question, null, step);
 }
示例#2
0
  /**
   * @see
   *     org.micropsi.common.consoleservice.ConsoleQuestionTypeIF#answerQuestion(org.micropsi.common.consoleservice.AnswerFactoryIF,
   *     org.micropsi.common.consoleservice.QuestionIF, long)
   */
  public AnswerIF answerQuestion(AnswerFactoryIF factory, QuestionIF question, long step) {
    String toReturn = "Server. \n";
    toReturn += "SimStep: " + server.getSimStep() + "\n";

    return factory.createAnswer(AnswerTypesIF.ANSWER_TYPE_STRING, question, toReturn, step);
  }