universe
Class Server<Univ,Msg>

java.lang.Object
  extended by java.lang.Thread
      extended by universe.Server<Univ,Msg>
All Implemented Interfaces:
java.lang.Runnable

public class Server<Univ,Msg>
extends java.lang.Thread


Nested Class Summary
static class Server.WorldImp
           
static class Server.WorldImpObj
          Transfer using Object Streams...
static class Server.WorldImpSExp
          Transfer with SExpressions...
static class Server.WorldPred
           
static class Server.WorldShell
           
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void addMessage(WithWorld m)
          Add a Message to the Queue
 void addServant(universe.Server.ServantThread t)
          Add a Servant Thread to the List
 void addWorld(Server.WorldImp w)
          Add a Message to the Queue
 boolean hasMessage()
          Is there a message in the Queue
 WithWorld nextMessage()
          Get the next Message
 int numServants()
          Remove a Servant Thread from the List
 void processMail(Mail<Msg> m, IWorld from)
           
 void removeWorld(IWorld w)
           
 void run()
          Run!!
 void shutdown()
          Add a Servant Thread to the List
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

run

public void run()
Run!!

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

shutdown

public void shutdown()
Add a Servant Thread to the List


addServant

public void addServant(universe.Server.ServantThread t)
Add a Servant Thread to the List


addMessage

public void addMessage(WithWorld m)
Add a Message to the Queue


hasMessage

public boolean hasMessage()
Is there a message in the Queue


nextMessage

public WithWorld nextMessage()
Get the next Message


addWorld

public void addWorld(Server.WorldImp w)
Add a Message to the Queue


numServants

public int numServants()
Remove a Servant Thread from the List


processMail

public void processMail(Mail<Msg> m,
                        IWorld from)

removeWorld

public void removeWorld(IWorld w)