Class MemoryNullIndexer
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.NullIndexer
tools.refinery.interpreter.rete.index.MemoryNullIndexer
- All Implemented Interfaces:
Iterable<Tuple>
,Indexer
,IterableIndexer
,ProjectionIndexer
,NetworkStructureChangeSensitiveNode
,Node
Defines a trivial indexer that projects the contents of a memory-equipped node to the empty tuple, 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
Fields inherited from class tools.refinery.interpreter.rete.index.NullIndexer
emptySet, nullSignature, nullSingleton
Fields inherited from class tools.refinery.interpreter.rete.index.SpecializedProjectionIndexer
activeNode, subscriptions
Fields inherited from class tools.refinery.interpreter.rete.index.StandardIndexer
mask, parent
Fields inherited from class tools.refinery.interpreter.rete.network.BaseNode
nodeId, reteContainer, tag, traceInfos
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryNullIndexer
(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.NullIndexer
get, getBucketCount, getSignatures, isEmpty, isSingleElement, iterator, propagateToListener
Methods inherited from class tools.refinery.interpreter.rete.index.SpecializedProjectionIndexer
attachListener, detachListener, getActiveNode, getSubscriptions, networkStructureChanged, propagate
Methods inherited from class tools.refinery.interpreter.rete.index.StandardIndexer
assignTraceInfo, getContainer, getListeners, getMask, getParent, toStringCore
Methods inherited from class tools.refinery.interpreter.rete.network.BaseNode
acceptPropagatedTraceInfo, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface tools.refinery.interpreter.rete.index.Indexer
getListeners, getMask, getParent, getTimeline
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface tools.refinery.interpreter.rete.network.Node
acceptPropagatedTraceInfo, assignTraceInfo, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTag
-
Constructor Details
-
MemoryNullIndexer
public MemoryNullIndexer(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 null-indexedparent
- the parent node that owns the memory
-
-
Method Details
-
getTuples
- Specified by:
getTuples
in classNullIndexer
-