Exemplo n.º 1
0
 def __init__(self, parent=None, tests=None):
     '''
     Constructor
     '''
     Node.__init__(self, rightParent=parent)
     HasMemory.__init__(self, None)
     HasTests.__init__(self, tests)
Exemplo n.º 2
0
 def __init__(self, parent=None, tests=None):
     '''
     Constructor
     '''
     Node.__init__(self, rightParent=parent)
     HasMemory.__init__(self, None)
     HasTests.__init__(self, tests)
Exemplo n.º 3
0
 def __init__(self, leftParent, rightParent, partnerCircuitLength):
     '''
     Create the new ncc node
     '''
     Node.__init__(self, rightParent=None, leftParent=leftParent)
     Memory.__init__(self)
     
     self._partner = NccPartnerNode(rightParent, partnerCircuitLength, self)
Exemplo n.º 4
0
    def __init__(self, leftParent, rightParent, partnerCircuitLength):
        '''
        Create the new ncc node
        '''
        Node.__init__(self, rightParent=None, leftParent=leftParent)
        Memory.__init__(self)

        self._partner = NccPartnerNode(rightParent, partnerCircuitLength, self)
Exemplo n.º 5
0
    def __init__(self, leftParent, circuitLenght, nccNode):
        '''
        Build a new NccPartner
        '''
        Node.__init__(self, leftParent=leftParent)

        self._circuitLength = circuitLenght
        self._nccNode = nccNode
        self._buffer = []
Exemplo n.º 6
0
 def __init__(self, leftParent, circuitLenght, nccNode):
     '''
     Build a new NccPartner
     '''
     Node.__init__(self, leftParent=leftParent)
     
     self._circuitLength = circuitLenght
     self._nccNode = nccNode
     self._buffer = []
Exemplo n.º 7
0
    def __init__(self, ruleName, leftParent, network, orClauseCount=None, rhs=None, properties=None, moduleName=None, variables=None):
        '''
        Constructor
        '''
        self._ruleName = ruleName + (("~"+str(orClauseCount)) if orClauseCount is not None else "")
        self._isMain = (orClauseCount is None)
        self._network = network
        self._rhs = rhs
        self._linkedPNodes = []
        self._properties = {"salience": 0, "auto-focus": False} if properties is None or not isinstance(properties, dict) else properties
        self._moduleName = moduleName if moduleName is not None else network.modulesManager.currentScope.moduleName
        self._variables = variables if isinstance(variables, dict) else {}

        Node.__init__(self, leftParent=leftParent)
        Memory.__init__(self)
Exemplo n.º 8
0
 def __init__(self, parent=None):
     '''
     Constructor
     '''
     Node.__init__(self, rightParent=parent, leftParent=None)
     Memory.__init__(self)
Exemplo n.º 9
0
 def __init__(self, rightParent=None, leftParent=None, tests=None):
     '''
     Constructor
     '''
     Node.__init__(self, rightParent, leftParent)
     HasJoinTests.__init__(self, tests)
Exemplo n.º 10
0
 def __init__(self, network):
     '''
     Constructor
     '''
     Node.__init__(self)
     self._network = network
Exemplo n.º 11
0
 def __init__(self, parent=None):
     '''
     Constructor
     '''
     Node.__init__(self, rightParent=parent, leftParent=None)
     Memory.__init__(self)
Exemplo n.º 12
0
 def __init__(self, network):
     '''
     Constructor
     '''
     Node.__init__(self)
     self._network = network
Exemplo n.º 13
0
 def __init__(self, leftParent=None, tests=None):
     '''
     Constructor
     '''
     Node.__init__(self, leftParent=leftParent)
     HasJoinTests.__init__(self, tests)