public abstract class StandardIndexer extends BaseNode implements Indexer, NetworkStructureChangeSensitiveNode
Modifier and Type | Field and Description |
---|---|
protected TupleMask |
mask |
protected Supplier |
parent |
nodeId, reteContainer, tag, traceInfos
Constructor and Description |
---|
StandardIndexer(ReteContainer reteContainer,
TupleMask mask) |
Modifier and Type | Method and Description |
---|---|
void |
assignTraceInfo(TraceInfo traceInfo)
assigns new traceability info to this node
|
void |
attachListener(IndexerListener listener) |
void |
detachListener(IndexerListener listener) |
ReteContainer |
getContainer() |
java.util.Collection<IndexerListener> |
getListeners() |
TupleMask |
getMask() |
Supplier |
getParent() |
void |
networkStructureChanged()
At the time of the invocation, the dependency graph has already been updated.
|
protected void |
propagate(Direction direction,
Tuple updateElement,
Tuple signature,
boolean change,
Timestamp timestamp) |
protected java.lang.String |
toStringCore()
clients should override this to append before the tag / trace indicators
|
acceptPropagatedTraceInfo, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, getActiveNode, getTimeline
acceptPropagatedTraceInfo, getCommunicationTracker, getNodeId, getTag, getTraceInfos, setTag
public StandardIndexer(ReteContainer reteContainer, TupleMask mask)
protected void propagate(Direction direction, Tuple updateElement, Tuple signature, boolean change, Timestamp timestamp)
public TupleMask getMask()
public Supplier getParent()
public void attachListener(IndexerListener listener)
attachListener
in interface Indexer
public void detachListener(IndexerListener listener)
detachListener
in interface Indexer
public void networkStructureChanged()
NetworkStructureChangeSensitiveNode
networkStructureChanged
in interface NetworkStructureChangeSensitiveNode
public java.util.Collection<IndexerListener> getListeners()
getListeners
in interface Indexer
public ReteContainer getContainer()
getContainer
in interface Node
getContainer
in class BaseNode
protected java.lang.String toStringCore()
BaseNode
toStringCore
in class BaseNode
public void assignTraceInfo(TraceInfo traceInfo)
Node
assignTraceInfo
in interface Node
assignTraceInfo
in class BaseNode