Class MacroscopicLinkSegmentFactoryImpl

    • Constructor Detail

      • MacroscopicLinkSegmentFactoryImpl

        protected MacroscopicLinkSegmentFactoryImpl​(IdGroupingToken groupId,
                                                    MacroscopicLinkSegments macroscopicLinkSegments)
        Constructor
        Parameters:
        groupId - to use
        macroscopicLinkSegments - to use
    • Method Detail

      • create

        public MacroscopicLinkSegment create​(MacroscopicLink parentLink,
                                             boolean directionAb)
        Create macroscopic link segment, do not register nor register on nodes and link
        Specified by:
        create in interface MacroscopicLinkSegmentFactory
        Parameters:
        parentLink - the parent of this segment
        directionAb - direction of travel
        Returns:
        the created segment
      • registerNew

        public MacroscopicLinkSegment registerNew​(MacroscopicLink parentLink,
                                                  boolean directionAb,
                                                  boolean registerOnLink)
        Create a macroscopic link segment and register it
        Specified by:
        registerNew in interface MacroscopicLinkSegmentFactory
        Parameters:
        parentLink - the parent of this segment
        directionAb - direction of travel
        registerOnLink - option to register the new segment on the underlying link
        Returns:
        the created segment
      • registerNew

        public MacroscopicLinkSegment registerNew​(MacroscopicLink parentLink,
                                                  MacroscopicLinkSegmentType type,
                                                  boolean directionAb,
                                                  boolean registerOnLink)
        Create a macroscopic link segment and register it
        Specified by:
        registerNew in interface MacroscopicLinkSegmentFactory
        Parameters:
        parentLink - the parent of this segment
        type - the type of the link segment
        directionAb - direction of travel
        registerOnLink - option to register the new segment on the underlying link
        Returns:
        the created segment