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 |
processingTimeerrorMessage, 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. |
getProcessingTimegetErrorMessage, getNumThreads, setNumThreads, setNumThreadsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorMessagegetNumThreads, setNumThreads, setNumThreadsprotected 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 Algorithmpublic 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)
SpotTrackerLogger instance that will receive messages from this
SpotTracker.setLogger in interface SpotTrackerlogger - the logger to echo messages to.public boolean isCanceled()
isCanceled in interface Cancelablepublic void cancel(String reason)
cancel in interface Cancelablepublic String getCancelReason()
getCancelReason in interface CancelableCopyright © 2015–2021 Fiji. All rights reserved.