org.zilonis.network.beta
Class BaseNodeWithTests

java.lang.Object
  extended by org.zilonis.network.beta.BaseNode
      extended by org.zilonis.network.beta.BaseNodeWithTests
All Implemented Interfaces:
LeftActivatable
Direct Known Subclasses:
IndexedJoinNode, IndexedNegativeNode, JoinNode, NegativeNode

public abstract class BaseNodeWithTests
extends BaseNode


Field Summary
protected  ScopedLinkedList<Test> tests
           
 
Constructor Summary
BaseNodeWithTests(Scope scope, Test[] tests)
           
 
Method Summary
static boolean isIn(Test test, Test[] tests)
           
 boolean testsMatch(Scope scope, Test[] _tests)
          This method is used in the getJoinNode (buildOrShareJoinNode) and getNegativeNode to test if the tests contained in this JoinNode for the specified scope match the ones received as a parameter
 
Methods inherited from class org.zilonis.network.beta.BaseNode
activateChildren, addAsSecondChild, addChild, buildNodeForPositiveCondition, buildOrShareBetaMemory, buildOrShareExpressionNode, buildOrShareIndexedBetaMemory, buildOrShareNCCNode, buildOrShareNegativeNode, buildOrShareNode, getChildren, getLeftActivatableIterable, notIndexedPositiveNode, printPrev, setChildren, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zilonis.network.LeftActivatable
leftActivate
 

Field Detail

tests

protected ScopedLinkedList<Test> tests
Constructor Detail

BaseNodeWithTests

public BaseNodeWithTests(Scope scope,
                         Test[] tests)
Method Detail

testsMatch

public boolean testsMatch(Scope scope,
                          Test[] _tests)
This method is used in the getJoinNode (buildOrShareJoinNode) and getNegativeNode to test if the tests contained in this JoinNode for the specified scope match the ones received as a parameter


isIn

public static boolean isIn(Test test,
                           Test[] tests)