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
 
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, SToCApplet.CASDispatch casback)
          Accepts a CAS generation request for the given SiGML text and avatar, posts the request to the processing thread, and returns the result when it becomes available.
 void requestSiGMLURLToCAS(java.lang.String sigmlurl, java.lang.String avatar, SToCApplet.CASDispatch casback)
          Accepts a CAS generation request for the given SiGML URL and avatar, posts the request to the processing thread, and returns the result when it becomes available.
 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,
                                 SToCApplet.CASDispatch casback)
Accepts a CAS generation request for the given SiGML URL and avatar, posts the request to the processing thread, and returns the result when it becomes available.


requestSiGMLTextToCAS

public void requestSiGMLTextToCAS(java.lang.String sigml,
                                  java.lang.String avatar,
                                  SToCApplet.CASDispatch casback)
Accepts a CAS generation request for the given SiGML text and avatar, posts the request to the processing thread, and returns the result when it becomes available.