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 gnu.trove.map.TIntObjectMap<SPTEntry> |
bestWeightMapFrom |
protected gnu.trove.map.TIntObjectMap<SPTEntry> |
bestWeightMapOther |
protected gnu.trove.map.TIntObjectMap<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 |
updateBestPath(EdgeIteratorState edgeState,
SPTEntry entryCurrent,
int traversalId) |
calcPath, getVisitedNodes, runAlgo
accept, calcPaths, checkAlreadyRun, createEmptyPath, createSPTEntry, isMaxVisitedNodesExceeded, setEdgeFilter, setMaxVisitedNodes, toString
protected gnu.trove.map.TIntObjectMap<SPTEntry> bestWeightMapFrom
protected gnu.trove.map.TIntObjectMap<SPTEntry> bestWeightMapTo
protected gnu.trove.map.TIntObjectMap<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
public String getName()
getName
in interface RoutingAlgorithm
getName
in class AbstractRoutingAlgorithm
Copyright © 2012–2016. All rights reserved.