ws.qe
Class QeStart

java.lang.Object
  extended byjava.lang.Thread
      extended byws.qe.QeStart
All Implemented Interfaces:
java.lang.Runnable

public class QeStart
extends java.lang.Thread

This class contains the run method to process the download, analysis(qurey expansion) and search in WordNet dababase, and update the output areas of the GUI.

This class extends the class Thread, over-writing the inherited run mathod from it, so the whole process of download, analysis, serch and update could be interrupted after its start without existing from the main program or closing the main window.

Author:
Sinia Zhang
See Also:
StopDialog, UpdateOutputPanel, QueryExpansion, WordNet

Field Summary
private  javax.swing.JList dataList
          The "DATABASE"-list.
private  javax.swing.JFrame frame
          The main window.
private  java.lang.String query
          The word delivered by "Word"-inputfield.
private  javax.swing.JDialog stopDialog
          The "Stop"-dialog.
private  int top
          The number delivered by "Top"-box.
private  int web
          The number delivered by "Web"-box.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
QeStart(javax.swing.JFrame frame, javax.swing.JList dataList, javax.swing.JDialog stopDialog, java.lang.String query, int top, int web)
          Initializes a QeStart object.
 
Method Summary
 void run()
          Over-writes the inherited method run from its extended class Thread.
 
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

frame

private javax.swing.JFrame frame
The main window.


dataList

private javax.swing.JList dataList
The "DATABASE"-list.


stopDialog

private javax.swing.JDialog stopDialog
The "Stop"-dialog.


query

private java.lang.String query
The word delivered by "Word"-inputfield.


top

private int top
The number delivered by "Top"-box.


web

private int web
The number delivered by "Web"-box.

Constructor Detail

QeStart

public QeStart(javax.swing.JFrame frame,
               javax.swing.JList dataList,
               javax.swing.JDialog stopDialog,
               java.lang.String query,
               int top,
               int web)
Initializes a QeStart object.

Parameters:
frame - The main window.
dataList - The "DATABASE"-list.
stopDialog - The "STOP"-dialog.
query - The word delivered by "Word"-inputfield.
top - The number delivered by "Top"-box.
web - The number delivered by "Web"-box.
Method Detail

run

public void run()
Over-writes the inherited method run from its extended class Thread.