public class AStar.Path extends java.lang.Object implements java.lang.Comparable<AStar.Path>
| Modifier and Type | Field and Description |
|---|---|
java.lang.Double |
f |
java.lang.Double |
g |
AStar.Path |
parent |
T |
point |
| Constructor and Description |
|---|
Path()
Default c'tor.
|
Path(AStar.Path p)
C'tor by copy another object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AStar.Path p)
Compare to another object using the total cost f.
|
T |
getPoint()
Get the last point on the path.
|
void |
setPoint(T p)
Set the
|
public T point
public java.lang.Double f
public java.lang.Double g
public AStar.Path parent
public Path()
public Path(AStar.Path p)
p - The path object to clone.public int compareTo(AStar.Path p)
compareTo in interface java.lang.Comparable<AStar.Path>p - The object to compare to.less than 0 This object is smaller than 0; 0 Object are the
same. bigger than 0 This object is bigger than p.Comparable#compareTo()public T getPoint()
public void setPoint(T p)