Class PathNode
java.lang.Object
com.zenith.feature.pathfinder.calc.PathNode
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleTotal cost of getting from start to here Mutable and changed by PathFinderfinal doubleCached, should always be equal to goal.heuristic(pos)intWhere is this node in the array flattenization of the binary heap? Needed for decrease-key operations.In the graph search, what previous node contributed to the cost Mutable and changed by PathFinderfinal intThe position of this nodefinal intfinal int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
public final int xThe position of this node -
y
public final int y -
z
public final int z -
estimatedCostToGoal
public final double estimatedCostToGoalCached, should always be equal to goal.heuristic(pos) -
cost
public double costTotal cost of getting from start to here Mutable and changed by PathFinder -
previous
In the graph search, what previous node contributed to the cost Mutable and changed by PathFinder -
heapPosition
public int heapPositionWhere is this node in the array flattenization of the binary heap? Needed for decrease-key operations.
-
-
Constructor Details
-
PathNode
-
-
Method Details
-
combinedCost
public double combinedCost()Should always be equal to estimatedCosttoGoal + cost Mutable and changed by PathFinder -
isOpen
public boolean isOpen() -
hashCode
-
equals
-