java.lang.Object
alice.tucson.User
alice.tucson.Agent
demo.tucson.chat.ObserverAgent
- All Implemented Interfaces:
- java.lang.Runnable, alice.tucson.TucsonInterface
- public class ObserverAgent
- extends alice.tucson.Agent
The Observer Agent is responsible to observe (without polling)
the chat room in order to retrieve new message appeated in the chat
|
Method Summary |
void |
run()
This method will be called by whoever wishes to run your class
implementing Runnable. |
| Methods inherited from class alice.tucson.User |
getId, getSpec, getSpec, in, in, inp, inp, out, out, outAsync, outAsync, rd, rd, rdp, rdp, setDaemonPort, setSpec, setSpec, shutdown |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
chatId
alice.tucson.TupleCentreId chatId
gui
GUI gui
ownerId
alice.logictuple.Value ownerId
ObserverAgent
public ObserverAgent(alice.tucson.AgentId aid,
alice.tucson.AgentId ownerId,
GUI gui,
alice.tucson.TupleCentreId tid)
run
public void run()
- Description copied from interface:
java.lang.Runnable
- This method will be called by whoever wishes to run your class
implementing Runnable. Note that there are no restrictions on what
you are allowed to do in the run method, except that you cannot
throw a checked exception.