java.lang.Object
java.util.concurrent.FutureTask<V>
javafx.concurrent.Task<Void>
es.upm.fi.cig.multictbnc.tasks.ClassificationTask
- All Implemented Interfaces:
Runnable
,Future<Void>
,RunnableFuture<Void>
,javafx.concurrent.Worker<Void>
,javafx.event.EventTarget
Task that allows executing the classification of sequences in a background thread. This prevents the UI from
freezing.
-
Property Summary
Properties inherited from class javafx.concurrent.Task
exception, message, onCancelled, onFailed, onRunning, onScheduled, onSucceeded, progress, running, state, title, totalWork, value, workDone
-
Nested Class Summary
Nested classes/interfaces inherited from interface javafx.concurrent.Worker
javafx.concurrent.Worker.State
-
Constructor Summary
ConstructorDescriptionClassificationTask
(MultiCTBNC<?, ?> model, DatasetReader datasetReader, boolean estimateProbabilities) Constructs aClassificationTask
that receives anMultiCTBNC
model and adatasetReader
. -
Method Summary
Methods inherited from class javafx.concurrent.Task
addEventFilter, addEventHandler, buildEventDispatchChain, cancel, cancel, cancelled, exceptionProperty, fireEvent, getException, getMessage, getOnCancelled, getOnFailed, getOnRunning, getOnScheduled, getOnSucceeded, getProgress, getState, getTitle, getTotalWork, getValue, getWorkDone, isRunning, messageProperty, onCancelledProperty, onFailedProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, removeEventFilter, removeEventHandler, running, runningProperty, scheduled, setEventHandler, setOnCancelled, setOnFailed, setOnRunning, setOnScheduled, setOnSucceeded, stateProperty, titleProperty, totalWorkProperty, updateMessage, updateProgress, updateProgress, updateTitle, updateValue, valueProperty, workDoneProperty
Methods inherited from class java.util.concurrent.FutureTask
done, get, get, isCancelled, isDone, run, runAndReset, set, setException, toString
-
Constructor Details
-
ClassificationTask
public ClassificationTask(MultiCTBNC<?, ?> model, DatasetReader datasetReader, boolean estimateProbabilities) Constructs aClassificationTask
that receives anMultiCTBNC
model and adatasetReader
.- Parameters:
model
- model used to perform the classificationdatasetReader
- dataset reader that provides the sequences to classifyestimateProbabilities
- true to estimate the probabilities of the predicted class configurations, false otherwise
-
-
Method Details