Class ExternalInputEnumeratorNode
java.lang.Object
tools.refinery.interpreter.rete.network.BaseNode
tools.refinery.interpreter.rete.network.StandardNode
tools.refinery.interpreter.rete.boundary.ExternalInputEnumeratorNode
- All Implemented Interfaces:
IQueryRuntimeContextListener,Disconnectable,NetworkStructureChangeSensitiveNode,Node,Receiver,Supplier
public class ExternalInputEnumeratorNode
extends StandardNode
implements Disconnectable, Receiver, IQueryRuntimeContextListener
An input node representing an enumerable extensional input relation and receiving external updates.
Contains those tuples that are in the extensional relation identified by the input key, and also conform to the global seed (if any).
-
Field Summary
FieldsFields inherited from class tools.refinery.interpreter.rete.network.StandardNode
childMailboxes, childrenFields inherited from class tools.refinery.interpreter.rete.network.BaseNode
nodeId, reteContainer, tag, traceInfos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendParent(Supplier supplier) appends a parent that will continuously send insert and revoke updates to this suppliervoidconnectThroughContext(ReteEngine engine, IInputKey inputKey, Tuple globalSeed) voidDisconnects this rete engine component from the underlying model.Returns theMailboxof this receiver.access active parentprotected MailboxInstantiates theMailboxof this receiver.voidpullInto(Collection<Tuple> collector, boolean flush) Pulls the contents of this object in this particular moment into a target collection.voidpullIntoWithTimeline(Map<Tuple, Timeline<Timestamp>> collector, boolean flush) voidremoveParent(Supplier supplier) removes a parentvoidvoidUpdates the receiver with a newly found or lost partial matching.Methods inherited from class tools.refinery.interpreter.rete.network.StandardNode
appendChild, constructIndex, getChildMailboxes, getPulledContents, getReceivers, issueError, networkStructureChanged, propagateUpdate, removeChildMethods inherited from class tools.refinery.interpreter.rete.network.BaseNode
acceptPropagatedTraceInfo, assignTraceInfo, getContainer, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString, toStringCoreMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.interpreter.rete.network.Node
acceptPropagatedTraceInfo, assignTraceInfo, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTagMethods inherited from interface tools.refinery.interpreter.rete.network.Receiver
batchUpdateMethods inherited from interface tools.refinery.interpreter.rete.network.Supplier
getPulledContents
-
Field Details
-
mailbox
- Since:
- 1.6
-
-
Constructor Details
-
ExternalInputEnumeratorNode
-
-
Method Details
-
instantiateMailbox
Instantiates theMailboxof this receiver. Subclasses may override this method to provide their own mailbox implementation.- Returns:
- the mailbox
- Since:
- 2.0
-
getMailbox
Description copied from interface:ReceiverReturns theMailboxof this receiver.- Specified by:
getMailboxin interfaceReceiver- Returns:
- the mailbox
-
connectThroughContext
-
disconnect
public void disconnect()Description copied from interface:DisconnectableDisconnects this rete engine component from the underlying model. Disconnecting enables the garbage collection mechanisms to dispose of the rete network.- Specified by:
disconnectin interfaceDisconnectable
-
getTuplesInternal
- Since:
- 2.2
-
pullInto
Description copied from interface:SupplierPulls the contents of this object in this particular moment into a target collection. -
pullIntoWithTimeline
- Specified by:
pullIntoWithTimelinein interfaceSupplier
-
update
- Specified by:
updatein interfaceIQueryRuntimeContextListener
-
update
Description copied from interface:ReceiverUpdates the receiver with a newly found or lost partial matching. -
appendParent
Description copied from interface:Receiverappends a parent that will continuously send insert and revoke updates to this supplier- Specified by:
appendParentin interfaceReceiver
-
removeParent
Description copied from interface:Receiverremoves a parent- Specified by:
removeParentin interfaceReceiver
-
getParents
Description copied from interface:Receiveraccess active parent- Specified by:
getParentsin interfaceReceiver
-
getInputKey
-
getGlobalSeed
-