org.zilonis.network.negative
Class IndexedNegativeNode
java.lang.Object
org.zilonis.network.beta.BaseNode
org.zilonis.network.beta.BaseNodeWithTests
org.zilonis.network.negative.IndexedNegativeNode
- All Implemented Interfaces:
- TokensHolder, LeftActivatable, RightActivatable
public class IndexedNegativeNode
- extends BaseNodeWithTests
- implements LeftActivatable, RightActivatable, TokensHolder
| 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 |
IndexedNegativeNode
public IndexedNegativeNode(Scope scope,
AlphaMemory alphaMemory,
int hashField,
int hashLevelsUp,
Test[] tests)
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