Class StandardIndexer
java.lang.Object
tools.refinery.interpreter.rete.network.BaseNode
tools.refinery.interpreter.rete.index.StandardIndexer
- All Implemented Interfaces:
Indexer, NetworkStructureChangeSensitiveNode, Node
- Direct Known Subclasses:
AbstractColumnAggregatorNode.AggregatorOuterIdentityIndexer, AbstractColumnAggregatorNode.AggregatorOuterIndexer, IndexerWithMemory, SpecializedProjectionIndexer, TransitiveClosureNodeIndexer
public abstract class StandardIndexer
extends BaseNode
implements Indexer, NetworkStructureChangeSensitiveNode
An abstract standard implementation of the Indexer interface, providing common bookkeeping functionality.
-
Field Summary
FieldsFields inherited from class BaseNode
nodeId, reteContainer, tag, traceInfos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignTraceInfo(TraceInfo traceInfo) assigns new traceability info to this nodevoidattachListener(IndexerListener listener) voiddetachListener(IndexerListener listener) getMask()voidAt the time of the invocation, the dependency graph has already been updated.protected voidpropagate(Direction direction, Tuple updateElement, Tuple signature, boolean change, Timestamp timestamp) protected Stringclients should override this to append before the tag / trace indicatorsMethods inherited from class BaseNode
acceptPropagatedTraceInfo, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Indexer
get, getActiveNode, getTimelineMethods inherited from interface Node
acceptPropagatedTraceInfo, getCommunicationTracker, getNodeId, getTag, getTraceInfos, setTag
-
Field Details
-
parent
-
mask
-
-
Constructor Details
-
StandardIndexer
-
-
Method Details
-
propagate
-
getMask
-
getParent
-
attachListener
- Specified by:
attachListenerin interfaceIndexer
-
detachListener
- Specified by:
detachListenerin interfaceIndexer
-
networkStructureChanged
public void networkStructureChanged()Description copied from interface:NetworkStructureChangeSensitiveNodeAt the time of the invocation, the dependency graph has already been updated.- Specified by:
networkStructureChangedin interfaceNetworkStructureChangeSensitiveNode
-
getListeners
- Specified by:
getListenersin interfaceIndexer
-
getContainer
- Specified by:
getContainerin interfaceNode- Overrides:
getContainerin classBaseNode- Returns:
- the network this node belongs to.
-
toStringCore
Description copied from class:BaseNodeclients should override this to append before the tag / trace indicators- Overrides:
toStringCorein classBaseNode
-
assignTraceInfo
Description copied from interface:Nodeassigns new traceability info to this node- Specified by:
assignTraceInfoin interfaceNode- Overrides:
assignTraceInfoin classBaseNode
-