public class QueryRoutingCHGraph extends Object implements RoutingCHGraph
QueryGraph just as if you were not using CH and then
create an instance of the present class on top of this.| Constructor and Description |
|---|
QueryRoutingCHGraph(RoutingCHGraph routingCHGraph,
QueryGraph queryGraph) |
| Modifier and Type | Method and Description |
|---|---|
RoutingCHEdgeExplorer |
createInEdgeExplorer() |
RoutingCHEdgeExplorer |
createOutEdgeExplorer() |
Graph |
getBaseGraph() |
RoutingCHEdgeIteratorState |
getEdgeIteratorState(int chEdge,
int adjNode) |
int |
getEdges() |
int |
getLevel(int node) |
int |
getNodes() |
int |
getOtherNode(int chEdge,
int node) |
double |
getTurnWeight(int inEdge,
int viaNode,
int outEdge) |
Weighting |
getWeighting() |
boolean |
hasTurnCosts() |
boolean |
isAdjacentToNode(int chEdge,
int node) |
boolean |
isEdgeBased() |
public QueryRoutingCHGraph(RoutingCHGraph routingCHGraph, QueryGraph queryGraph)
public int getNodes()
getNodes in interface RoutingCHGraphpublic int getEdges()
getEdges in interface RoutingCHGraphpublic int getOtherNode(int chEdge,
int node)
getOtherNode in interface RoutingCHGraphpublic boolean isAdjacentToNode(int chEdge,
int node)
isAdjacentToNode in interface RoutingCHGraphpublic RoutingCHEdgeExplorer createInEdgeExplorer()
createInEdgeExplorer in interface RoutingCHGraphpublic RoutingCHEdgeExplorer createOutEdgeExplorer()
createOutEdgeExplorer in interface RoutingCHGraphpublic RoutingCHEdgeIteratorState getEdgeIteratorState(int chEdge, int adjNode)
getEdgeIteratorState in interface RoutingCHGraphpublic int getLevel(int node)
getLevel in interface RoutingCHGraphpublic double getTurnWeight(int inEdge,
int viaNode,
int outEdge)
getTurnWeight 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 boolean hasTurnCosts()
hasTurnCosts in interface RoutingCHGraphpublic boolean isEdgeBased()
isEdgeBased in interface RoutingCHGraphpublic Weighting getWeighting()
getWeighting in interface RoutingCHGraphCopyright © 2012–2020. All rights reserved.