public class ModelFeatureUpdater extends Object implements ModelChangeListener, MultiThreaded
Constructor and Description |
---|
ModelFeatureUpdater(Model model,
Settings settings)
Constructs and activate a
ModelFeatureUpdater . |
Modifier and Type | Method and Description |
---|---|
int |
getNumThreads() |
void |
modelChanged(ModelChangeEvent event)
Updates the model features against the change notified here.
|
void |
quit()
Re-registers this instance from the listeners of the model, and stop
updating its features.
|
void |
setNumThreads() |
void |
setNumThreads(int numThreads) |
public ModelFeatureUpdater(Model model, Settings settings)
ModelFeatureUpdater
. The new instance is
registered to listen to model changes, and update its feature.model
- the model to listen to.settings
- the Settings
the model is built against. Required
to access the raw data.public void modelChanged(ModelChangeEvent event)
ModelChangeEvent.MODEL_MODIFIED
,
does nothing.modelChanged
in interface ModelChangeListener
event
- the ModelChangeEvent
.public void quit()
public int getNumThreads()
getNumThreads
in interface MultiThreaded
public void setNumThreads()
setNumThreads
in interface MultiThreaded
public void setNumThreads(int numThreads)
setNumThreads
in interface MultiThreaded
Copyright © 2015–2021 Fiji. All rights reserved.