edu.nyu.cs.pdsg.switchboard
Class SbLayerDriver

java.lang.Object
  extended byjava.lang.Thread
      extended byedu.nyu.cs.pdsg.switchboard.SbLayerDriver
All Implemented Interfaces:
java.lang.Runnable

public class SbLayerDriver
extends java.lang.Thread


Field Summary
(package private) static SbLayerDriver driver
           
(package private) static int layerCount
           
(package private)  java.util.LinkedList q
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private SbLayerDriver()
           
 
Method Summary
static void close(SbLayerable _layer)
           
static void deliver(SbLayerable _layer, java.lang.Object _payload)
           
(package private) static void driverDone()
           
(package private) static boolean driverNeeded()
           
static void handleEvent(SbLayerable _layer, SbLayerable _payload)
           
static void init(SbLayerable _layer)
           
private  void qAdd(SbLayerMessage msg)
           
private  boolean qIsEmpty()
           
private  SbLayerMessage qRemove()
           
(package private) static void registerLayer()
           
 void run()
           
private static void schedule(SbLayerMessage msg)
           
(package private) static void unregisterLayer()
           
static void write(SbLayerable _layer, java.lang.Object _payload)
           
 
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
 

Field Detail

driver

static SbLayerDriver driver

q

java.util.LinkedList q

layerCount

static int layerCount
Constructor Detail

SbLayerDriver

private SbLayerDriver()
Method Detail

deliver

public static void deliver(SbLayerable _layer,
                           java.lang.Object _payload)

write

public static void write(SbLayerable _layer,
                         java.lang.Object _payload)

handleEvent

public static void handleEvent(SbLayerable _layer,
                               SbLayerable _payload)

init

public static void init(SbLayerable _layer)

close

public static void close(SbLayerable _layer)

registerLayer

static void registerLayer()

unregisterLayer

static void unregisterLayer()

driverNeeded

static boolean driverNeeded()

driverDone

static void driverDone()

run

public void run()

qIsEmpty

private boolean qIsEmpty()

qRemove

private SbLayerMessage qRemove()

qAdd

private void qAdd(SbLayerMessage msg)

schedule

private static void schedule(SbLayerMessage msg)


Copyright (c) 2002-2003 New York University RLAB