Interface DirectedConnectoidFactory

    • Method Detail

      • registerNew

        DirectedConnectoid registerNew​(boolean downstreamAccessNode,
                                       LinkSegment accessLinkSegment)
        Create a new directed connectoid, without zone attached and using default length
        Parameters:
        downstreamAccessNode - when true access node is chosen as the downstream node of the segment, when false, upstream node is chosen
        accessLinkSegment - to use
        Returns:
        created directed connectoid
      • registerNew

        DirectedConnectoid registerNew​(boolean downstreamAccessNode,
                                       LinkSegment accessLinkSegment,
                                       Zone parentZone,
                                       double length)
        Create a new directed connectoid
        Parameters:
        downstreamAccessNode - when true access node is chosen as the downstream node of the segment, when false, upstream node is chosen
        accessLinkSegment - to use
        parentZone - to use
        length - to use for distance between zone and connectoid
        Returns:
        created directed connectoid
      • registerNew

        default DirectedConnectoid registerNew​(boolean downstreamAccessNode,
                                               LinkSegment accessLinkSegment,
                                               Zone parentZone)
        Create a new directed connectoid, with default length 0
        Parameters:
        downstreamAccessNode - when true access node is chosen as the downstream node of the segment, when false, upstream node is chosen
        accessLinkSegment - to use
        parentZone - to use
        Returns:
        created directed connectoid
      • registerNew

        default DirectedConnectoid registerNew​(LinkSegment accessLinkSegment,
                                               Zone parentZone,
                                               boolean syncXmlIdToId,
                                               Collection<Mode> allowedModes)
        Create a new directed connectoid, with default length 0, and choose downstream access node based on the link segment provided
        Parameters:
        accessLinkSegment - to use
        parentZone - to use
        syncXmlIdToId - flag indicating if we should sync the XML ids to internal ids
        allowedModes - to apply
        Returns:
        created directed connectoid
      • registerNew

        default DirectedConnectoid registerNew​(boolean downstreamAccessNode,
                                               LinkSegment accessLinkSegment,
                                               Zone parentZone,
                                               boolean syncXmlIdToId,
                                               Collection<Mode> allowedModes)
        Create a new directed connectoid, with default length 0
        Parameters:
        downstreamAccessNode - when true access node is chosen as the downstream node of the segment, when false, upstream node is chosen
        accessLinkSegment - to use
        parentZone - to use
        syncXmlIdToId - flag indicating if we should sync the XML ids to internal ids
        allowedModes - to apply
        Returns:
        created directed connectoid