public abstract class SingleInputNode extends StandardNode implements Tunnel
Modifier and Type | Field and Description |
---|---|
protected Mailbox |
mailbox |
protected Supplier |
parent |
children
nodeId, reteContainer, tag, traceInfos
Constructor and Description |
---|
SingleInputNode(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 |
assignTraceInfo(TraceInfo traceInfo)
assigns new traceability info to this node
|
Mailbox |
getMailbox()
Returns the
Mailbox of this receiver. |
java.util.Collection<Supplier> |
getParents()
access active parent
|
protected Mailbox |
instantiateMailbox()
Instantiates the
Mailbox of this receiver. |
void |
propagatePullInto(java.util.Collection<Tuple> collector)
To be called by derived classes and ReteContainer.
|
void |
removeParent(Supplier supplier)
removes a parent
|
appendChild, constructIndex, getPulledContents, getReceivers, issueError, propagateUpdate, removeChild
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString, toStringCore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendChild, constructIndex, getPulledContents, getReceivers, pullInto, removeChild
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag
public SingleInputNode(ReteContainer reteContainer)
protected Mailbox instantiateMailbox()
Mailbox
of this receiver.
Subclasses may override this method to provide their own mailbox implementation.public Mailbox getMailbox()
Receiver
Mailbox
of this receiver.getMailbox
in interface Receiver
public void appendParent(Supplier supplier)
Receiver
appendParent
in interface Receiver
public void removeParent(Supplier supplier)
Receiver
removeParent
in interface Receiver
public void propagatePullInto(java.util.Collection<Tuple> collector)
public java.util.Collection<Supplier> getParents()
Receiver
getParents
in interface Receiver
public void assignTraceInfo(TraceInfo traceInfo)
Node
assignTraceInfo
in interface Node
assignTraceInfo
in class BaseNode