comirva.io
Class ETPXMLExtractorThread

java.lang.Object
  extended by java.lang.Thread
      extended by comirva.io.ETPXMLExtractorThread
All Implemented Interfaces:
Runnable

public class ETPXMLExtractorThread
extends Thread

This class implements a thread for extracting data from an XML-file that contains an XML-serialized Entity Term Profile.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static String prefixDocumentFrequencies
           
static String prefixDocumentPaths
           
static String prefixTermFrequencies
           
static String prefixTermOccurrences
           
static String prefixTerms
           
static String prefixTFxIDFs
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ETPXMLExtractorThread(File f, Vector ml, DefaultListModel lm, Vector mdl, DefaultListModel lmd, JLabel jl, ETPLoaderConfig etplCfg)
          Creates an ETPXMLExtractorThread for loading an XML-serialized entity term profile from File f.
 
Method Summary
 void run()
          This method is called when the thread is started.
 
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

prefixTermOccurrences

public static String prefixTermOccurrences

prefixTermFrequencies

public static String prefixTermFrequencies

prefixDocumentFrequencies

public static String prefixDocumentFrequencies

prefixTFxIDFs

public static String prefixTFxIDFs

prefixTerms

public static String prefixTerms

prefixDocumentPaths

public static String prefixDocumentPaths
Constructor Detail

ETPXMLExtractorThread

public ETPXMLExtractorThread(File f,
                             Vector ml,
                             DefaultListModel lm,
                             Vector mdl,
                             DefaultListModel lmd,
                             JLabel jl,
                             ETPLoaderConfig etplCfg)
Creates an ETPXMLExtractorThread for loading an XML-serialized entity term profile from File f.

Parameters:
f - the File which contains the entity term profile
ml - the Vector to which the name of the DataMatrix should be added after it has been loaded
lm - the DefaultListModel to add the name of the matrix to the UI
mdl - the Vector to which the term list should be added
lmd - the DefaultListModel to add the name of the term list to the UI
jl - the JLabel representing the status bar (for writing current loading progress)
etplCfg - the ETPLoaderConfig that specifies which data should be loaded
Method Detail

run

public void run()
This method is called when the thread is started. The XML-file is deserialized, the data read and extracted.

Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Runnable.run()