Beispiel #1
0
    def delete(self):
        """Remove the activation from the agenda."""
        if lib.EnvDeleteActivation(self._env, self._act) != 1:
            raise CLIPSError(self._env)

        self._env = None
Beispiel #2
0
 def clear(self):
     """Deletes all activations in the agenda."""
     if lib.EnvDeleteActivation(self._env, ffi.NULL) != 1:
         raise CLIPSError(self._env)