Class DLTaskThread
java.lang.Object
java.lang.Thread
rawDeepLearningClassifier.dlClassification.DLTaskThread
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
StandardClassifierModel.TaskThread
Creates a que for grouped data units for classiifcation.
- Author:
- Jamie Macaulay
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.BuilderPREVIEW, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<ArrayList<? extends PamDataUnit>>
getQueue()
Get the grouped data queueabstract void
newDLResult
(StandardPrediction soundSpotResult, PamDataUnit groupedRawData) Called whenever there is a new result.void
run()
void
setQueue
(List<ArrayList<? extends PamDataUnit>> queue) void
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
Called whenever there is a new result.- Parameters:
soundSpotResult
- - the new result.groupedRawData
- - the grouped data unit.
-
getQueue
Get the grouped data queue- Returns:
-
setQueue
-