public abstract class IndexerWithMemory extends StandardIndexer implements Receiver
Modifier and Type | Field and Description |
---|---|
protected Mailbox |
mailbox |
protected MaskedTupleMemory |
memory |
listeners, mask, parent
nodeId, 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, toStringCore
acceptPropagatedTraceInfo, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptPropagatedTraceInfo, assignTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag
get, getActiveNode
protected 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()
Receiver
Mailbox
of this receiver.getMailbox
in interface Receiver
public MaskedTupleMemory getMemory()
public void update(Direction direction, Tuple updateElement)
Receiver
protected abstract void update(Direction direction, Tuple updateElement, Tuple signature, boolean change)
public void appendParent(Supplier supplier)
Receiver
appendParent
in interface Receiver
public void removeParent(Supplier supplier)
Receiver
removeParent
in interface Receiver
public java.util.Collection<Supplier> getParents()
Receiver
getParents
in interface Receiver