|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.lang.Thread
jAudioFeatureExtractor.ExtractionThread
public class ExtractionThread
This is a thread for executing the DataModel.extractFeatures without tying up the swing dispatch thread.
入れ子のクラスの概要 |
---|
クラス java.lang.Thread から継承された入れ子のクラス/インタフェース |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
フィールドの概要 |
---|
クラス java.lang.Thread から継承されたフィールド |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
コンストラクタの概要 | |
---|---|
ExtractionThread(Controller c,
OuterFrame of)
This constructor constructs the thread, partially preparing it for execution |
メソッドの概要 | |
---|---|
void |
announceUpdate(int fileDone)
This is part of the Updater interface. |
void |
announceUpdate(int fileNumber,
int fileDone)
This is part of the Updater interface. |
boolean |
hasRun()
Used to prevent this thread from executing twice. |
void |
run()
Execute the thread, suspending the main frame, extracting the features, then enabling the main frame. |
void |
setFileLength(int window)
This is part of the Updater interface. |
void |
setNumberOfFiles(int files)
This is part of the Updater interface. |
void |
setup(boolean perFile,
boolean perWindow,
java.lang.String valuesSavePath,
java.lang.String definitionSavePath,
int windowSize,
double windowOverlap)
This is the method to finish preparing the thread for execution |
クラス 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 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
---|
public ExtractionThread(Controller c, OuterFrame of)
c
- Near global container for numerous controller and model
objectsof
- Link to outerframe of the gui. Used to disable the main frame
to prevent race conditions in the feature settings.メソッドの詳細 |
---|
public void setup(boolean perFile, boolean perWindow, java.lang.String valuesSavePath, java.lang.String definitionSavePath, int windowSize, double windowOverlap)
perFile
- Should features be extracted over the entire fileperWindow
- Should features be extracted on a window by window basisvaluesSavePath
- File to save extracted featuresdefinitionSavePath
- File to save descriptions of the features extractedwindowSize
- Size of the analysis window in sampleswindowOverlap
- Percent of the window that is duplicated between analysis
windowspublic void run()
java.lang.Runnable
内の run
java.lang.Thread
内の run
public void announceUpdate(int fileNumber, int fileDone)
Updater
内の announceUpdate
fileNumber
- How many files are completed.fileDone
- Position in the file (usually 0).public void announceUpdate(int fileDone)
Updater
内の announceUpdate
fileDone
- Position in file.public void setNumberOfFiles(int files)
Updater
内の setNumberOfFiles
files
- Number of files to be processed.public void setFileLength(int window)
Updater
内の setFileLength
window
- Total number of windows of data to be processed.public boolean hasRun()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |