org.zilonis.network.beta
Class IndexedBetaMemory

java.lang.Object
  extended by org.zilonis.network.beta.IndexedBetaMemory
All Implemented Interfaces:
TokensHolder, LeftActivatable

public class IndexedBetaMemory
extends java.lang.Object
implements LeftActivatable, TokensHolder


Field Summary
static long listTotal
           
 
Constructor Summary
IndexedBetaMemory(int hashField, int hashLevelsUp)
           
 
Method Summary
 void activateChildren(Scope scope, Token token)
           
 void addChild(Scope scope, AlphaMemory alphaMemory, LeftActivatable child)
           
 void addToken(Scope scope, Token token)
           
 java.lang.Iterable<LeftActivatable> getChildrenIterable(Scope scope, AlphaMemory alphaMemory)
           
 int getHashField()
           
 int getHashLevelsUp()
           
 long getId()
           
 BetaMemoryTokensIndex getIndex()
           
 IndexedJoinNode getIndexedJoinNode(Scope scope, AlphaMemory alphaMemory, Test[] tests)
           
 Token getTokensInIndexFor(Scope scope, java.lang.String identifier)
           
 java.lang.Iterable<Token> getTokensIterable(Scope scope)
           
 void leftActivate(Scope scope, Token token)
           
 java.lang.String toString(Scope scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listTotal

public static long listTotal
Constructor Detail

IndexedBetaMemory

public IndexedBetaMemory(int hashField,
                         int hashLevelsUp)
Method Detail

getId

public long getId()

getHashLevelsUp

public int getHashLevelsUp()

getHashField

public int getHashField()

getIndex

public BetaMemoryTokensIndex getIndex()

addToken

public void addToken(Scope scope,
                     Token token)

toString

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

leftActivate

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

activateChildren

public void activateChildren(Scope scope,
                             Token token)

getTokensInIndexFor

public Token getTokensInIndexFor(Scope scope,
                                 java.lang.String identifier)

getChildrenIterable

public java.lang.Iterable<LeftActivatable> getChildrenIterable(Scope scope,
                                                               AlphaMemory alphaMemory)

addChild

public void addChild(Scope scope,
                     AlphaMemory alphaMemory,
                     LeftActivatable child)

getIndexedJoinNode

public IndexedJoinNode getIndexedJoinNode(Scope scope,
                                          AlphaMemory alphaMemory,
                                          Test[] tests)

getTokensIterable

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