|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
fr.lifl.magique.util.Listener
a Listener belongs to an agent(a AbstractAgent object in fact). It checks when requests arrive and execute them. It is a thread
Thread| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Listener(AbstractAgent agent)
|
|
| Method Summary | |
AbstractAgent |
getAgent()
returns the agent I belongs to |
void |
halt()
halts the Listener : no more requests are managed |
void |
run()
executes requests in to do list of my agent when they arrive. each request is processed in a separate thread (synchronization must then be set in methods if required) |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Listener(AbstractAgent agent)
agent - the agent I belongs to| Method Detail |
public AbstractAgent getAgent()
public void halt()
public void run()
RequestProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||