|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropsi.comp.console.AbstractAnswerQueue
org.micropsi.comp.console.DefaultAnswerQueue
Classes who want to dispatch answers should do it the following way:
// ...
Display.getCurrent().asyncExec (answerQueue);
or
// ...
Display.getCurrent().syncExec(answerQueue);
Normally you would use the first way, but if you have a more sophisticated,
method and you have to wait for its execution, use the
latter one.| Field Summary | |
protected java.util.ArrayList |
answers
The answers as an ArrayList of @see org.micropsi.common.consoleservice.AnswerIF |
protected java.lang.reflect.Method |
handle
The method which should handle the question. |
protected AnswerHandlerIF |
part
The part which sent the question. |
| Constructor Summary | |
DefaultAnswerQueue(AnswerHandlerIF part)
Method AnswerQueue. |
|
| Method Summary | |
void |
dispatchAnswer(AnswerIF answer)
Method dispatchAnswer |
java.lang.reflect.Method |
getHandle()
|
AnswerHandlerIF |
getHandler()
|
void |
handleAnswers()
Method handleAnswers. |
void |
run()
|
| Methods inherited from class org.micropsi.comp.console.AbstractAnswerQueue |
equals, hashCode |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected AnswerHandlerIF part
protected java.lang.reflect.Method handle
protected java.util.ArrayList answers
| Constructor Detail |
public DefaultAnswerQueue(AnswerHandlerIF part)
part - | Method Detail |
public void dispatchAnswer(AnswerIF answer)
dispatchAnswer in interface AnswerQueueIFanswer - This method is called from @see de.artificialemotion.comp.consoleapp.plugin.eclipseconsole.AnswerDispatcher
Normally you don't want to override this method.public final void run()
run in interface java.lang.RunnablePlease don't override this method. Use @see #handleAnswers instead.public void handleAnswers()
handleAnswers in interface AnswerQueueIFpublic java.lang.reflect.Method getHandle()
This method is called, when the we are the part.public AnswerHandlerIF getHandler()
getHandler in class AbstractAnswerQueue
|
(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 | |||||||||