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