Package com.graphhopper.routing.ch
Class AStarCHEntry
java.lang.Object
com.graphhopper.routing.SPTEntry
com.graphhopper.routing.ch.CHEntry
com.graphhopper.routing.ch.AStarCHEntry
- All Implemented Interfaces:
Comparable<SPTEntry>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAStarCHEntry
(int node, double heapWeight, double weightOfVisitedPath) AStarCHEntry
(int edge, int incEdge, int adjNode, double heapWeight, double weightOfVisitedPath, SPTEntry parent) -
Method Summary
Modifier and TypeMethodDescriptiondouble
This method returns the weight to the origin e.g.Methods inherited from class com.graphhopper.routing.SPTEntry
compareTo, isDeleted, setDeleted
-
Field Details
-
weightOfVisitedPath
public double weightOfVisitedPath
-
-
Constructor Details
-
AStarCHEntry
public AStarCHEntry(int node, double heapWeight, double weightOfVisitedPath) -
AStarCHEntry
public AStarCHEntry(int edge, int incEdge, int adjNode, double heapWeight, double weightOfVisitedPath, SPTEntry parent)
-
-
Method Details
-
getParent
-
getWeightOfVisitedPath
public 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
-