Interface ConjugateDirectedEdge

    • Method Detail

      • registerEdgeSegment

        ConjugateEdgeSegment registerEdgeSegment​(EdgeSegment edgeSegment,
                                                 boolean directionAB,
                                                 boolean force)
        Register EdgeSegment. If there already exists an edgeSegment for that direction it is replaced and returned. If the edge segment has no parent edge, this edge is set. If there is a discrepancy between the edge segment's parent edge and this edge a warning is issued and the edge segment is not registered
        Specified by:
        registerEdgeSegment in interface DirectedEdge
        Parameters:
        edgeSegment - the edgeSegment to be registered
        directionAB - direction of travel
        force - when true the provided edge segment is always set (even if null or inconsistent, without warning)
        Returns:
        replaced egeSegment (if any)
      • removeEdgeSegmentAb

        ConjugateEdgeSegment removeEdgeSegmentAb()
        Remove edge segmentAb from this edge. Be careful doing this as it because it might affect the contiguous ids if the edge segment is garbage collected
        Specified by:
        removeEdgeSegmentAb in interface DirectedEdge
        Returns:
        removed edge segment
      • removeEdgeSegmentBa

        ConjugateEdgeSegment removeEdgeSegmentBa()
        Remove edge segmentAb from this edge. Be careful doing this as it because it might affect the contiguous ids if the edge segment is garbage collected
        Specified by:
        removeEdgeSegmentBa in interface DirectedEdge
        Returns:
        removed edge segment
      • getEdgeSegment

        default ConjugateEdgeSegment getEdgeSegment​(boolean directionAb)
        Edge segment in the direction indicated
        Specified by:
        getEdgeSegment in interface DirectedEdge
        Parameters:
        directionAb - direction of segment
        Returns:
        edge segment if present
      • getOriginalAdjacentEdges

        Pair<? extends DirectedEdge,​? extends DirectedEdge> getOriginalAdjacentEdges()
        Conjugate edge represents two adjacent edges in original form (potential turn movement).
        Returns:
        directed original adjacent edge pair
      • getOriginalAdjacentEdgeSegments

        default Pair<? extends EdgeSegment,​? extends EdgeSegment> getOriginalAdjacentEdgeSegments​(boolean directionAb)
        Collect original pair of edge segments that this conjugate in given direction makes up for
        Parameters:
        directionAb - conjugate direction to use
        Returns:
        pair of original edge segments (can be partially empty/null if combination does not exist)