|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.robotics.pathfinding.Node lejos.robotics.pathfinding.GridNode
public class GridNode
Field Summary |
---|
Fields inherited from class lejos.robotics.pathfinding.Node |
---|
x, y |
Constructor Summary | |
---|---|
GridNode(float x,
float y,
float grid_space)
|
Method Summary | |
---|---|
protected float |
calculateG(Node neighbor)
Calculates the distance to a neighbor node. |
protected float |
calculateH(Node neighbor)
Calculates the distance to the goal node. |
Methods inherited from class lejos.robotics.pathfinding.Node |
---|
addNeighbor, getF_Score, getG_Score, getNeighbors, getPredecessor, neighbors, removeNeighbor, setG_Score, setH_Score, setPredecessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridNode(float x, float y, float grid_space)
Method Detail |
---|
protected float calculateG(Node neighbor)
Node
calculateG
in class Node
protected float calculateH(Node neighbor)
Node
calculateH
in class Node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |