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, children
Fields inherited from class tools.refinery.interpreter.rete.network.BaseNode
nodeId, reteContainer, tag, traceInfos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendParent
(Supplier supplier) appends a parent that will continuously send insert and revoke updates to this suppliervoid
connectThroughContext
(ReteEngine engine, IInputKey inputKey, Tuple globalSeed) void
Disconnects this rete engine component from the underlying model.Returns theMailbox
of this receiver.access active parentprotected Mailbox
Instantiates theMailbox
of this receiver.void
pullInto
(Collection<Tuple> collector, boolean flush) Pulls the contents of this object in this particular moment into a target collection.void
pullIntoWithTimeline
(Map<Tuple, Timeline<Timestamp>> collector, boolean flush) void
removeParent
(Supplier supplier) removes a parentvoid
void
Updates 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, removeChild
Methods inherited from class tools.refinery.interpreter.rete.network.BaseNode
acceptPropagatedTraceInfo, assignTraceInfo, getContainer, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString, toStringCore
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.network.Node
acceptPropagatedTraceInfo, assignTraceInfo, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTag
Methods inherited from interface tools.refinery.interpreter.rete.network.Receiver
batchUpdate
Methods inherited from interface tools.refinery.interpreter.rete.network.Supplier
getPulledContents
-
Field Details
-
mailbox
- Since:
- 1.6
-
-
Constructor Details
-
ExternalInputEnumeratorNode
-
-
Method Details
-
instantiateMailbox
Instantiates theMailbox
of this receiver. Subclasses may override this method to provide their own mailbox implementation.- Returns:
- the mailbox
- Since:
- 2.0
-
getMailbox
Description copied from interface:Receiver
Returns theMailbox
of this receiver.- Specified by:
getMailbox
in interfaceReceiver
- Returns:
- the mailbox
-
connectThroughContext
-
disconnect
public void disconnect()Description copied from interface:Disconnectable
Disconnects this rete engine component from the underlying model. Disconnecting enables the garbage collection mechanisms to dispose of the rete network.- Specified by:
disconnect
in interfaceDisconnectable
-
getTuplesInternal
- Since:
- 2.2
-
pullInto
Description copied from interface:Supplier
Pulls the contents of this object in this particular moment into a target collection. -
pullIntoWithTimeline
- Specified by:
pullIntoWithTimeline
in interfaceSupplier
-
update
- Specified by:
update
in interfaceIQueryRuntimeContextListener
-
update
Description copied from interface:Receiver
Updates the receiver with a newly found or lost partial matching. -
appendParent
Description copied from interface:Receiver
appends a parent that will continuously send insert and revoke updates to this supplier- Specified by:
appendParent
in interfaceReceiver
-
removeParent
Description copied from interface:Receiver
removes a parent- Specified by:
removeParent
in interfaceReceiver
-
getParents
Description copied from interface:Receiver
access active parent- Specified by:
getParents
in interfaceReceiver
-
getInputKey
-
getGlobalSeed
-