org.zilonis.network.negative
Class IndexedNegativeNode

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

public class IndexedNegativeNode
extends BaseNodeWithTests
implements LeftActivatable, RightActivatable, TokensHolder


Field Summary
 
Fields inherited from class org.zilonis.network.beta.BaseNodeWithTests
tests
 
Constructor Summary
IndexedNegativeNode(Scope scope, AlphaMemory alphaMemory, int hashField, int hashLevelsUp, Test[] tests)
           
 
Method Summary
 void addToken(Scope scope, Token token)
           
 AlphaMemory getAlphaMemory()
           
 int getHashField()
           
 int getHashLevelsUp()
           
 long getId()
           
 java.lang.Iterable<Token> getTokensIterable(Scope scope)
           
 java.lang.Iterable<Token> getTokensIterable(Scope scope, java.lang.String identifier)
           
 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

IndexedNegativeNode

public IndexedNegativeNode(Scope scope,
                           AlphaMemory alphaMemory,
                           int hashField,
                           int hashLevelsUp,
                           Test[] tests)
Method Detail

getId

public long getId()

getHashField

public int getHashField()

getHashLevelsUp

public int getHashLevelsUp()

addToken

public void addToken(Scope scope,
                     Token token)

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

getTokensIterable

public java.lang.Iterable<Token> getTokensIterable(Scope scope,
                                                   java.lang.String identifier)

toString

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