Class ValueBinderFilterNode
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.rete.network.BaseNode
-
- org.eclipse.viatra.query.runtime.rete.network.StandardNode
-
- org.eclipse.viatra.query.runtime.rete.single.SingleInputNode
-
- org.eclipse.viatra.query.runtime.rete.single.FilterNode
-
- org.eclipse.viatra.query.runtime.rete.single.ValueBinderFilterNode
-
- All Implemented Interfaces:
NetworkStructureChangeSensitiveNode
,Node
,Receiver
,Supplier
,Tunnel
public class ValueBinderFilterNode extends FilterNode
A filter node that keeps only those tuples that contain a certain value at a certain position.
-
-
Field Summary
-
Fields inherited from class org.eclipse.viatra.query.runtime.rete.single.SingleInputNode
mailbox, parent
-
Fields inherited from class org.eclipse.viatra.query.runtime.rete.network.StandardNode
childMailboxes, children
-
Fields inherited from class org.eclipse.viatra.query.runtime.rete.network.BaseNode
nodeId, reteContainer, tag, traceInfos
-
-
Constructor Summary
Constructors Constructor Description ValueBinderFilterNode(ReteContainer reteContainer, int bindingIndex, java.lang.Object bindingValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check(Tuple ps)
Abstract filtering predicate.-
Methods inherited from class org.eclipse.viatra.query.runtime.rete.single.FilterNode
pullInto, pullIntoWithTimeline, update
-
Methods inherited from class org.eclipse.viatra.query.runtime.rete.single.SingleInputNode
appendParent, assignTraceInfo, getCommunicationTracker, getMailbox, getParents, instantiateMailbox, propagatePullInto, propagatePullIntoWithTimestamp, removeParent
-
Methods inherited from class org.eclipse.viatra.query.runtime.rete.network.StandardNode
appendChild, constructIndex, getChildMailboxes, getPulledContents, getReceivers, issueError, networkStructureChanged, propagateUpdate, removeChild
-
Methods inherited from class org.eclipse.viatra.query.runtime.rete.network.BaseNode
acceptPropagatedTraceInfo, 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 org.eclipse.viatra.query.runtime.rete.network.Node
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag
-
Methods inherited from interface org.eclipse.viatra.query.runtime.rete.network.Receiver
batchUpdate
-
Methods inherited from interface org.eclipse.viatra.query.runtime.rete.network.Supplier
appendChild, constructIndex, getPulledContents, getPulledContents, getReceivers, removeChild
-
-
-
-
Constructor Detail
-
ValueBinderFilterNode
public ValueBinderFilterNode(ReteContainer reteContainer, int bindingIndex, java.lang.Object bindingValue)
- Parameters:
reteContainer
-bindingIndex
- the position in the tuple that should be boundbindingValue
- the value to which the tuple has to be bound
-
-
Method Detail
-
check
public boolean check(Tuple ps)
Description copied from class:FilterNode
Abstract filtering predicate. Expected to be stateless.- Specified by:
check
in classFilterNode
- Parameters:
ps
- the matching to be checked.- Returns:
- true if and only if the parameter matching is allowed to pass through this node.
-
-