|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.reteoo.beta.ObjectNotEqualConstrRightMemory
public class ObjectNotEqualConstrRightMemory
ObjectNotEqualConstrRightMemory An Object not equal constrained right memory implementation
| Constructor Summary | |
|---|---|
ObjectNotEqualConstrRightMemory(FieldExtractor extractor,
Declaration declaration,
Evaluator evaluator)
|
|
ObjectNotEqualConstrRightMemory(FieldExtractor extractor,
Declaration declaration,
Evaluator evaluator,
BetaRightMemory childMemory)
|
|
| 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 |
isClean()
Test method that checks if there is any garbage list in memory, what indicates an error. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectNotEqualConstrRightMemory(FieldExtractor extractor, Declaration declaration, Evaluator evaluator)
public ObjectNotEqualConstrRightMemory(FieldExtractor extractor, Declaration declaration, Evaluator evaluator, BetaRightMemory childMemory)
| Method Detail |
|---|
public final void add(WorkingMemory workingMemory, ObjectMatches matches)
BetaRightMemory
add in interface BetaRightMemoryworkingMemory - the working memory referencematches - the matches object (with the reference to the fact implementation)BetaRightMemory.add(org.drools.WorkingMemory, org.drools.reteoo.ObjectMatches)public final void remove(WorkingMemory workingMemory, ObjectMatches matches)
BetaRightMemory
remove in interface BetaRightMemoryworkingMemory - the working memory referenceBetaRightMemory.remove(org.drools.WorkingMemory, org.drools.reteoo.ObjectMatches)public final void add(WorkingMemory workingMemory, MultiLinkedListNodeWrapper matches)
BetaRightMemory
add in interface BetaRightMemoryworkingMemory - the working memory referencematches - the matches object (with the reference to the fact implementation)BetaRightMemory.add(org.drools.WorkingMemory, org.drools.util.MultiLinkedListNodeWrapper)public final void remove(WorkingMemory workingMemory, MultiLinkedListNodeWrapper matches)
BetaRightMemory
remove in interface BetaRightMemoryworkingMemory - the working memory referenceBetaRightMemory.remove(org.drools.WorkingMemory, org.drools.util.MultiLinkedListNodeWrapper)public final java.util.Iterator iterator(WorkingMemory workingMemory, ReteTuple tuple)
BetaRightMemory
iterator in interface BetaRightMemoryworkingMemory - the working memory referencetuple - the tuple that will possibly join with the returned matches
BetaRightMemory.iterator(org.drools.WorkingMemory, org.drools.reteoo.ReteTuple)public final boolean isEmpty()
BetaRightMemory
isEmpty in interface BetaRightMemoryBetaRightMemory.isEmpty()public final void selectPossibleMatches(WorkingMemory workingMemory, ReteTuple tuple)
BetaRightMemory
selectPossibleMatches in interface BetaRightMemorypublic final boolean isPossibleMatch(MultiLinkedListNodeWrapper matches)
BetaRightMemory
isPossibleMatch in interface BetaRightMemoryorg.drools.reteoo.beta.BetaRightMemory#isPossibleMatch(org.drools.reteoo.FactHandleImpl)public final int size()
BetaRightMemory
size in interface BetaRightMemoryBetaRightMemory.size()public final boolean isClean()
public final java.util.Iterator iterator()
BetaRightMemory
iterator in interface BetaRightMemorypublic BetaRightMemory getInnerMemory()
BetaRightMemory
getInnerMemory in interface BetaRightMemorypublic void setInnerMemory(BetaRightMemory innerMemory)
BetaRightMemory
setInnerMemory in interface BetaRightMemory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||