public abstract class IndexerWithMemory extends StandardIndexer implements Receiver
| Modifier and Type | Field and Description |
|---|---|
protected Mailbox |
mailbox |
protected MaskedTupleMemory |
memory |
listeners, mask, parentnodeId, reteContainer, tag, traceInfos| Constructor and Description |
|---|
IndexerWithMemory(ReteContainer reteContainer,
TupleMask mask) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendParent(Supplier supplier)
appends a parent that will continously send insert and revoke updates to this supplier
|
Mailbox |
getMailbox()
Returns the
Mailbox of this receiver. |
MaskedTupleMemory |
getMemory() |
java.util.Collection<Supplier> |
getParents()
access active parent
|
protected Mailbox |
instantiateMailbox()
Instantiates the
Mailbox of this receiver. |
void |
removeParent(Supplier supplier)
removes a parent
|
void |
update(Direction direction,
Tuple updateElement)
updates the receiver with a newly found or lost partial matching
|
protected abstract void |
update(Direction direction,
Tuple updateElement,
Tuple signature,
boolean change)
Refined version of update
|
assignTraceInfo, attachListener, detachListener, getContainer, getListeners, getMask, getParent, propagate, toStringCoreacceptPropagatedTraceInfo, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptPropagatedTraceInfo, assignTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTagget, getActiveNodeprotected MaskedTupleMemory memory
protected final Mailbox mailbox
public IndexerWithMemory(ReteContainer reteContainer, TupleMask mask)
reteContainer - mask - protected Mailbox instantiateMailbox()
Mailbox of this receiver. Subclasses may override this method to provide their own
mailbox implementation.public Mailbox getMailbox()
ReceiverMailbox of this receiver.getMailbox in interface Receiverpublic MaskedTupleMemory getMemory()
public void update(Direction direction, Tuple updateElement)
Receiverprotected abstract void update(Direction direction, Tuple updateElement, Tuple signature, boolean change)
public void appendParent(Supplier supplier)
ReceiverappendParent in interface Receiverpublic void removeParent(Supplier supplier)
ReceiverremoveParent in interface Receiverpublic java.util.Collection<Supplier> getParents()
ReceivergetParents in interface Receiver