|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.AStarPathfinder.AStarNode
public static class AStarPathfinder.AStarNode
The pathfinder node.
| Field Summary | |
|---|---|
double |
f
The f-value. |
double |
g
The g-value. |
double |
h
The h-value. |
int |
nodeNumber
The node identifier. |
int |
numChildren
The number of children the node has. |
protected AStarPathfinder.AStarNode |
parent
The parent of the node. |
protected int |
x
The x-position of the node. |
protected int |
y
The y-position of the node. |
| Constructor Summary | |
|---|---|
AStarPathfinder.AStarNode()
The default constructor. |
|
AStarPathfinder.AStarNode(int xx,
int yy)
The default constructor with positional information. |
|
| Method Summary | |
|---|---|
void |
addChild(AStarPathfinder.AStarNode node)
Add a child to the node. |
AStarPathfinder.AStarNode |
getParent()
Return the parent node. |
int |
getX()
Return the x-position of the node. |
int |
getY()
Return the y-position of the node. |
void |
reset()
Resets the node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double f
public double g
public double h
protected int x
protected int y
public int numChildren
public int nodeNumber
protected AStarPathfinder.AStarNode parent
| Constructor Detail |
|---|
public AStarPathfinder.AStarNode()
public AStarPathfinder.AStarNode(int xx,
int yy)
xx - the x-position of the node.yy - the y-position of the node.| Method Detail |
|---|
public void reset()
public void addChild(AStarPathfinder.AStarNode node)
node - the child node.public int getX()
getX in interface Pathfinder.Nodepublic int getY()
getY in interface Pathfinder.Nodepublic AStarPathfinder.AStarNode getParent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||