Package com.graphhopper.storage
Class RoutingCHGraphImpl
java.lang.Object
com.graphhopper.storage.RoutingCHGraphImpl
- All Implemented Interfaces:
RoutingCHGraph
-
Constructor Summary
ConstructorsConstructorDescriptionRoutingCHGraphImpl(BaseGraph baseGraph, CHStorage chStorage, Weighting weighting) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Traverses the base edges and shortcuts at a given node.static RoutingCHGraphgetEdgeIteratorState(int chEdge, int adjNode) intgetEdges()intgetLevel(int node) intgetNodes()intdoublegetTurnWeight(int edgeFrom, int nodeVia, int edgeTo) booleanboolean
-
Constructor Details
-
RoutingCHGraphImpl
-
-
Method Details
-
fromGraph
-
getNodes
public int getNodes()- Specified by:
getNodesin interfaceRoutingCHGraph
-
getEdges
public int getEdges()- Specified by:
getEdgesin interfaceRoutingCHGraph
-
getShortcuts
public int getShortcuts()- Specified by:
getShortcutsin interfaceRoutingCHGraph
-
createInEdgeExplorer
Description copied from interface:RoutingCHGraphTraverses the base edges and shortcuts at a given node. This will only include shortcuts coming from higher level nodes, but *all* base edges with finite weight.- Specified by:
createInEdgeExplorerin interfaceRoutingCHGraph
-
createOutEdgeExplorer
- Specified by:
createOutEdgeExplorerin interfaceRoutingCHGraph- See Also:
-
getEdgeIteratorState
- Specified by:
getEdgeIteratorStatein interfaceRoutingCHGraph
-
getLevel
public int getLevel(int node) - Specified by:
getLevelin interfaceRoutingCHGraph
-
getBaseGraph
- Specified by:
getBaseGraphin interfaceRoutingCHGraph- Returns:
- the graph this CH graph is based on, i.e. a the base
Graphor aQueryGraphon 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 needed
-
getWeighting
- Specified by:
getWeightingin interfaceRoutingCHGraph
-
hasTurnCosts
public boolean hasTurnCosts()- Specified by:
hasTurnCostsin interfaceRoutingCHGraph
-
isEdgeBased
public boolean isEdgeBased()- Specified by:
isEdgeBasedin interfaceRoutingCHGraph
-
getTurnWeight
public double getTurnWeight(int edgeFrom, int nodeVia, int edgeTo) - Specified by:
getTurnWeightin interfaceRoutingCHGraph
-
close
public void close()- Specified by:
closein interfaceRoutingCHGraph
-
getCHStorage
-