org.micropsi.comp.timer.conserv
Class QTypeSetSimulationsSpeed

java.lang.Object
  extended byorg.micropsi.comp.timer.conserv.QTypeSetSimulationsSpeed
All Implemented Interfaces:
ConsoleQuestionTypeIF

public class QTypeSetSimulationsSpeed
extends java.lang.Object
implements ConsoleQuestionTypeIF


Constructor Summary
QTypeSetSimulationsSpeed(TimerComponent timer)
           
 
Method Summary
 AnswerIF answerQuestion(AnswerFactoryIF factory, QuestionIF question, long step)
          Answers a question.
 java.lang.String getQuestionName()
          Returns the question name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QTypeSetSimulationsSpeed

public QTypeSetSimulationsSpeed(TimerComponent timer)
Method Detail

getQuestionName

public java.lang.String getQuestionName()
Description copied from interface: ConsoleQuestionTypeIF
Returns the question name. It is important that this name be unique, as the consoleservice will chose the questionType by the return value of this method when it is about to answer a question. The returned value must not change during runtime.

Specified by:
getQuestionName in interface ConsoleQuestionTypeIF
Returns:
the name of the question

answerQuestion

public AnswerIF answerQuestion(AnswerFactoryIF factory,
                               QuestionIF question,
                               long step)
Description copied from interface: ConsoleQuestionTypeIF
Answers a question. The answer object should be auto-generated by the factory passed to this method, using the given question and step.

Specified by:
answerQuestion in interface ConsoleQuestionTypeIF
Parameters:
factory - The AnswerFactoryIF to be used for the creation of the answer
question - The question to be answered.
step - The current simulation step.
Returns:
an AnswerIF that contains the appropriate data. (@link AnswerIF)

(c) by Micropsi Project: http://www.cognitive-agents.org

.