public class NearestNeighborTracker extends MultiThreadedBenchmarkAlgorithm implements SpotTracker, Cancelable
Modifier and Type | Field and Description |
---|---|
protected org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge> |
graph |
protected Logger |
logger |
protected Map<String,Object> |
settings |
protected SpotCollection |
spots |
processingTime
errorMessage, numThreads
Constructor and Description |
---|
NearestNeighborTracker(SpotCollection spots,
Map<String,Object> settings) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String reason) |
boolean |
checkInput() |
static boolean |
checkInput(Map<String,Object> settings,
StringBuilder errrorHolder) |
String |
getCancelReason() |
org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge> |
getResult() |
boolean |
isCanceled() |
boolean |
process() |
void |
reset() |
void |
setLogger(Logger logger)
Sets the
Logger instance that will receive messages from this
SpotTracker . |
getProcessingTime
getErrorMessage, getNumThreads, setNumThreads, setNumThreads
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorMessage
getNumThreads, setNumThreads, setNumThreads
protected final SpotCollection spots
protected Logger logger
protected org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge> graph
public NearestNeighborTracker(SpotCollection spots, Map<String,Object> settings)
public boolean checkInput()
checkInput
in interface Algorithm
public org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge> getResult()
getResult
in interface OutputAlgorithm<org.jgrapht.graph.SimpleWeightedGraph<Spot,org.jgrapht.graph.DefaultWeightedEdge>>
public void reset()
public static boolean checkInput(Map<String,Object> settings, StringBuilder errrorHolder)
public void setLogger(Logger logger)
SpotTracker
Logger
instance that will receive messages from this
SpotTracker
.setLogger
in interface SpotTracker
logger
- the logger to echo messages to.public boolean isCanceled()
isCanceled
in interface Cancelable
public void cancel(String reason)
cancel
in interface Cancelable
public String getCancelReason()
getCancelReason
in interface Cancelable
Copyright © 2015–2021 Fiji. All rights reserved.