Interface EdgeSegment

    • Method Detail

      • getId

        long getId()
        Return id of this instance. This id is expected to be generated using the org.planit.utils.misc.IdGenerator
        Returns:
        id the id
      • setExternalId

        void setExternalId​(Object externalId)
        set external id of the instance. Note that this id need not be unique (unlike regular id)
        Parameters:
        externalId - the external id to set
      • hasExternalId

        boolean hasExternalId()
        Does the instance have an external id
        Returns:
        true when available, false otherwise
      • getExternalId

        Object getExternalId()
        Get external id of the instance. Note that this id need not be unique (unlike regular id)
        Returns:
        externalId
      • getUpstreamVertex

        Vertex getUpstreamVertex()
        Get the segment's upstream vertex
        Returns:
        upstream vertex
      • getDownstreamVertex

        Vertex getDownstreamVertex()
        Get the segment's downstream vertex
        Returns:
        downstream vertex
      • getParentEdge

        Edge getParentEdge()
        Collect the parent edge of the segment
        Returns:
        parentEdge