Package com.graphhopper.routing
Class DefaultBidirPathExtractor
java.lang.Object
com.graphhopper.routing.DefaultBidirPathExtractor
- All Implemented Interfaces:
BidirPathExtractor
- Direct Known Subclasses:
EdgeBasedCHBidirPathExtractor
,NodeBasedCHBidirPathExtractor
Builds a
Path
from the two fwd- and bwd-shortest path tree entries of a bidirectional search- Author:
- Peter Karich, easbar
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DefaultBidirPathExtractor
(Graph graph, Weighting weighting) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
extractBwdPath
(SPTEntry sptEntry) protected void
extractFwdPath
(SPTEntry sptEntry) static Path
extractPath
(Graph graph, Weighting weighting, SPTEntry fwdEntry, SPTEntry bwdEntry, double weight) protected SPTEntry
followParentsUntilRoot
(SPTEntry sptEntry, boolean reverse) protected int
getIncEdge
(SPTEntry entry) protected void
onBwdTreeRoot
(int node) protected void
onEdge
(int edge, int adjNode, boolean reverse, int prevOrNextEdge) protected void
onFwdTreeRoot
(int node) protected void
onMeetingPoint
(int inEdge, int viaNode, int outEdge) protected void
processMeetingPoint
(SPTEntry fwdEntry, SPTEntry bwdEntry) protected void
setExtractionTime
(long nanos)
-
Field Details
-
path
-
-
Constructor Details
-
DefaultBidirPathExtractor
-
-
Method Details
-
extractPath
-
extract
- Specified by:
extract
in interfaceBidirPathExtractor
-
extractFwdPath
-
extractBwdPath
-
processMeetingPoint
-
followParentsUntilRoot
-
setExtractionTime
protected void setExtractionTime(long nanos) -
getIncEdge
-
onFwdTreeRoot
protected void onFwdTreeRoot(int node) -
onBwdTreeRoot
protected void onBwdTreeRoot(int node) -
onEdge
protected void onEdge(int edge, int adjNode, boolean reverse, int prevOrNextEdge) -
onMeetingPoint
protected void onMeetingPoint(int inEdge, int viaNode, int outEdge)
-