Interface NodeAccess

All Superinterfaces:
PointAccess
All Known Implementing Classes:
ExtendedNodeAccess

public interface NodeAccess extends PointAccess
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 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, using TurnCostStorage.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