|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropsi.common.consoleservice.ConsoleServiceProvider
| Nested Class Summary | |
protected class |
ConsoleServiceProvider.StoredQuestionWrapper
Wrapper class for "stored questions". |
| Constructor Summary | |
ConsoleServiceProvider(AnswerFactoryIF defFact,
Logger logger)
Creates the ConsoleServiceProvider and sets the AnswerFactoryIF that will create the answer objects. |
|
| Method Summary | |
java.util.ArrayList |
answerQuestions(java.util.ArrayList questions,
long step)
Answers a list of given questions. |
java.util.ArrayList |
answerStoredQuestions(java.lang.String forComponent,
long step)
Answers all stored questions for the given component or all components. |
java.lang.String[] |
getKnownQuestionTypes()
Returns the names of the registered questionTypes. |
void |
registerQuestionType(ConsoleQuestionTypeIF newQuestionType)
Convenience method for registering question types without the "override" flag. |
void |
registerQuestionType(ConsoleQuestionTypeIF newQuestionType,
boolean override)
Registers a ConsoleQuestionTypeIF so the ConsoleServiceProvider can be asked such questions. |
void |
shutdown()
removes all stored questions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConsoleServiceProvider(AnswerFactoryIF defFact,
Logger logger)
defFact - the AnswerFactoryIF to be used with this ConsoleServiceProvider.| Method Detail |
public void registerQuestionType(ConsoleQuestionTypeIF newQuestionType,
boolean override)
throws MicropsiException
newQuestionType - the QuestionType to be added.override - if true, an already registered questionType with the same ID is
overriden without warning.
MicropsiException - 20 if there is already a questionType registered with the same questionName and override is false
public void registerQuestionType(ConsoleQuestionTypeIF newQuestionType)
throws MicropsiException
newQuestionType - the new question type
MicropsiException - 20 if there is already a questionType registered with the same questionName
public java.util.ArrayList answerStoredQuestions(java.lang.String forComponent,
long step)
forComponent - component filter: answer only stored questions from this component. null for all.step - the current netsteü
public java.util.ArrayList answerQuestions(java.util.ArrayList questions,
long step)
questions - An ArrayList of questions. All objects in the list must be QuestionIFs. Can be null.step - The current simulation step
java.lang.ClassCastException - if there is anything within the questions parameter that is no QuestionIFpublic java.lang.String[] getKnownQuestionTypes()
public void shutdown()
|
(c) by Micropsi Project: http://www.cognitive-agents.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||