org.zilonis.network.beta
Class BaseNode
java.lang.Object
org.zilonis.network.beta.BaseNode
- All Implemented Interfaces:
- LeftActivatable
- Direct Known Subclasses:
- BaseNodeWithTests, ExpressionNode, NCCNode
public abstract class BaseNode
- extends java.lang.Object
- implements LeftActivatable
|
Method Summary |
void |
activateChildren(Scope scope,
WME wme,
Token token)
|
void |
addAsSecondChild(Scope scope,
LeftActivatable child)
|
void |
addChild(Scope scope,
LeftActivatable child)
|
static BaseNode |
buildNodeForPositiveCondition(Scope scope,
AlphaNetwork alphaNetwork,
BaseNode baseNode,
Condition condition)
|
BetaMemory |
buildOrShareBetaMemory(Scope scope)
|
ExpressionNode |
buildOrShareExpressionNode(Scope scope,
Condition condition)
|
IndexedBetaMemory |
buildOrShareIndexedBetaMemory(Scope scope,
int hashField,
int hashLevelsUp)
|
BaseNode |
buildOrShareNCCNode(Scope scope,
AlphaNetwork alphaNetwork,
Condition condition)
|
NegativeNode |
buildOrShareNegativeNode(Scope scope,
AlphaMemory alphaMemory,
Test[] tests,
Condition condition)
|
static BaseNode |
buildOrShareNode(Scope scope,
AlphaNetwork alphaNetwork,
BaseNode baseNode,
Condition condition)
|
ScopedLinkedList<LeftActivatable> |
getChildren()
|
java.lang.Iterable<LeftActivatable> |
getLeftActivatableIterable(Scope scope)
|
static BaseNode |
notIndexedPositiveNode(Scope scope,
AlphaNetwork alphaNetwork,
BaseNode baseNode,
Condition condition)
|
static void |
printPrev(Condition condition)
|
void |
setChildren(ScopedLinkedList<LeftActivatable> children)
|
java.lang.String |
toString(Scope scope)
|
abstract void |
update(Scope scope,
LeftActivatable production)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseNode
public BaseNode()
activateChildren
public void activateChildren(Scope scope,
WME wme,
Token token)
setChildren
public void setChildren(ScopedLinkedList<LeftActivatable> children)
getChildren
public ScopedLinkedList<LeftActivatable> getChildren()
getLeftActivatableIterable
public java.lang.Iterable<LeftActivatable> getLeftActivatableIterable(Scope scope)
addChild
public void addChild(Scope scope,
LeftActivatable child)
addAsSecondChild
public void addAsSecondChild(Scope scope,
LeftActivatable child)
printPrev
public static void printPrev(Condition condition)
buildNodeForPositiveCondition
public static BaseNode buildNodeForPositiveCondition(Scope scope,
AlphaNetwork alphaNetwork,
BaseNode baseNode,
Condition condition)
notIndexedPositiveNode
public static BaseNode notIndexedPositiveNode(Scope scope,
AlphaNetwork alphaNetwork,
BaseNode baseNode,
Condition condition)
buildOrShareNode
public static BaseNode buildOrShareNode(Scope scope,
AlphaNetwork alphaNetwork,
BaseNode baseNode,
Condition condition)
buildOrShareIndexedBetaMemory
public IndexedBetaMemory buildOrShareIndexedBetaMemory(Scope scope,
int hashField,
int hashLevelsUp)
buildOrShareBetaMemory
public BetaMemory buildOrShareBetaMemory(Scope scope)
buildOrShareNegativeNode
public NegativeNode buildOrShareNegativeNode(Scope scope,
AlphaMemory alphaMemory,
Test[] tests,
Condition condition)
buildOrShareNCCNode
public BaseNode buildOrShareNCCNode(Scope scope,
AlphaNetwork alphaNetwork,
Condition condition)
buildOrShareExpressionNode
public ExpressionNode buildOrShareExpressionNode(Scope scope,
Condition condition)
toString
public java.lang.String toString(Scope scope)
- Specified by:
toString in interface LeftActivatable
update
public abstract void update(Scope scope,
LeftActivatable production)