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 StandardNode
childMailboxes, childrenFields inherited from class 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 StandardNode
appendChild, constructIndex, getChildMailboxes, getPulledContents, getReceivers, issueError, networkStructureChanged, propagateUpdate, removeChildMethods inherited from class BaseNode
acceptPropagatedTraceInfo, assignTraceInfo, getContainer, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString, toStringCoreMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Node
acceptPropagatedTraceInfo, assignTraceInfo, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTagMethods inherited from interface Receiver
batchUpdateMethods inherited from interface Supplier
getPulledContents
-
Field Details
-
mailbox
- Since:
- 1.6
-
-
Constructor Details
-
ExternalInputEnumeratorNode
-
-
Method Details
-
instantiateMailbox
-
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
-
pullInto
Description copied from interface:SupplierPulls the contents of this object in this particular moment into a target collection. -
pullIntoWithTimeline
-
update
- Specified by:
updatein interfaceIQueryRuntimeContextListener
-
update
-
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
-