Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

demo.tucson.chat
Class ObserverAgent  view ObserverAgent download ObserverAgent.java

java.lang.Object
  extended byalice.tucson.User
      extended byalice.tucson.Agent
          extended bydemo.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


Field Summary
(package private)  alice.tucson.TupleCentreId chatId
           
(package private)  GUI gui
           
(package private)  alice.logictuple.Value ownerId
           
 
Fields inherited from class alice.tucson.User
defaultTid, user
 
Constructor Summary
ObserverAgent(alice.tucson.AgentId aid, alice.tucson.AgentId ownerId, GUI gui, alice.tucson.TupleCentreId tid)
           
 
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
 

Field Detail

chatId

alice.tucson.TupleCentreId chatId

gui

GUI gui

ownerId

alice.logictuple.Value ownerId
Constructor Detail

ObserverAgent

public ObserverAgent(alice.tucson.AgentId aid,
                     alice.tucson.AgentId ownerId,
                     GUI gui,
                     alice.tucson.TupleCentreId tid)
Method Detail

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.