public class RoutingCHGraphImpl extends Object implements RoutingCHGraph
| Constructor and Description |
|---|
RoutingCHGraphImpl(BaseGraph baseGraph,
CHStorage chStorage,
Weighting weighting) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RoutingCHEdgeExplorer |
createInEdgeExplorer()
Traverses the base edges and shortcuts at a given node.
|
RoutingCHEdgeExplorer |
createOutEdgeExplorer() |
static RoutingCHGraph |
fromGraph(BaseGraph baseGraph,
CHStorage chStorage,
CHConfig chConfig) |
Graph |
getBaseGraph() |
RoutingCHEdgeIteratorState |
getEdgeIteratorState(int chEdge,
int adjNode) |
int |
getEdges() |
int |
getLevel(int node) |
int |
getNodes() |
int |
getShortcuts() |
double |
getTurnWeight(int edgeFrom,
int nodeVia,
int edgeTo) |
Weighting |
getWeighting() |
boolean |
hasTurnCosts() |
boolean |
isEdgeBased() |
public static RoutingCHGraph fromGraph(BaseGraph baseGraph, CHStorage chStorage, CHConfig chConfig)
public int getNodes()
getNodes in interface RoutingCHGraphpublic int getEdges()
getEdges in interface RoutingCHGraphpublic int getShortcuts()
getShortcuts in interface RoutingCHGraphpublic RoutingCHEdgeExplorer createInEdgeExplorer()
RoutingCHGraphcreateInEdgeExplorer in interface RoutingCHGraphpublic RoutingCHEdgeExplorer createOutEdgeExplorer()
createOutEdgeExplorer in interface RoutingCHGraphbut here the shortcuts/edges are going out of the given node.public RoutingCHEdgeIteratorState getEdgeIteratorState(int chEdge, int adjNode)
getEdgeIteratorState in interface RoutingCHGraphpublic int getLevel(int node)
getLevel in interface RoutingCHGraphpublic Graph getBaseGraph()
getBaseGraph in interface RoutingCHGraphGraph or a QueryGraph on top of the
base graph
todo: maybe it would be better to remove this method and use a direct reference to the base graph when it is
neededpublic Weighting getWeighting()
getWeighting in interface RoutingCHGraphpublic boolean hasTurnCosts()
hasTurnCosts in interface RoutingCHGraphpublic boolean isEdgeBased()
isEdgeBased in interface RoutingCHGraphpublic double getTurnWeight(int edgeFrom,
int nodeVia,
int edgeTo)
getTurnWeight in interface RoutingCHGraphpublic void close()
close in interface RoutingCHGraphCopyright © 2012–2022. All rights reserved.