Class ServiceLegSegmentFactoryImpl

    • Constructor Detail

      • ServiceLegSegmentFactoryImpl

        public ServiceLegSegmentFactoryImpl​(IdGroupingToken groupIdToken,
                                            GraphEntities<ServiceLegSegment> serviceLegSegments)
        Constructor
        Parameters:
        groupIdToken - to use for creating element ids
        serviceLegSegments - to register the created instances on
    • Method Detail

      • registerNew

        public ServiceLegSegmentImpl registerNew​(ServiceLeg parentLeg,
                                                 boolean directionAb,
                                                 boolean registerOnServiceNodeAndLeg)
        create a new service leg segment and register it on the underlying container and allow the user to let the factory register the newly create segment on both the parent leg and service nodes in the correct direction if desired
        Specified by:
        registerNew in interface ServiceLegSegmentFactory
        Parameters:
        parentLeg - of the segment
        directionAb - direction of the segment
        registerOnServiceNodeAndLeg - flag indicating whether or not to regsiter the created leg segment on node and leg
        Returns:
        created segment
      • registerNew

        public ServiceLegSegmentImpl registerNew​(ServiceLeg parentLeg,
                                                 boolean directionAb,
                                                 List<LinkSegment> networkLayerLinkSegments,
                                                 boolean registerOnServiceNodeAndLeg)
        create a new service leg segment and register it on the underlying container and allow the user to let the factory register the newly create segment on both the parent leg and service nodes in the correct direction if desired
        Specified by:
        registerNew in interface ServiceLegSegmentFactory
        Parameters:
        parentLeg - of the segment
        directionAb - direction of the segment
        networkLayerLinkSegments - the underlying parent link segments that make up this leg
        registerOnServiceNodeAndLeg - flag indicating whether to register the created leg segment on node and leg
        Returns:
        created segment