Package whistleClassifier.training
Class BatchTrainingWorker
java.lang.Object
javax.swing.SwingWorker<Integer,BatchTrainingProgress>
whistleClassifier.training.BatchTrainingWorker
- All Implemented Interfaces:
Runnable
,Future<Integer>
,RunnableFuture<Integer>
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
ConstructorDescriptionBatchTrainingWorker
(ClassifierTrainingDialog classifierTrainingDialog, BatchTrainingParams batchTrainingParams, BatchTrainingMonitor batchTrainingMonitor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setStatus
(ClassifierTrainingProgress bootstrapProgress) this should get status messages back from the main bootstrap dialog.void
stopNow()
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, removePropertyChangeListener, run
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
BatchTrainingWorker
public BatchTrainingWorker(ClassifierTrainingDialog classifierTrainingDialog, BatchTrainingParams batchTrainingParams, BatchTrainingMonitor batchTrainingMonitor)
-
-
Method Details
-
stopNow
public void stopNow() -
setStatus
this should get status messages back from the main bootstrap dialog. These probably arrive in the AWT thread, so the swing worker thread will just have to monitor these flags and wait for them to change before it can proceed.- Parameters:
statusMessage
-statusValue
-
-