コード例 #1
0
    def remote_destroy(self):
        """ Method should be called to destroy the environment and will take
            care of destroying all objects owned by this Environment as well
            as deleting all circular references.
        """
        for node in self._nodes.copy():
            node.remote_destroy()

        for parameter in self._parameters.copy():
            parameter.remote_destroy()

        # Can not check here, because nodes are unregistered when the
        # node (process) exits and remote_destroy only requests to stop the
        # node (process)
        #assert len(self._nodes) == 0
        assert len(self._parameters) == 0

        Namespace.remote_destroy(self)
コード例 #2
0
ファイル: environment.py プロジェクト: Aerobota/rce
    def remote_destroy(self):
        """ Method should be called to destroy the environment and will take
            care of destroying all objects owned by this Environment as well
            as deleting all circular references.
        """
        for node in self._nodes.copy():
            node.remote_destroy()

        for parameter in self._parameters.copy():
            parameter.remote_destroy()

        # Can not check here, because nodes are unregistered when the
        # node (process) exits and remote_destroy only requests to stop the
        # node (process)
        #assert len(self._nodes) == 0
        assert len(self._parameters) == 0

        Namespace.remote_destroy(self)
コード例 #3
0
ファイル: robot.py プロジェクト: micpalmia/rce
 def destroy(self):
     """ # TODO: Add doc
     """
     self._connection = None
     Namespace.remote_destroy(self)
コード例 #4
0
 def destroy(self):
     """ # TODO: Add doc
     """
     self._connection = None
     Namespace.remote_destroy(self)