|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.reteoo.beta.ObjectNotEqualConstrLeftMemory
ObjectNotEqualConstrLeftMemory A not-equal object constrained left memory implementation
![]() |
![]() |
![]() |
![]() |
| Constructor Summary | |
ObjectNotEqualConstrLeftMemory(FieldExtractor extractor,
Declaration declaration,
Evaluator evaluator)
|
|
ObjectNotEqualConstrLeftMemory(FieldExtractor extractor,
Declaration declaration,
Evaluator evaluator,
BetaLeftMemory childMemory)
|
|
| Method Summary | |
void |
add(WorkingMemory workingMemory,
MultiLinkedListNodeWrapper tuple)
Adds the given tuple to the memory |
void |
add(WorkingMemory workingMemory,
ReteTuple tuple)
Adds the given tuple to the memory |
BetaLeftMemory |
getInnerMemory()
Returns the inner beta left 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()
Checks if this memory is empty |
boolean |
isPossibleMatch(MultiLinkedListNodeWrapper tuple)
Returns true if the tuple is a possible match to the handle passed to the previous selectPossibleMatches() call |
java.util.Iterator |
iterator()
Returns an iterator to iterate over all tuples in the beta left memory This method is much heavier than the iterator(workingMemory, handle) method as it is not backed by a data structure. |
java.util.Iterator |
iterator(WorkingMemory workingMemory,
InternalFactHandle handle)
Returns an iterator to iterate over tuples that attend the binder/handle constraints |
void |
remove(WorkingMemory workingMemory,
MultiLinkedListNodeWrapper tuple)
Remove the given tuple from the memory |
void |
remove(WorkingMemory workingMemory,
ReteTuple tuple)
Remove the given tuple from the memory |
void |
selectPossibleMatches(WorkingMemory workingMemory,
InternalFactHandle handle)
Prepares the left memory for subsequent calls of isPossibleMatch() based on the constraints applied to the handle. |
void |
setInnerMemory(BetaLeftMemory innerMemory)
Sets the inner beta left memory in case of a multi-indexed memory |
int |
size()
Returns the number of tuples currently stored in the left memory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectNotEqualConstrLeftMemory(FieldExtractor extractor,
Declaration declaration,
Evaluator evaluator)
public ObjectNotEqualConstrLeftMemory(FieldExtractor extractor,
Declaration declaration,
Evaluator evaluator,
BetaLeftMemory childMemory)
| Method Detail |
public final void add(WorkingMemory workingMemory,
ReteTuple tuple)
BetaLeftMemory
add in interface BetaLeftMemoryworkingMemory - the working memory referencetuple - the tuple to addBetaLeftMemory.add(org.drools.WorkingMemory, org.drools.reteoo.ReteTuple)
public final void remove(WorkingMemory workingMemory,
ReteTuple tuple)
BetaLeftMemory
remove in interface BetaLeftMemorytuple - the tuple to removeorg.drools.reteoo.beta.BetaLeftMemory#remove(org.drools.reteoo.ReteTuple)
public final void add(WorkingMemory workingMemory,
MultiLinkedListNodeWrapper tuple)
BetaLeftMemory
add in interface BetaLeftMemoryworkingMemory - the working memory referencetuple - the tuple to addorg.drools.reteoo.beta.BetaLeftMemory#add(org.drools.reteoo.ReteTuple)
public final void remove(WorkingMemory workingMemory,
MultiLinkedListNodeWrapper tuple)
BetaLeftMemory
remove in interface BetaLeftMemoryworkingMemory - the working memory referencetuple - the tuple to removeorg.drools.reteoo.beta.BetaLeftMemory#remove(org.drools.reteoo.ReteTuple)public final boolean isEmpty()
BetaLeftMemory
isEmpty in interface BetaLeftMemoryBetaLeftMemory.isEmpty()
public final java.util.Iterator iterator(WorkingMemory workingMemory,
InternalFactHandle handle)
BetaLeftMemory
iterator in interface BetaLeftMemoryworkingMemory - the working memory referencehandle - the handle whose tuples will try to join
org.drools.reteoo.beta.BetaLeftMemory#iterator(org.drools.WorkingMemory, org.drools.reteoo.FactHandleImpl)public final java.util.Iterator iterator()
BetaLeftMemory
iterator in interface BetaLeftMemory
public final void selectPossibleMatches(WorkingMemory workingMemory,
InternalFactHandle handle)
BetaLeftMemory
selectPossibleMatches in interface BetaLeftMemoryworkingMemory - the working memory referencehandle - the handle whose tuples shall matchorg.drools.reteoo.beta.BetaLeftMemory#selectPossibleMatches(org.drools.WorkingMemory, org.drools.reteoo.FactHandleImpl)public final boolean isPossibleMatch(MultiLinkedListNodeWrapper tuple)
BetaLeftMemory
isPossibleMatch in interface BetaLeftMemorytuple -
BetaLeftMemory.isPossibleMatch(org.drools.util.MultiLinkedListNodeWrapper)public final int size()
BetaLeftMemory
size in interface BetaLeftMemoryBetaLeftMemory.size()public final boolean isClean()
public BetaLeftMemory getInnerMemory()
BetaLeftMemory
getInnerMemory in interface BetaLeftMemorypublic void setInnerMemory(BetaLeftMemory innerMemory)
BetaLeftMemory
setInnerMemory in interface BetaLeftMemoryinnerMemory -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||