public abstract class SearchThread extends AbstractSearch
Modifier and Type | Field and Description |
---|---|
static int |
CANCELLED |
static byte |
CLOSED_FROM_GOAL |
protected long |
closed_from_goal_count |
static byte |
CLOSED_FROM_START |
protected long |
closed_from_start_count |
protected Cost |
costFunction |
static String[] |
EXIT_REASONS_STRINGS |
protected int |
exitReason |
static byte |
FREE |
protected long |
lastReportMilliseconds |
protected long |
loops |
protected long |
loops_at_last_report |
protected SearchImageStack<DefaultSearchNode> |
nodes_as_image_from_goal |
protected SearchImageStack<DefaultSearchNode> |
nodes_as_image_from_start |
static byte |
OPEN_FROM_GOAL |
protected org.jheaps.AddressableHeap<DefaultSearchNode,Void> |
open_from_start |
static byte |
OPEN_FROM_START |
static int |
OUT_OF_MEMORY |
static int |
POINTS_EXHAUSTED |
protected long |
started_at |
static int |
SUCCESS |
static int |
TIMED_OUT |
protected boolean |
verbose |
img, imgAccess, imgDepth, imgHeight, imgWidth, progressListeners, reportEveryMilliseconds, spacing_units, timeoutSeconds, xMax, xMin, xSep, yMax, yMin, ySep, zMax, zMin, zSep
Modifier | Constructor and Description |
---|---|
protected |
SearchThread(Dataset dataset,
boolean bidirectional,
boolean definedGoal,
int timeoutSeconds,
long reportEveryMilliseconds,
SNT.SearchImageType searchImageType,
Cost costFunction) |
protected |
SearchThread(RandomAccessibleInterval<? extends RealType<?>> image,
ij.measure.Calibration calibration,
boolean bidirectional,
boolean definedGoal,
int timeoutSeconds,
long reportEveryMilliseconds,
SNT.SearchImageType searchImageType,
Cost costFunction) |
protected |
SearchThread(SNT snt,
RandomAccessibleInterval<? extends RealType<?>> image,
Cost costFunction) |
Modifier and Type | Method and Description |
---|---|
void |
addNode(DefaultSearchNode n,
boolean fromStart) |
void |
addProgressListener(SearchProgressCallback callback) |
protected boolean |
atGoal(int x,
int y,
int z,
boolean fromStart) |
protected boolean |
checkStatus() |
DefaultSearchNode |
createNewNode(int x,
int y,
int z,
double g,
double h,
DefaultSearchNode predecessor,
byte searchStatus) |
protected void |
foundGoal(Path pathToGoal) |
int |
getExitReason() |
SearchImageStack<DefaultSearchNode> |
getNodesAsImageFromGoal() |
SearchImageStack<DefaultSearchNode> |
getNodesAsImageFromStart() |
long |
pointsConsideredInSearch() |
void |
printStatus() |
void |
reportFinished(boolean success) |
protected void |
reportPointsInSearch() |
void |
run() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResult
public static final byte OPEN_FROM_START
public static final byte CLOSED_FROM_START
public static final byte OPEN_FROM_GOAL
public static final byte CLOSED_FROM_GOAL
public static final byte FREE
public static final int SUCCESS
public static final int CANCELLED
public static final int TIMED_OUT
public static final int POINTS_EXHAUSTED
public static final int OUT_OF_MEMORY
public static final String[] EXIT_REASONS_STRINGS
protected final Cost costFunction
protected org.jheaps.AddressableHeap<DefaultSearchNode,Void> open_from_start
protected long closed_from_start_count
protected long closed_from_goal_count
protected SearchImageStack<DefaultSearchNode> nodes_as_image_from_start
protected SearchImageStack<DefaultSearchNode> nodes_as_image_from_goal
protected int exitReason
protected final boolean verbose
protected long started_at
protected long loops
protected long loops_at_last_report
protected long lastReportMilliseconds
protected SearchThread(RandomAccessibleInterval<? extends RealType<?>> image, ij.measure.Calibration calibration, boolean bidirectional, boolean definedGoal, int timeoutSeconds, long reportEveryMilliseconds, SNT.SearchImageType searchImageType, Cost costFunction)
protected SearchThread(Dataset dataset, boolean bidirectional, boolean definedGoal, int timeoutSeconds, long reportEveryMilliseconds, SNT.SearchImageType searchImageType, Cost costFunction)
protected SearchThread(SNT snt, RandomAccessibleInterval<? extends RealType<?>> image, Cost costFunction)
protected void reportPointsInSearch()
reportPointsInSearch
in class AbstractSearch
public long pointsConsideredInSearch()
pointsConsideredInSearch
in class AbstractSearch
public DefaultSearchNode createNewNode(int x, int y, int z, double g, double h, DefaultSearchNode predecessor, byte searchStatus)
protected void foundGoal(Path pathToGoal)
protected boolean atGoal(int x, int y, int z, boolean fromStart)
public void addProgressListener(SearchProgressCallback callback)
addProgressListener
in class AbstractSearch
public void reportFinished(boolean success)
public void printStatus()
printStatus
in class AbstractSearch
protected boolean checkStatus()
public void run()
public int getExitReason()
public void addNode(DefaultSearchNode n, boolean fromStart)
public SearchImageStack<DefaultSearchNode> getNodesAsImageFromStart()
public SearchImageStack<DefaultSearchNode> getNodesAsImageFromGoal()
Copyright © 2015–2021 Fiji. All rights reserved.