Module es.upm.fi.cig.multictbnc
Class ClassificationService
java.lang.Object
javafx.concurrent.Service<Void>
es.upm.fi.cig.multictbnc.services.ClassificationService
- All Implemented Interfaces:
javafx.concurrent.Worker<Void>
,javafx.event.EventTarget
Service that creates and manages a
ClassificaionTask
.-
Property Summary
Properties inherited from class javafx.concurrent.Service
exception, executor, message, onCancelled, onFailed, onReady, 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected javafx.concurrent.Task<Void>
void
initialiseService
(MultiCTBNC<?, ?> model, DatasetReader datasetReader, boolean estimateProbabilities) Initialises theClassificationService
by receiving the learntMultiCTBNC
model and aDatasetReader
to read the dataset to classify.Methods inherited from class javafx.concurrent.Service
addEventFilter, addEventHandler, buildEventDispatchChain, cancel, cancelled, exceptionProperty, executeTask, executorProperty, failed, fireEvent, getException, getExecutor, getMessage, getOnCancelled, getOnFailed, getOnReady, getOnRunning, getOnScheduled, getOnSucceeded, getProgress, getState, getTitle, getTotalWork, getValue, getWorkDone, isRunning, messageProperty, onCancelledProperty, onFailedProperty, onReadyProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, ready, removeEventFilter, removeEventHandler, reset, restart, running, runningProperty, scheduled, setEventHandler, setExecutor, setOnCancelled, setOnFailed, setOnReady, setOnRunning, setOnScheduled, setOnSucceeded, start, stateProperty, succeeded, titleProperty, totalWorkProperty, valueProperty, workDoneProperty
-
Constructor Details
-
ClassificationService
public ClassificationService()
-
-
Method Details
-
initialiseService
public void initialiseService(MultiCTBNC<?, ?> model, DatasetReader datasetReader, boolean estimateProbabilities) Initialises theClassificationService
by receiving the learntMultiCTBNC
model and aDatasetReader
to read the dataset to classify.- Parameters:
model
-MultiCTBNC
modeldatasetReader
-a DatasetReader
to read the dataset to classifyestimateProbabilities
- true to estimate the probabilities of the class configurations, false otherwise
-
createTask
- Specified by:
createTask
in classjavafx.concurrent.Service<Void>
-