|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
jAudioFeatureExtractor.CommandLineThread
public class CommandLineThread
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
Cancel |
cancel
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
CommandLineThread(Batch b)
|
Method Summary | |
---|---|
void |
announceUpdate(int fileDone)
Called periodically when processing a file |
void |
announceUpdate(int fileNumber,
int fileDone)
Called when a file is completed. |
void |
cancel()
|
void |
run()
|
void |
setFileLength(int windows)
Establishes how big the current file is. |
void |
setNumberOfFiles(int files)
Establishes how many files are in this execution |
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 |
---|
public Cancel cancel
Constructor Detail |
---|
public CommandLineThread(Batch b)
Method Detail |
---|
public void announceUpdate(int fileNumber, int fileDone)
Updater
announceUpdate
in interface Updater
fileNumber
- How many files are completed.fileDone
- Position in the file (usually 0).public void announceUpdate(int fileDone)
Updater
announceUpdate
in interface Updater
fileDone
- Position in file.public void setNumberOfFiles(int files)
Updater
setNumberOfFiles
in interface Updater
files
- Number of files to be processed.public void setFileLength(int windows)
Updater
setFileLength
in interface Updater
windows
- Total number of windows of data to be processed.public void cancel()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |