Class VirtualNetwork.ConnectoidEdges

    • Constructor Detail

      • ConnectoidEdges

        public ConnectoidEdges()
    • Method Detail

      • register

        protected ConnectoidEdge register​(ConnectoidEdge connectoidEdge)
        Add connectoid edge to the internal container If new connectoid edge overrides an existing connectoid edge , the removed connectoid edge is returned
        Parameters:
        connectoidEdge - the connectoid edge to be registered
        Returns:
        connectoidEdge added
      • registerNew

        public Collection<ConnectoidEdge> registerNew​(Connectoid connectoid)
                                               throws PlanItException
        Create new connectoid edge to from a specified centroid to a specified node
        Parameters:
        connectoid - extract information from connectoid to create virtual connectoid edge
        Returns:
        newly created connectoid edges (reference nodes not yet aware of connection)
        Throws:
        PlanItException - thrown if there is an error
      • get

        public ConnectoidEdge get​(long id)
        Get connectoid edge by id
        Parameters:
        id - the id of this connectoid edge
        Returns:
        the retrieved connectoid edge
      • size

        public int size()
        Return number of connectoid edges on the network
        Returns:
        the number of connectoid edges