Package com.graphhopper.routing
Class DijkstraBidirectionRef
java.lang.Object
com.graphhopper.routing.AbstractBidirAlgo
com.graphhopper.routing.AbstractNonCHBidirAlgo
com.graphhopper.routing.DijkstraBidirectionRef
- All Implemented Interfaces:
EdgeToEdgeRoutingAlgorithm
,RoutingAlgorithm
Calculates best path in bidirectional way.
'Ref' stands for reference implementation and is using the normal Java-'reference'-way.
- Author:
- Peter Karich
-
Field Summary
Fields inherited from class com.graphhopper.routing.AbstractNonCHBidirAlgo
additionalEdgeFilter, edgeExplorer, graph, nodeAccess, weighting
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
ConstructorsConstructorDescriptionDijkstraBidirectionRef
(Graph graph, Weighting weighting, TraversalMode tMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected SPTEntry
createEntry
(EdgeIteratorState edge, 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()
protected SPTEntry
Methods inherited from class com.graphhopper.routing.AbstractNonCHBidirAlgo
accept, calcWeight, createEmptyPath, createPathExtractor, extractPath, fillEdgesFromUsingFilter, fillEdgesToUsingFilter, getInEdgeWeight, postInitFrom, postInitTo, toString
Methods inherited from class com.graphhopper.routing.AbstractBidirAlgo
bwdSearchCanBeStopped, calcPath, calcPath, calcPaths, checkAlreadyRun, finished, fromEntryCanBeSkipped, fwdSearchCanBeStopped, getCurrentFromWeight, getCurrentToWeight, getIncomingEdge, getVisitedNodes, initCollections, 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
-
DijkstraBidirectionRef
-
-
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(EdgeIteratorState edge, double weight, SPTEntry parent, boolean reverse) Description copied from class:AbstractNonCHBidirAlgo
Creates a new entry of the shortest path tree (aSPTEntry
or one of its subclasses) during a dijkstra expansion.- Specified by:
createEntry
in classAbstractNonCHBidirAlgo
- Parameters:
edge
- the edge that is currently processed for the expansionweight
- 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
-
getParent
-
getName
- Specified by:
getName
in interfaceRoutingAlgorithm
- Overrides:
getName
in classAbstractBidirAlgo
- Returns:
- name of this algorithm
-