Interface Node

  • All Superinterfaces:
    Comparable<Vertex>, Serializable, Vertex
    All Known Implementing Classes:
    NodeImpl

    public interface Node
    extends Vertex
    Node is a vertex but not all vertices are nodes. Nodes represent locations in the physical network where links intersect, usually representing junctions or intersections
    Author:
    markr
    • Method Detail

      • getExternalId

        Object getExternalId()
        Collect the external id of the node
        Returns:
        external id
      • setExternalId

        void setExternalId​(Object externalId)
        Set the external id of the node
        Parameters:
        externalId - the external id to set
      • hasExternalId

        boolean hasExternalId()
        Returns whether the node has an external Id set
        Returns:
        true if the node has an external Id, false otherwise
      • getNodeId

        long getNodeId()
        Collect the id of the node. Not all vertices need to be nodes, this node id is contiguous and unique to the nodes in the network, but not necesssarily across all vertices in the network
        Returns:
        node id