sg.edu.nus.comp.nlp.ims.implement
Class CDemoThread

java.lang.Object
  extended by java.lang.Thread
      extended by sg.edu.nus.comp.nlp.ims.implement.CTestThread
          extended by sg.edu.nus.comp.nlp.ims.implement.CDemoThread
All Implemented Interfaces:
java.lang.Runnable

public class CDemoThread
extends CTestThread

Test thread for demo.

Author:
zhongzhi

Nested Class Summary
 
Nested classes/interfaces inherited from class sg.edu.nus.comp.nlp.ims.implement.CTestThread
CTestThread.LexeltThread
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.util.regex.Pattern m_IDPattern
           
protected  CWordNetSenseIndex m_SenseIndex
           
 
Fields inherited from class sg.edu.nus.comp.nlp.ims.implement.CTestThread
m_Connection, m_ConnReader, m_Corpus, m_CorpusName, m_CountDown, m_EndSymbol, m_Evaluator, m_FeatureExtractorName, m_In, m_InstanceExtractorName, m_InstanceLexeltIDs, m_Lexelts, m_Out, m_Results, m_ThreadPool, m_Writer
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CDemoThread(java.net.Socket connection, IEvaluator evaluator, IResultWriter resultWriter, CWordNetSenseIndex wordNetSenseIndex, java.lang.String endSymbol, java.lang.String[] options)
          constructor
 
Method Summary
protected  void collect()
          collect results
 
Methods inherited from class sg.edu.nus.comp.nlp.ims.implement.CTestThread
exit, getDateTime, initSocket, load, run, setOptions, test
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_SenseIndex

protected CWordNetSenseIndex m_SenseIndex

m_IDPattern

protected java.util.regex.Pattern m_IDPattern
Constructor Detail

CDemoThread

public CDemoThread(java.net.Socket connection,
                   IEvaluator evaluator,
                   IResultWriter resultWriter,
                   CWordNetSenseIndex wordNetSenseIndex,
                   java.lang.String endSymbol,
                   java.lang.String[] options)
            throws java.io.IOException
constructor

Parameters:
connection - socket connection
evaluator - evaluator
resultWriter - result writer
wordNetSenseIndex - wordnet sense index
endSymbol - ending symbol of communication
options - parameters
Throws:
java.io.IOException - exception while reading socket
Method Detail

collect

protected void collect()
Description copied from class: CTestThread
collect results

Overrides:
collect in class CTestThread