public class RoutingCHGraphImpl extends Object implements RoutingCHGraph
Constructor and Description |
---|
RoutingCHGraphImpl(CHGraph chGraph) |
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 edgeFrom,
int nodeVia,
int edgeTo) |
Weighting |
getWeighting() |
boolean |
hasTurnCosts() |
boolean |
isAdjacentToNode(int chEdge,
int node) |
boolean |
isEdgeBased() |
public RoutingCHGraphImpl(CHGraph chGraph)
public int getNodes()
getNodes
in interface RoutingCHGraph
public int getEdges()
getEdges
in interface RoutingCHGraph
public int getOtherNode(int chEdge, int node)
getOtherNode
in interface RoutingCHGraph
public boolean isAdjacentToNode(int chEdge, int node)
isAdjacentToNode
in interface RoutingCHGraph
public RoutingCHEdgeExplorer createInEdgeExplorer()
createInEdgeExplorer
in interface RoutingCHGraph
public RoutingCHEdgeExplorer createOutEdgeExplorer()
createOutEdgeExplorer
in interface RoutingCHGraph
public RoutingCHEdgeIteratorState getEdgeIteratorState(int chEdge, int adjNode)
getEdgeIteratorState
in interface RoutingCHGraph
public int getLevel(int node)
getLevel
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 Weighting getWeighting()
getWeighting
in interface RoutingCHGraph
public boolean hasTurnCosts()
hasTurnCosts
in interface RoutingCHGraph
public boolean isEdgeBased()
isEdgeBased
in interface RoutingCHGraph
public double getTurnWeight(int edgeFrom, int nodeVia, int edgeTo)
getTurnWeight
in interface RoutingCHGraph
Copyright © 2012–2020. All rights reserved.