public abstract class SimpleReceiver extends BaseNode implements Receiver
| Modifier and Type | Field and Description |
|---|---|
protected Mailbox |
mailbox |
protected Supplier |
parent |
nodeId, reteContainer, tag, traceInfos| Constructor and Description |
|---|
SimpleReceiver(ReteContainer reteContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendParent(Supplier supplier)
appends a parent that will continuously send insert and revoke updates to this supplier
|
void |
assignTraceInfo(TraceInfo traceInfo)
assigns new traceability info to this node
|
void |
disconnectFromNetwork()
Disconnects this node from the network.
|
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 |
removeParent(Supplier supplier)
removes a parent
|
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString, toStringCoreclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbatchUpdate, updateacceptPropagatedTraceInfo, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTagpublic SimpleReceiver(ReteContainer reteContainer)
reteContainer - protected Mailbox instantiateMailbox()
Mailbox of this receiver.
Subclasses may override this method to provide their own mailbox implementation.public Mailbox getMailbox()
ReceiverMailbox of this receiver.getMailbox in interface 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 void disconnectFromNetwork()
public void assignTraceInfo(TraceInfo traceInfo)
NodeassignTraceInfo in interface NodeassignTraceInfo in class BaseNode