Class DLTaskThread
java.lang.Object
java.lang.Thread
rawDeepLearningClassifier.dlClassification.DLTaskThread
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
StandardClassifierModel.StandardDLTaskThread
Creates a que for grouped data units for classification.
- Author:
- Jamie Macaulay
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<ArrayList<? extends PamDataUnit>> getQueue()Get the grouped data queueabstract voidnewDLResult(ArrayList<StandardPrediction> modelResult, ArrayList<? extends PamDataUnit> groupedRawData) Called whenever there is a new result.voidrun()voidsetQueue(List<ArrayList<? extends PamDataUnit>> queue) voidMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
DLTaskThread
-
-
Method Details
-
stopTaskThread
public void stopTaskThread() -
run
public void run() -
newDLResult
public abstract void newDLResult(ArrayList<StandardPrediction> modelResult, ArrayList<? extends PamDataUnit> groupedRawData) Called whenever there is a new result. ArrayListmodelResult - Parameters:
groupedRawData- - the grouped data unit.soundSpotResult- - the new result.
-
getQueue
Get the grouped data queue- Returns:
-
setQueue
-