Interface LinkFactory<L extends Link>

    • Method Detail

      • registerNew

        Link registerNew​(Node nodeA,
                         Node nodeB,
                         double lengthKm,
                         boolean registerOnNodes)
        Create new link on links container, allow to be registered on nodes if indicated)
        Parameters:
        nodeA - the first node in this link
        nodeB - the second node in this link
        lengthKm - length of the link in km
        registerOnNodes - choice to register new edge on the vertices or not
        Returns:
        the created link