Interface DirectedGraphBuilder<V extends DirectedVertex,​E extends Edge,​ES extends EdgeSegment>

    • Method Detail

      • createEdgeSegment

        ES createEdgeSegment​(DirectedEdge parentEdge,
                             boolean directionAB)
                      throws PlanItException
        Create a new physical link segment instance
        Parameters:
        parentEdge - the parent edge of the edge segment
        directionAB - direction of travel
        Returns:
        edgeSegment the created edge segment
        Throws:
        PlanItException - thrown if error
      • recreateIds

        void recreateIds​(EdgeSegments<? extends ES> edgeSegments)
        recreate the ids for all passed in edge segments
        Parameters:
        edgeSegments - to recreate ids for
      • createUniqueCopyOf

        ES createUniqueCopyOf​(ES edgeSegmentToCopy,
                              DirectedEdge newParentEdge)
        Create a unique copy of the passed in edge segment. All members are copied as is, except for its ids which are created uniquely created so it remains identifiable, also the parent edge is updated if required
        Parameters:
        edgeSegmentToCopy - edge segment to copy
        newParentEdge - use this as the new parent edge
        Returns:
        created copy