Package com.graphhopper.routing
Class AStar.AStarEntry
java.lang.Object
com.graphhopper.routing.SPTEntry
com.graphhopper.routing.AStar.AStarEntry
- All Implemented Interfaces:
Comparable<SPTEntry>
- Enclosing class:
AStar
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAStarEntry
(int edgeId, int adjNode, double weightForHeap, double weightOfVisitedPath) AStarEntry
(int edgeId, int adjNode, double weightForHeap, double weightOfVisitedPath, SPTEntry parent) -
Method Summary
Modifier and TypeMethodDescriptionfinal double
This method returns the weight to the origin e.g.Methods inherited from class com.graphhopper.routing.SPTEntry
compareTo, isDeleted, setDeleted, toString
-
Constructor Details
-
AStarEntry
public AStarEntry(int edgeId, int adjNode, double weightForHeap, double weightOfVisitedPath) -
AStarEntry
public AStarEntry(int edgeId, int adjNode, double weightForHeap, double weightOfVisitedPath, SPTEntry parent)
-
-
Method Details
-
getWeightOfVisitedPath
public final double getWeightOfVisitedPath()Description copied from class:SPTEntry
This method returns the weight to the origin e.g. to the start for the forward SPT and to the destination for the backward SPT. Where the variable 'weight' is used to let heap select smallest *full* weight (from start to destination).- Overrides:
getWeightOfVisitedPath
in classSPTEntry
-
getParent
-