Class LinkSegmentFactoryImpl

    • Constructor Detail

      • LinkSegmentFactoryImpl

        protected LinkSegmentFactoryImpl​(IdGroupingToken groupId,
                                         LinkSegments linkSegments)
        Constructor
        Parameters:
        groupId - to use
        linkSegments - to use
    • Method Detail

      • registerNew

        public LinkSegment registerNew​(Link parentLink,
                                       boolean directionAb,
                                       boolean registerOnNodeAndLink)
                                throws PlanItException
        Create link segment and register it
        Specified by:
        registerNew in interface LinkSegmentFactory
        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