Package com.graphhopper.storage
Interface NodeAccess
- All Superinterfaces:
PointAccess
- All Known Implementing Classes:
ExtendedNodeAccess
This interface specifies how to access properties of the nodes in the graph. Similar to
EdgeExplorer as it needs multiple instances for different threads or loops but without the need
for an additional iterator.
- Author:
- Peter Karich
-
Method Summary
Modifier and TypeMethodDescriptionint
getTurnCostIndex
(int nodeId) void
setTurnCostIndex
(int nodeId, int additionalValue) Sets the turn cost index for this node, usingTurnCostStorage.NO_TURN_ENTRY
means there are no turn costs at this node.Methods inherited from interface com.graphhopper.util.PointAccess
ensureNode, getDimension, getEle, getLat, getLon, is3D, setNode, setNode
-
Method Details
-
getTurnCostIndex
int getTurnCostIndex(int nodeId) - Returns:
- the index used to retrieve turn cost information for this node, can be
TurnCostStorage.NO_TURN_ENTRY
in case no turn costs were stored for this node - Throws:
AssertionError
- if, and only if, the underlying storage does not support turn costs
-
setTurnCostIndex
void setTurnCostIndex(int nodeId, int additionalValue) Sets the turn cost index for this node, usingTurnCostStorage.NO_TURN_ENTRY
means there are no turn costs at this node.- Throws:
AssertionError
- if, and only if, the underlying storage does not support turn costs
-