|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
BetaRightMemory
The BetaRightMemory is the interface for all classes
implementing the right memory of a BetaMemory instance.
The right memory is responsible for indexing and storing references
to all input fact handles in the ReteOO network.
Specialized implementations for this interface are capable of indexing
and partitioning the fact handles with the objective of improve query time.
Although, the implementations are all required to keep the order of
objects, and iterate then in order with the iterator() method.
![]() |
![]() |
![]() |
![]() |
| Method Summary | |
void |
add(WorkingMemory workingMemory,
MultiLinkedListNodeWrapper matches)
Adds an object to the right memory |
void |
add(WorkingMemory workingMemory,
ObjectMatches matches)
Adds an object to the right memory |
BetaRightMemory |
getInnerMemory()
Returns the inner beta right memory in case of a multi-indexed memory |
boolean |
isEmpty()
Returns true if the memory is empty |
boolean |
isPossibleMatch(MultiLinkedListNodeWrapper matches)
Returns true if the matches is a possible match to the tuple given to the previous selectPossibleMatches() call |
java.util.Iterator |
iterator()
Returns an iterator that allows to iterate over all the ObjectMatches in the beta right memory. |
java.util.Iterator |
iterator(WorkingMemory workingMemory,
ReteTuple tuple)
Returns an iterator that allows to iterate over the ObjectMatches (and referenced FactHandles) that are possible matches to the given tuple. |
void |
remove(WorkingMemory workingMemory,
MultiLinkedListNodeWrapper matches)
Removes the given match from memory |
void |
remove(WorkingMemory workingMemory,
ObjectMatches matches)
Removes the given match from memory |
void |
selectPossibleMatches(WorkingMemory workingMemory,
ReteTuple tuple)
Prepares the right memory for subsequent calls of isPossibleMatch() based on the constraints applied to the tuples |
void |
setInnerMemory(BetaRightMemory innerMemory)
Sets the inner beta right memory in case of a multi-indexed memory |
int |
size()
Returns the number of objects currently stored in the right memory |
| Method Detail |
public void add(WorkingMemory workingMemory,
ObjectMatches matches)
workingMemory - the working memory referencematches - the matches object (with the reference to the fact implementation)
public void remove(WorkingMemory workingMemory,
ObjectMatches matches)
workingMemory - the working memory referencematches -
public void add(WorkingMemory workingMemory,
MultiLinkedListNodeWrapper matches)
workingMemory - the working memory referencematches - the matches object (with the reference to the fact implementation)
public void remove(WorkingMemory workingMemory,
MultiLinkedListNodeWrapper matches)
workingMemory - the working memory referencematches -
public java.util.Iterator iterator(WorkingMemory workingMemory,
ReteTuple tuple)
workingMemory - the working memory referencetuple - the tuple that will possibly join with the returned matches
public java.util.Iterator iterator()
public int size()
public boolean isEmpty()
public void selectPossibleMatches(WorkingMemory workingMemory,
ReteTuple tuple)
public boolean isPossibleMatch(MultiLinkedListNodeWrapper matches)
matches -
public void setInnerMemory(BetaRightMemory innerMemory)
throws javax.naming.OperationNotSupportedException
javax.naming.OperationNotSupportedExceptioninnerMemory -
public BetaRightMemory getInnerMemory()
throws javax.naming.OperationNotSupportedException
javax.naming.OperationNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||