Class SimpleReceiver
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.rete.network.BaseNode
-
- org.eclipse.viatra.query.runtime.rete.misc.SimpleReceiver
-
- Direct Known Subclasses:
Bag,CallbackNode,DeltaMonitor,RelationEvaluatorNode.BatchingReceiver
public abstract class SimpleReceiver extends BaseNode implements Receiver
-
-
Field Summary
Fields Modifier and Type Field Description protected Mailboxmailboxprotected Supplierparent-
Fields inherited from class org.eclipse.viatra.query.runtime.rete.network.BaseNode
nodeId, reteContainer, tag, traceInfos
-
-
Constructor Summary
Constructors Constructor Description SimpleReceiver(ReteContainer reteContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendParent(Supplier supplier)appends a parent that will continuously send insert and revoke updates to this suppliervoidassignTraceInfo(TraceInfo traceInfo)assigns new traceability info to this nodevoiddisconnectFromNetwork()Disconnects this node from the network.MailboxgetMailbox()Returns theMailboxof this receiver.java.util.Collection<Supplier>getParents()access active parentprotected MailboxinstantiateMailbox()Instantiates theMailboxof this receiver.voidremoveParent(Supplier supplier)removes a parent-
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, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTag
-
Methods inherited from interface org.eclipse.viatra.query.runtime.rete.network.Receiver
batchUpdate, update
-
-
-
-
Constructor Detail
-
SimpleReceiver
public SimpleReceiver(ReteContainer reteContainer)
- Parameters:
reteContainer-
-
-
Method Detail
-
instantiateMailbox
protected Mailbox instantiateMailbox()
Instantiates theMailboxof this receiver. Subclasses may override this method to provide their own mailbox implementation.- Returns:
- the mailbox
- Since:
- 2.0
-
getMailbox
public Mailbox getMailbox()
Description copied from interface:ReceiverReturns theMailboxof this receiver.- Specified by:
getMailboxin interfaceReceiver- Returns:
- the mailbox
-
appendParent
public void appendParent(Supplier supplier)
Description copied from interface:Receiverappends a parent that will continuously send insert and revoke updates to this supplier- Specified by:
appendParentin interfaceReceiver
-
removeParent
public void removeParent(Supplier supplier)
Description copied from interface:Receiverremoves a parent- Specified by:
removeParentin interfaceReceiver
-
getParents
public java.util.Collection<Supplier> getParents()
Description copied from interface:Receiveraccess active parent- Specified by:
getParentsin interfaceReceiver
-
disconnectFromNetwork
public void disconnectFromNetwork()
Disconnects this node from the network. Can be called publicly.
-
assignTraceInfo
public void assignTraceInfo(TraceInfo traceInfo)
Description copied from interface:Nodeassigns new traceability info to this node- Specified by:
assignTraceInfoin interfaceNode- Overrides:
assignTraceInfoin classBaseNode
-
-