def delete(self, notifierRemoval=None, notifierUnlinking=None): """ Remove the beta-memory from the network """ # first delete all tokens Memory.delete(self) # then i can call parent destructor Node.delete(self, notifierRemoval, notifierUnlinking)
def delete(self, notifierRemoval=None, notifierUnlinking=None): if self.isMain: for linkedNode in self._linkedPNodes: linkedNode.delete(notifierRemoval, notifierUnlinking) self._linkedPNodes = [] Memory.delete(self) Node.delete(self, notifierRemoval, notifierUnlinking)
def delete(self, notifierRemoval=None, notifierUnlinking=None): """ Remove the beta-memory from the network """ # first delete all tokens Memory.delete(self) # then i can call parent destructor Node.delete(self, notifierRemoval, notifierUnlinking)
def delete(self, notifierRemoval=None, notifierUnlinking=None): """ Remove the negative join node from the network and delete all tokens created by this node """ # destroy tokens in memory Memory.delete(self) # then i can call parent destructor JoinNode.delete(self, notifierRemoval, notifierUnlinking)
def delete(self, notifierRemoval=None, notifierUnlinking=None): """ Remove this node and the partner from the network """ # notify unlink between ncc and partner #EventManager.trigger(EventManager.E_NODE_UNLINKED, self.get_partner(), self) # then destroy the partner self.partner.delete(notifierRemoval, notifierUnlinking) # and last destroy this node itself Memory.delete(self) Node.delete(self, notifierRemoval, notifierUnlinking)
def delete(self, notifierRemoval=None, notifierUnlinking=None): """ Remove this node and the partner from the network """ # notify unlink between ncc and partner #EventManager.trigger(EventManager.E_NODE_UNLINKED, self.get_partner(), self) # then destroy the partner self.partner.delete(notifierRemoval, notifierUnlinking) # and last destroy this node itself Memory.delete(self) Node.delete(self, notifierRemoval, notifierUnlinking)
def delete(self, notifierRemoval=None, notifierUnlinking=None): """ Remove the negative join node from the network and delete all tokens created by this node """ for wme in self.rightParent.items: wme.unlinkExistsNode(self) # destroy tokens in memory Memory.delete(self) # then i can call parent destructor JoinNode.delete(self, notifierRemoval, notifierUnlinking)
def delete(self, notifierRemoval=None, notifierUnlinking=None): """ Remove the negative join node from the network and delete all tokens created by this node """ for wme in self.rightParent.items: wme.unlinkExistsNode(self) # destroy tokens in memory Memory.delete(self) # then i can call parent destructor JoinNode.delete(self, notifierRemoval, notifierUnlinking)
def reduceCount(self): self._existsCount -= 1 if self._existsCount == 0: Memory.delete(self)
def reduceCount(self): self._existsCount -= 1 if self._existsCount == 0: Memory.delete(self)