Class MemoryIdentityIndexer
java.lang.Object
tools.refinery.interpreter.rete.network.BaseNode
tools.refinery.interpreter.rete.index.StandardIndexer
tools.refinery.interpreter.rete.index.SpecializedProjectionIndexer
tools.refinery.interpreter.rete.index.IdentityIndexer
tools.refinery.interpreter.rete.index.MemoryIdentityIndexer
- All Implemented Interfaces:
Iterable<Tuple>,Indexer,IterableIndexer,ProjectionIndexer,NetworkStructureChangeSensitiveNode,Node
Defines a trivial indexer that identically projects the contents of a memory-equipped node, and can therefore save
space. Can only exist in connection with a memory, and must be operated by another node. Do not attach parents
directly!
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.refinery.interpreter.rete.index.SpecializedProjectionIndexer
SpecializedProjectionIndexer.ListenerSubscription -
Field Summary
FieldsFields inherited from class tools.refinery.interpreter.rete.index.SpecializedProjectionIndexer
activeNode, subscriptionsFields inherited from class tools.refinery.interpreter.rete.index.StandardIndexer
mask, parentFields inherited from class tools.refinery.interpreter.rete.network.BaseNode
nodeId, reteContainer, tag, traceInfos -
Constructor Summary
ConstructorsConstructorDescriptionMemoryIdentityIndexer(ReteContainer reteContainer, int tupleWidth, Collection<Tuple> memory, Supplier parent, Receiver activeNode, List<SpecializedProjectionIndexer.ListenerSubscription> sharedSubscriptionList) -
Method Summary
Methods inherited from class tools.refinery.interpreter.rete.index.IdentityIndexer
contains, get, getBucketCount, getSignatures, iterator, propagateToListenerMethods inherited from class tools.refinery.interpreter.rete.index.SpecializedProjectionIndexer
attachListener, detachListener, getActiveNode, getSubscriptions, networkStructureChanged, propagateMethods inherited from class tools.refinery.interpreter.rete.index.StandardIndexer
assignTraceInfo, getContainer, getListeners, getMask, getParent, toStringCoreMethods inherited from class tools.refinery.interpreter.rete.network.BaseNode
acceptPropagatedTraceInfo, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.interpreter.rete.index.Indexer
getListeners, getMask, getParent, getTimelineMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface tools.refinery.interpreter.rete.network.Node
acceptPropagatedTraceInfo, assignTraceInfo, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTag
-
Field Details
-
memory
-
-
Constructor Details
-
MemoryIdentityIndexer
public MemoryIdentityIndexer(ReteContainer reteContainer, int tupleWidth, Collection<Tuple> memory, Supplier parent, Receiver activeNode, List<SpecializedProjectionIndexer.ListenerSubscription> sharedSubscriptionList) - Parameters:
reteContainer-tupleWidth- the width of the tuples of memoryNodememory- the memory whose contents are to be identity-indexedparent- the parent node that owns the memory
-
-
Method Details
-
getTuples
- Specified by:
getTuplesin classIdentityIndexer
-