Interface LinkSegmentFactory

    • Method Detail

      • create

        LinkSegment create​(Link parentLink,
                           boolean directionAB)
                    throws PlanItException
        Create link segment
        Parameters:
        parentLink - the parent of this segment
        directionAB - direction of travel
        Returns:
        the created segment
        Throws:
        PlanItException - thrown if error
      • registerNew

        LinkSegment registerNew​(Link parentLink,
                                boolean directionAb,
                                boolean registerOnNodeAndLink)
                         throws PlanItException
        Create link segment and register it
        Parameters:
        parentLink - the parent of this segment
        directionAb - direction of travel
        registerOnNodeAndLink - option to register the new segment on the underlying link and its nodes
        Returns:
        the created segment
        Throws:
        PlanItException - thrown if error