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
ConstructorsModifierConstructorDescriptionprotectedDefaultBidirPathExtractor(Graph graph, Weighting weighting) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextractBwdPath(SPTEntry sptEntry) protected voidextractFwdPath(SPTEntry sptEntry) static PathextractPath(Graph graph, Weighting weighting, SPTEntry fwdEntry, SPTEntry bwdEntry, double weight) protected SPTEntryfollowParentsUntilRoot(SPTEntry sptEntry, boolean reverse) protected intgetIncEdge(SPTEntry entry) protected voidonBwdTreeRoot(int node) protected voidonEdge(int edge, int adjNode, boolean reverse, int prevOrNextEdge) protected voidonFwdTreeRoot(int node) protected voidonMeetingPoint(int inEdge, int viaNode, int outEdge) protected voidprocessMeetingPoint(SPTEntry fwdEntry, SPTEntry bwdEntry) protected voidsetExtractionTime(long nanos)
-
Field Details
-
path
-
-
Constructor Details
-
DefaultBidirPathExtractor
-
-
Method Details
-
extractPath
-
extract
- Specified by:
extractin 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)
-