Class VirtualNetwork.Connectoids

    • Constructor Detail

      • Connectoids

        public Connectoids()
    • Method Detail

      • registerConnectoid

        protected Connectoid registerConnectoid​(Connectoid connectoid)
        Add connectoid to the internal container If new connectoid overrides an existing connectoid, the removed connectoid is returned
        Parameters:
        connectoid - the connectoid to be registered
        Returns:
        connectoid added
      • registerNewConnectoid

        public Connectoid registerNewConnectoid​(Centroid centroid,
                                                Node node,
                                                double length,
                                                Object externalId)
                                         throws PlanItException
        Create new connectoid to from a specified centroid to a specified node
        Parameters:
        centroid - centroid at one end of the connectoid
        node - node at other end of the connectoid
        length - length of connectiod
        externalId - external Id of connectoid
        Returns:
        Connectoid object created and registered
        Throws:
        PlanItException - thrown if there is an error
      • registerNewConnectoid

        public Connectoid registerNewConnectoid​(Centroid centroid,
                                                Node node,
                                                double length)
                                         throws PlanItException
        Create new connectoid to from a specified centroid to a specified node
        Parameters:
        centroid - centroid at one end of the connectoid
        node - node at other end of the connectoid
        length - length of connectiod
        Returns:
        Connectoid object created and registered
        Throws:
        PlanItException - thrown if there is an error
      • getConnectoid

        public Connectoid getConnectoid​(long id)
        Get connectoid by id
        Parameters:
        id - the id of this connectoid
        Returns:
        the retrieved connectoid
      • getNumberOfConnectoids

        public int getNumberOfConnectoids()
        Return number of connectoids on the network
        Returns:
        the number of connectoids