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 |
---|---|
void |
close() |
RoutingCHEdgeExplorer |
createInEdgeExplorer()
Traverses the base edges and shortcuts at a given node.
|
RoutingCHEdgeExplorer |
createOutEdgeExplorer() |
Graph |
getBaseGraph() |
RoutingCHEdgeIteratorState |
getEdgeIteratorState(int chEdge,
int adjNode) |
int |
getEdges() |
int |
getLevel(int node) |
int |
getNodes() |
int |
getShortcuts() |
double |
getTurnWeight(int inEdge,
int viaNode,
int outEdge) |
Weighting |
getWeighting() |
boolean |
hasTurnCosts() |
boolean |
isEdgeBased() |
public QueryRoutingCHGraph(RoutingCHGraph routingCHGraph, QueryGraph queryGraph)
public int getNodes()
getNodes
in interface RoutingCHGraph
public int getEdges()
getEdges
in interface RoutingCHGraph
public int getShortcuts()
getShortcuts
in interface RoutingCHGraph
public RoutingCHEdgeExplorer createInEdgeExplorer()
RoutingCHGraph
createInEdgeExplorer
in interface RoutingCHGraph
public RoutingCHEdgeExplorer createOutEdgeExplorer()
createOutEdgeExplorer
in interface RoutingCHGraph
but here the shortcuts/edges are going out of the given node.
public RoutingCHEdgeIteratorState getEdgeIteratorState(int chEdge, int adjNode)
getEdgeIteratorState
in interface RoutingCHGraph
public int getLevel(int node)
getLevel
in interface RoutingCHGraph
public double getTurnWeight(int inEdge, int viaNode, int outEdge)
getTurnWeight
in interface RoutingCHGraph
public Graph getBaseGraph()
getBaseGraph
in interface RoutingCHGraph
Graph
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 RoutingCHGraph
public boolean isEdgeBased()
isEdgeBased
in interface RoutingCHGraph
public Weighting getWeighting()
getWeighting
in interface RoutingCHGraph
public void close()
close
in interface RoutingCHGraph
Copyright © 2012–2022. All rights reserved.