| Constructor and Description |
|---|
ANode(int x,
int y,
double cost,
NodeMap mapParent)
Initializes a new instance of the ANode class.
|
| Modifier and Type | Method and Description |
|---|---|
ANode |
clone(NodeMap parent)
Clone this ANode.
|
int |
compareTo(ANode o) |
double |
ComputeHeuristic(ANode Target)
Compute heuristic in the specified ANode.
|
double |
ComputeHeuristic(int x,
int y)
Compute heuristic in the specified ANode.
|
double |
getCost()
Get cost.
|
double |
getF()
Get F value.
|
double |
getG()
Get G value.
|
double |
getH()
Get H value.
|
NodeMap |
getMapParent()
Get Node map.
|
ANode |
getParent()
Get parent.
|
ANode[] |
getSurroundingNodes()
Get Surrouding nodes.
|
int |
getX()
Get X axis coordinate.
|
int |
getY()
Set Y axis coordinate.
|
boolean |
isOnClosedList()
Check if is on closed list.
|
boolean |
isOnOpenList()
Check if is on open list.
|
void |
setCost(double cost)
Set cost.
|
void |
setG(double g)
Set G value.
|
void |
setH(double h)
Set H value.
|
void |
setMapParent(NodeMap nodeMap)
Set Node map.
|
void |
setOnClosedList(boolean onClosedList)
Set if this node is on closed list.
|
void |
setOnOpenList(boolean onOpenList)
Set if this node is on open list.
|
void |
setParent(ANode node)
Set parent.
|
void |
setX(int x)
Set X axis coordinate.
|
void |
setY(int y)
Set Y axis coordinate.
|
public ANode(int x,
int y,
double cost,
NodeMap mapParent)
x - X axis coordinate.y - Y axis coordinate.cost - Cost.mapParent - NodeMap.public int getX()
public void setX(int x)
x - X axis coordinate.public int getY()
public void setY(int y)
y - Y axis coordinate.public double getCost()
public void setCost(double cost)
cost - Cost.public double getH()
public void setH(double h)
h - H value.public double getG()
public void setG(double g)
g - G value.public double getF()
public boolean isOnOpenList()
public void setOnOpenList(boolean onOpenList)
onOpenList - True if this node is on open list.public boolean isOnClosedList()
public void setOnClosedList(boolean onClosedList)
onClosedList - True if this node is on closed list.public ANode getParent()
public void setParent(ANode node)
node - Parent.public NodeMap getMapParent()
public void setMapParent(NodeMap nodeMap)
nodeMap - Node map.public ANode[] getSurroundingNodes()
public double ComputeHeuristic(ANode Target)
Target - ANode.public double ComputeHeuristic(int x,
int y)
x - X axis coordinate.y - Y axis coordinate.public ANode clone(NodeMap parent)
parent - Parent.