Package com.graphhopper.routing
Class AStarBidirectionEdgeCHNoSOD
java.lang.Object
com.graphhopper.routing.AbstractBidirAlgo
com.graphhopper.routing.AbstractBidirCHAlgo
com.graphhopper.routing.AbstractBidirectionEdgeCHNoSOD
com.graphhopper.routing.AStarBidirectionEdgeCHNoSOD
- All Implemented Interfaces:
EdgeToEdgeRoutingAlgorithm,RoutingAlgorithm
- Author:
- easbar
-
Field Summary
Fields inherited from class com.graphhopper.routing.AbstractBidirCHAlgo
graph, inEdgeExplorer, levelEdgeFilter, nodeAccess, outEdgeExplorerFields 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 booleanprotected SPTEntrycreateEntry(int edge, int adjNode, int incEdge, double weight, SPTEntry parent, boolean reverse) Creates a new entry of the shortest path tree (aSPTEntryor one of its subclasses) during a dijkstra expansion.protected AStarCHEntrycreateStartEntry(int node, double weight, boolean reverse) Creates the root shortest path tree entry for the forward or backward search.protected booleanprotected booleangetName()voidinit(int from, double fromWeight, int to, double toWeight) setApproximation(WeightApproximator weightApproximator) protected booleanprotected voidupdateEntry(SPTEntry entry, int edge, int adjNode, int incEdge, double weight, SPTEntry parent, boolean reverse) Methods inherited from class com.graphhopper.routing.AbstractBidirectionEdgeCHNoSOD
accept, getIncomingEdge, postInitFrom, postInitTo, updateBestPathMethods inherited from class com.graphhopper.routing.AbstractBidirCHAlgo
calcWeight, calcWeight, createEmptyPath, extractPath, fillEdgesFromUsingFilter, fillEdgesToUsingFilter, finished, getInEdgeWeight, initCollections, setPathExtractorSupplier, toStringMethods inherited from class com.graphhopper.routing.AbstractBidirAlgo
calcPath, calcPath, calcPaths, checkAlreadyRun, getCurrentFromWeight, getCurrentToWeight, getVisitedNodes, initFrom, initTo, isMaxVisitedNodesExceeded, isTimeoutExceeded, postInit, runAlgo, setMaxVisitedNodes, setTimeoutMillis, setUpdateBestPath, setupFinishTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.graphhopper.routing.EdgeToEdgeRoutingAlgorithm
calcPathMethods inherited from interface com.graphhopper.routing.RoutingAlgorithm
calcPath, calcPaths, getVisitedNodes, setMaxVisitedNodes, setTimeoutMillis
-
Constructor Details
-
AStarBidirectionEdgeCHNoSOD
-
-
Method Details
-
init
public void init(int from, double fromWeight, int to, double toWeight) -
fromEntryCanBeSkipped
protected boolean fromEntryCanBeSkipped()- Overrides:
fromEntryCanBeSkippedin classAbstractBidirAlgo
-
toEntryCanBeSkipped
protected boolean toEntryCanBeSkipped()- Overrides:
toEntryCanBeSkippedin classAbstractBidirAlgo
-
fwdSearchCanBeStopped
protected boolean fwdSearchCanBeStopped()- Overrides:
fwdSearchCanBeStoppedin classAbstractBidirAlgo
-
bwdSearchCanBeStopped
protected boolean bwdSearchCanBeStopped()- Overrides:
bwdSearchCanBeStoppedin classAbstractBidirAlgo
-
createStartEntry
Description copied from class:AbstractBidirAlgoCreates the root shortest path tree entry for the forward or backward search.- Specified by:
createStartEntryin classAbstractBidirAlgo
-
createEntry
protected SPTEntry createEntry(int edge, int adjNode, int incEdge, double weight, SPTEntry parent, boolean reverse) Description copied from class:AbstractBidirCHAlgoCreates a new entry of the shortest path tree (aSPTEntryor one of its subclasses) during a dijkstra expansion.- Specified by:
createEntryin 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:
updateEntryin classAbstractBidirCHAlgo
-
getApproximation
-
setApproximation
-
getName
- Specified by:
getNamein interfaceRoutingAlgorithm- Overrides:
getNamein classAbstractBidirAlgo- Returns:
- name of this algorithm
-