|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropsi.comp.console.QuestionCache
A class for caching @see CachedQuestion.
| Field Summary | |
static int |
INITIAL_SIZE
|
static int |
MAX_SIZE
The maximal size of the cache. |
| Constructor Summary | |
protected |
QuestionCache()
|
| Method Summary | |
void |
addQuestion(CachedQuestion q,
CachedAnswer a)
Method addQuestion. |
AnswerIF |
findAnswer(CachedQuestion q)
Method findAnswer. |
static QuestionCache |
getInstance()
Method getInstance. |
int |
getSize()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int MAX_SIZE
public static int INITIAL_SIZE
| Constructor Detail |
protected QuestionCache()
| Method Detail |
public static QuestionCache getInstance()
public int getSize()
public AnswerIF findAnswer(CachedQuestion q)
q - - The question to be answered.
public void addQuestion(CachedQuestion q,
CachedAnswer a)
q - - The Question.a - - Its answer.
|
(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 | |||||||||