Package com.graphhopper.routing
Class AStarBidirectionCH
java.lang.Object
com.graphhopper.routing.AbstractBidirAlgo
com.graphhopper.routing.AbstractBidirCHAlgo
com.graphhopper.routing.AStarBidirectionCH
- All Implemented Interfaces:
EdgeToEdgeRoutingAlgorithm
,RoutingAlgorithm
- See Also:
-
Field Summary
Fields inherited from class com.graphhopper.routing.AbstractBidirCHAlgo
graph, inEdgeExplorer, levelEdgeFilter, nodeAccess, outEdgeExplorer
Fields inherited from class com.graphhopper.routing.AbstractBidirAlgo
bestBwdEntry, bestFwdEntry, bestWeight, bestWeightMapFrom, bestWeightMapOther, bestWeightMapTo, currFrom, currTo, finishedFrom, finishedTo, from, fromOutEdge, maxVisitedNodes, timeoutMillis, to, toInEdge, traversalMode, updateBestPath
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
calcWeight
(RoutingCHEdgeIteratorState iter, SPTEntry currEdge, boolean reverse) protected SPTEntry
createEntry
(int edge, int adjNode, int incEdge, double weight, SPTEntry parent, boolean reverse) Creates a new entry of the shortest path tree (aSPTEntry
or one of its subclasses) during a dijkstra expansion.protected SPTEntry
createStartEntry
(int node, double weight, boolean reverse) Creates the root shortest path tree entry for the forward or backward search.getName()
setApproximation
(WeightApproximator approx) protected void
updateEntry
(SPTEntry entry, int edge, int adjNode, int incEdge, double weight, SPTEntry parent, boolean reverse) Methods inherited from class com.graphhopper.routing.AbstractBidirCHAlgo
accept, calcWeight, createEmptyPath, extractPath, fillEdgesFromUsingFilter, fillEdgesToUsingFilter, finished, getInEdgeWeight, initCollections, postInitFrom, postInitTo, setPathExtractorSupplier, toString
Methods inherited from class com.graphhopper.routing.AbstractBidirAlgo
bwdSearchCanBeStopped, calcPath, calcPath, calcPaths, checkAlreadyRun, fromEntryCanBeSkipped, fwdSearchCanBeStopped, getCurrentFromWeight, getCurrentToWeight, getIncomingEdge, getVisitedNodes, initFrom, initTo, isMaxVisitedNodesExceeded, isTimeoutExceeded, postInit, runAlgo, setMaxVisitedNodes, setTimeoutMillis, setUpdateBestPath, setupFinishTime, toEntryCanBeSkipped, updateBestPath
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.graphhopper.routing.EdgeToEdgeRoutingAlgorithm
calcPath
Methods inherited from interface com.graphhopper.routing.RoutingAlgorithm
calcPath, calcPaths, getVisitedNodes, setMaxVisitedNodes, setTimeoutMillis
-
Constructor Details
-
AStarBidirectionCH
-
-
Method Details
-
createStartEntry
Description copied from class:AbstractBidirAlgo
Creates the root shortest path tree entry for the forward or backward search.- Specified by:
createStartEntry
in classAbstractBidirAlgo
-
createEntry
protected SPTEntry createEntry(int edge, int adjNode, int incEdge, double weight, SPTEntry parent, boolean reverse) Description copied from class:AbstractBidirCHAlgo
Creates a new entry of the shortest path tree (aSPTEntry
or one of its subclasses) during a dijkstra expansion.- Specified by:
createEntry
in classAbstractBidirCHAlgo
- Parameters:
edge
- the id of the edge that is currently processed for the expansionadjNode
- the adjacent node of the edgeincEdge
- the id of the edge that is incoming to the node the edge is pointed at. usually this is the same as edge, but for edge-based CH and in case edge corresponds to a shortcut incEdge is the original edge that is incoming to the nodeweight
- the weight the shortest path three entry should carryparent
- the parent entry of in the shortest path treereverse
- true if we are currently looking at the backward search, false otherwise
-
updateEntry
protected void updateEntry(SPTEntry entry, int edge, int adjNode, int incEdge, double weight, SPTEntry parent, boolean reverse) - Overrides:
updateEntry
in classAbstractBidirCHAlgo
-
calcWeight
- Overrides:
calcWeight
in classAbstractBidirCHAlgo
-
getApproximation
-
setApproximation
- Parameters:
approx
- if true it enables approximate distance calculation from lat,lon values
-
getName
- Specified by:
getName
in interfaceRoutingAlgorithm
- Overrides:
getName
in classAbstractBidirAlgo
- Returns:
- name of this algorithm
-