public class DijkstraBidirectionRef extends AbstractBidirAlgo
'Ref' stands for reference implementation and is using the normal Java-'reference'-way.
Modifier and Type | Field and Description |
---|---|
protected PathBidirRef |
bestPath |
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> |
bestWeightMapFrom |
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> |
bestWeightMapOther |
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> |
bestWeightMapTo |
protected SPTEntry |
currFrom |
protected SPTEntry |
currTo |
finishedFrom, finishedTo
flagEncoder, graph, inEdgeExplorer, maxVisitedNodes, nodeAccess, outEdgeExplorer, traversalMode, weighting
Constructor and Description |
---|
DijkstraBidirectionRef(Graph graph,
Weighting weighting,
TraversalMode tMode) |
Modifier and Type | Method and Description |
---|---|
protected Path |
createAndInitPath() |
protected Path |
extractPath()
To be overwritten from extending class.
|
boolean |
fillEdgesFrom() |
boolean |
fillEdgesTo() |
boolean |
finished()
To be overwritten from extending class.
|
protected double |
getCurrentFromWeight() |
protected double |
getCurrentToWeight() |
String |
getName() |
protected void |
initCollections(int size) |
void |
initFrom(int from,
double weight) |
void |
initTo(int to,
double weight) |
protected void |
setUpdateBestPath(boolean b) |
protected void |
updateBestPath(EdgeIteratorState edgeState,
SPTEntry entryCurrent,
int traversalId) |
calcPath, getVisitedNodes, runAlgo
accept, calcPaths, checkAlreadyRun, createEmptyPath, createSPTEntry, isMaxVisitedNodesExceeded, setEdgeFilter, setMaxVisitedNodes, toString
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> bestWeightMapFrom
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> bestWeightMapTo
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> bestWeightMapOther
protected SPTEntry currFrom
protected SPTEntry currTo
protected PathBidirRef bestPath
public DijkstraBidirectionRef(Graph graph, Weighting weighting, TraversalMode tMode)
protected void initCollections(int size)
public void initFrom(int from, double weight)
public void initTo(int to, double weight)
protected Path createAndInitPath()
createAndInitPath
in class AbstractBidirAlgo
protected Path extractPath()
AbstractRoutingAlgorithm
extractPath
in class AbstractRoutingAlgorithm
protected double getCurrentFromWeight()
getCurrentFromWeight
in class AbstractBidirAlgo
protected double getCurrentToWeight()
getCurrentToWeight
in class AbstractBidirAlgo
public boolean fillEdgesFrom()
public boolean fillEdgesTo()
public boolean finished()
AbstractRoutingAlgorithm
finished
in class AbstractRoutingAlgorithm
protected void updateBestPath(EdgeIteratorState edgeState, SPTEntry entryCurrent, int traversalId)
updateBestPath
in class AbstractRoutingAlgorithm
protected void setUpdateBestPath(boolean b)
public String getName()
getName
in interface RoutingAlgorithm
getName
in class AbstractRoutingAlgorithm
Copyright © 2012–2017. All rights reserved.