Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
    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)