public class ExternalInputEnumeratorNode extends StandardNode implements Disconnectable, Receiver, IQueryRuntimeContextListener
Contains those tuples that are in the extensional relation identified by the input key, and also conform to the global seed (if any).
| Constructor and Description |
|---|
ExternalInputEnumeratorNode(ReteContainer reteContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendParent(Supplier supplier)
appends a parent that will continously send insert and revoke updates to this supplier
|
void |
connectThroughContext(ReteEngine engine,
IInputKey inputKey,
Tuple globalSeed) |
void |
disconnect()
Disconnects this rete engine component from the underlying model.
|
Tuple |
getGlobalSeed() |
IInputKey |
getInputKey() |
java.util.Collection<Supplier> |
getParents()
access active parent
|
void |
pullInto(java.util.Collection<Tuple> collector)
pulls the contents of this object in this particular moment into a target collection
|
void |
removeParent(Supplier supplier)
removes a parent
|
void |
update(Direction direction,
Tuple updateElement)
updates the receiver with a newly found or lost partial matching
|
void |
update(IInputKey key,
Tuple updateTuple,
boolean isInsertion)
The given tuple was inserted into or removed from the input relation indicated by the given key.
|
appendChild, constructIndex, getPulledContents, getReceivers, removeChildacceptPropagatedTraceInfo, assignTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptPropagatedTraceInfo, assignTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTagpublic ExternalInputEnumeratorNode(ReteContainer reteContainer)
public void connectThroughContext(ReteEngine engine, IInputKey inputKey, Tuple globalSeed)
public void disconnect()
Disconnectabledisconnect in interface Disconnectablepublic void pullInto(java.util.Collection<Tuple> collector)
Supplierpublic void update(IInputKey key, Tuple updateTuple, boolean isInsertion)
IQueryRuntimeContextListenerupdate in interface IQueryRuntimeContextListenerkey - the key identifying the input relation that was updatedupdateTuple - the tuple that was inserted or removedisInsertion - true if it was an insertion, false otherwise.public void update(Direction direction, Tuple updateElement)
Receiverpublic void appendParent(Supplier supplier)
ReceiverappendParent in interface Receiverpublic void removeParent(Supplier supplier)
ReceiverremoveParent in interface Receiverpublic java.util.Collection<Supplier> getParents()
ReceivergetParents in interface Receiverpublic IInputKey getInputKey()
public Tuple getGlobalSeed()