jAudioFeatureExtractor
Class CommandLineThread

java.lang.Object
  extended by java.lang.Thread
      extended by jAudioFeatureExtractor.CommandLineThread
All Implemented Interfaces:
Updater, java.lang.Runnable

public class CommandLineThread
extends java.lang.Thread
implements Updater

Author:
mcennis

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

cancel

public Cancel cancel
Constructor Detail

CommandLineThread

public CommandLineThread(Batch b)
Method Detail

announceUpdate

public void announceUpdate(int fileNumber,
                           int fileDone)
Description copied from interface: Updater
Called when a file is completed.

Specified by:
announceUpdate in interface Updater
Parameters:
fileNumber - How many files are completed.
fileDone - Position in the file (usually 0).

announceUpdate

public void announceUpdate(int fileDone)
Description copied from interface: Updater
Called periodically when processing a file

Specified by:
announceUpdate in interface Updater
Parameters:
fileDone - Position in file.

setNumberOfFiles

public void setNumberOfFiles(int files)
Description copied from interface: Updater
Establishes how many files are in this execution

Specified by:
setNumberOfFiles in interface Updater
Parameters:
files - Number of files to be processed.

setFileLength

public void setFileLength(int windows)
Description copied from interface: Updater
Establishes how big the current file is.

Specified by:
setFileLength in interface Updater
Parameters:
windows - Total number of windows of data to be processed.

cancel

public void cancel()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread