app.util
Class SToCThread

java.lang.Object
  extended by java.lang.Thread
      extended by app.util.SToCThread
All Implemented Interfaces:
java.lang.Runnable

public class SToCThread
extends java.lang.Thread

SiGML-to-CAS thread, providing support for the SToCApplet.


Nested Class Summary
static interface SToCThread.CASDataDelivery
          Interface for CAS data delivery.
 
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 kill()
          Posts a kill task to this thread -- asynchronously, allowing an immediate return.
 void requestSiGMLTextToCAS(java.lang.String sigml, java.lang.String avatar, java.lang.String casfmt, SToCApplet.CASDispatch casback)
          Accepts a CAS generation request for the given SiGML text and avatar, attaches the given SToCApplet.CASDispatch to the request as its associated results target, and posts the request to the SiGML-to-CAS processing thread, waiting if necessary until that thread is ready to accept it.
 void requestSiGMLURLToCAS(java.lang.String sigmlurl, java.lang.String avatar, java.lang.String casfmt, SToCApplet.CASDispatch casback)
          Accepts a CAS generation request for the given SiGML URL and avatar, attaches the given SToCApplet.CASDispatch to the request as its associated results target, and posts the request to the SiGML-to-CAS processing thread, waiting if necessary until that thread is ready to accept it.
 void run()
          Defines this thread's action -- repeatedly obtaining and processing the next S-to-C task.
static SToCThread startTheThread(jautil.JAOptions jaopts, SToCApplet.SToCALogger logger)
           
 
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

startTheThread

public static SToCThread startTheThread(jautil.JAOptions jaopts,
                                        SToCApplet.SToCALogger logger)

run

public void run()
Defines this thread's action -- repeatedly obtaining and processing the next S-to-C task.

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

kill

public void kill()
Posts a kill task to this thread -- asynchronously, allowing an immediate return.


requestSiGMLURLToCAS

public void requestSiGMLURLToCAS(java.lang.String sigmlurl,
                                 java.lang.String avatar,
                                 java.lang.String casfmt,
                                 SToCApplet.CASDispatch casback)
Accepts a CAS generation request for the given SiGML URL and avatar, attaches the given SToCApplet.CASDispatch to the request as its associated results target, and posts the request to the SiGML-to-CAS processing thread, waiting if necessary until that thread is ready to accept it.


requestSiGMLTextToCAS

public void requestSiGMLTextToCAS(java.lang.String sigml,
                                  java.lang.String avatar,
                                  java.lang.String casfmt,
                                  SToCApplet.CASDispatch casback)
Accepts a CAS generation request for the given SiGML text and avatar, attaches the given SToCApplet.CASDispatch to the request as its associated results target, and posts the request to the SiGML-to-CAS processing thread, waiting if necessary until that thread is ready to accept it.