org.zilonis.network.negative
Class NegativeNode

java.lang.Object
  extended by org.zilonis.network.beta.BaseNode
      extended by org.zilonis.network.beta.BaseNodeWithTests
          extended by org.zilonis.network.negative.NegativeNode
All Implemented Interfaces:
TokensHolder, LeftActivatable, RightActivatable

public class NegativeNode
extends BaseNodeWithTests
implements LeftActivatable, RightActivatable, TokensHolder


Field Summary
 
Fields inherited from class org.zilonis.network.beta.BaseNodeWithTests
tests
 
Constructor Summary
NegativeNode(Scope scope, AlphaMemory alphaMemory, Test[] tests)
           
 
Method Summary
 AlphaMemory getAlphaMemory()
           
 java.lang.Iterable<Token> getTokensIterable(Scope scope)
           
 void leftActivate(Scope scope, Token token)
           
 void negativeResult(Scope scope, WME wme, Token token)
           
 void rightActivate(Scope scope, WME wme)
           
 boolean testsMatch(Scope scope, WME wme, Token token)
           
 java.lang.String toString(Scope scope)
           
 void update(Scope scope, LeftActivatable newNode)
           
 
Methods inherited from class org.zilonis.network.beta.BaseNodeWithTests
isIn, testsMatch
 
Methods inherited from class org.zilonis.network.beta.BaseNode
activateChildren, addAsSecondChild, addChild, buildNodeForPositiveCondition, buildOrShareBetaMemory, buildOrShareExpressionNode, buildOrShareIndexedBetaMemory, buildOrShareNCCNode, buildOrShareNegativeNode, buildOrShareNode, getChildren, getLeftActivatableIterable, notIndexedPositiveNode, printPrev, setChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegativeNode

public NegativeNode(Scope scope,
                    AlphaMemory alphaMemory,
                    Test[] tests)
Method Detail

getAlphaMemory

public AlphaMemory getAlphaMemory()

leftActivate

public void leftActivate(Scope scope,
                         Token token)
Specified by:
leftActivate in interface LeftActivatable

testsMatch

public boolean testsMatch(Scope scope,
                          WME wme,
                          Token token)

rightActivate

public void rightActivate(Scope scope,
                          WME wme)
Specified by:
rightActivate in interface RightActivatable

negativeResult

public void negativeResult(Scope scope,
                           WME wme,
                           Token token)

update

public void update(Scope scope,
                   LeftActivatable newNode)
Specified by:
update in class BaseNode

getTokensIterable

public java.lang.Iterable<Token> getTokensIterable(Scope scope)
Specified by:
getTokensIterable in interface TokensHolder

toString

public java.lang.String toString(Scope scope)
Specified by:
toString in interface LeftActivatable
Overrides:
toString in class BaseNode