public abstract class FilterNode extends SingleInputNode
mailbox, parent
childMailboxes, children
nodeId, reteContainer, tag, traceInfos
Constructor and Description |
---|
FilterNode(ReteContainer reteContainer) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
check(Tuple ps)
Abstract filtering predicate.
|
void |
pullInto(java.util.Collection<Tuple> collector,
boolean flush)
Pulls the contents of this object in this particular moment into a target collection.
|
void |
pullIntoWithTimestamp(java.util.Map<Tuple,Timestamp> collector,
boolean flush) |
void |
update(Direction direction,
Tuple updateElement,
Timestamp timestamp)
updates the receiver with a newly found or lost partial matching
|
appendParent, assignTraceInfo, getCommunicationTracker, getMailbox, getParents, instantiateMailbox, propagatePullInto, propagatePullIntoWithTimestamp, removeParent
appendChild, constructIndex, getChildMailboxes, getPulledContents, getReceivers, issueError, networkStructureChanged, propagateUpdate, removeChild
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString, toStringCore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendChild, constructIndex, getPulledContents, getPulledContents, getReceivers, removeChild
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag
public FilterNode(ReteContainer reteContainer)
public abstract boolean check(Tuple ps)
ps
- the matching to be checked.public void pullInto(java.util.Collection<Tuple> collector, boolean flush)
Supplier
flush
- if true, flushing of messages is allowed during the pull, otherwise flushing is not allowedpublic void pullIntoWithTimestamp(java.util.Map<Tuple,Timestamp> collector, boolean flush)