org.micropsi.comp.world.connection3dengine
Class ClientConnection

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.micropsi.comp.world.connection3dengine.ClientConnection
All Implemented Interfaces:
java.lang.Runnable

public class ClientConnection
extends java.lang.Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void closeConnection()
           
 boolean isClosed()
           
 void run()
           
 void sendAllObjs()
          (re)sends all objects to client
 void sendClearAllObjectsMessage()
          tells the client to delete all objects it knows
 void sendDeleteObjectMessage(long objID)
          tells the client to delete a particular object
 void sendNewObjectMessage(AbstractObject o)
          sends a complete new objects to the client
 void sendObjectPositionMessage(AbstractObject o)
          submits a now position of a particular object to the client
 void sendUpdatesToClient()
          determines wich objects on the client are not up to date and sends appropriate update messages to the client
 
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
 

Method Detail

isClosed

public boolean isClosed()

closeConnection

public void closeConnection()

run

public void run()

sendUpdatesToClient

public void sendUpdatesToClient()
determines wich objects on the client are not up to date and sends appropriate update messages to the client


sendAllObjs

public void sendAllObjs()
(re)sends all objects to client


sendClearAllObjectsMessage

public void sendClearAllObjectsMessage()
tells the client to delete all objects it knows


sendNewObjectMessage

public void sendNewObjectMessage(AbstractObject o)
sends a complete new objects to the client


sendDeleteObjectMessage

public void sendDeleteObjectMessage(long objID)
tells the client to delete a particular object


sendObjectPositionMessage

public void sendObjectPositionMessage(AbstractObject o)
submits a now position of a particular object to the client


(c) by Micropsi Project: http://www.cognitive-agents.org

.