public class GeneratorThread
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
inputFile
input file setting from GUI
|
(package private) java.lang.String |
outputDir
output directory
|
(package private) MainFrame |
parent
main UI component, likes to be notified when generator finishes
|
private static boolean |
running
there must be at most one instance of this Thread running
|
Constructor and Description |
---|
GeneratorThread(MainFrame parent,
java.lang.String inputFile,
java.lang.String outputDir)
Create a new GeneratorThread, but do not run it yet.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Run the generator thread.
|
activeCount, checkAccess, clone, 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
private static volatile boolean running
java.lang.String inputFile
java.lang.String outputDir
MainFrame parent
public GeneratorThread(MainFrame parent, java.lang.String inputFile, java.lang.String outputDir)
parent
- the frame, main UI componentinputFile
- input file from UI settingsoutputDir
- output directory from UI settings