public class Node
extends java.lang.Object
implements java.lang.Comparable<java.lang.Object>
Constructor and Description |
---|
Node(int x,
int y) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object other) |
float |
getCost() |
int |
getDepth() |
float |
getHeuristic() |
Node |
getParent() |
int |
getX() |
int |
getY() |
void |
setCost(float cost) |
void |
setDepth(int depth) |
void |
setHeuristic(float heuristic) |
int |
setParent(Node parent) |
void |
setX(int x) |
void |
setY(int y) |
public int setParent(Node parent)
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable<java.lang.Object>
public int getX()
public void setX(int x)
public int getY()
public void setY(int y)
public float getCost()
public void setCost(float cost)
public Node getParent()
public float getHeuristic()
public void setHeuristic(float heuristic)
public int getDepth()
public void setDepth(int depth)