public class PathSearchNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected PathArc |
arc |
protected static int |
closeEnough |
protected int |
costSoFar |
protected int |
costToGoal |
protected AOVector |
loc |
protected static Logger |
log |
protected static boolean |
logAll |
protected int |
polyIndex |
protected PathSearchNode |
predecessor |
Constructor and Description |
---|
PathSearchNode(AOVector loc,
PathSearchNode predecessor) |
PathSearchNode(int polyIndex,
AOVector loc) |
PathSearchNode(PathArc arc,
int polyIndex,
PathSearchNode predecessor) |
Modifier and Type | Method and Description |
---|---|
boolean |
atGoal(PathSearchNode goal) |
int |
distanceEstimate(PathSearchNode goal) |
boolean |
equals(java.lang.Object obj) |
PathArc |
getArc() |
protected int |
getCostBetween(PathSearchNode successor) |
int |
getCostSoFar() |
int |
getCostToEnd() |
int |
getCostToGoal() |
AOVector |
getLoc() |
int |
getPolyIndex() |
PathSearchNode |
getPredecessor() |
protected java.util.List<PathSearchNode> |
getSuccessors(PathAStarSearcher searcher) |
protected boolean |
isSameState(PathSearchNode node) |
void |
setArc(PathArc arc) |
void |
setCostSoFar(int cost) |
void |
setCostToGoal(int cost) |
void |
setLoc(AOVector value) |
void |
setPredecessor(PathSearchNode node) |
java.lang.String |
shortString() |
java.lang.String |
toString() |
protected static int closeEnough
protected PathArc arc
protected int polyIndex
protected PathSearchNode predecessor
protected AOVector loc
protected int costSoFar
protected int costToGoal
protected static final Logger log
protected static boolean logAll
public PathSearchNode(int polyIndex, AOVector loc)
public PathSearchNode(AOVector loc, PathSearchNode predecessor)
public PathSearchNode(PathArc arc, int polyIndex, PathSearchNode predecessor)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public AOVector getLoc()
public void setLoc(AOVector value)
public int getPolyIndex()
public int distanceEstimate(PathSearchNode goal)
public boolean atGoal(PathSearchNode goal)
protected java.util.List<PathSearchNode> getSuccessors(PathAStarSearcher searcher)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String shortString()
protected boolean isSameState(PathSearchNode node)
protected int getCostBetween(PathSearchNode successor)
public PathArc getArc()
public void setArc(PathArc arc)
public void setPredecessor(PathSearchNode node)
public PathSearchNode getPredecessor()
public void setCostSoFar(int cost)
public int getCostSoFar()
public void setCostToGoal(int cost)
public int getCostToGoal()
public int getCostToEnd()