Class SimpleReceiver
java.lang.Object
tools.refinery.interpreter.rete.network.BaseNode
tools.refinery.interpreter.rete.misc.SimpleReceiver
- Direct Known Subclasses:
Bag,CallbackNode,DeltaMonitor,RelationEvaluatorNode.BatchingReceiver
-
Field Summary
FieldsFields inherited from class tools.refinery.interpreter.rete.network.BaseNode
nodeId, reteContainer, tag, traceInfos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendParent(Supplier supplier) appends a parent that will continuously send insert and revoke updates to this suppliervoidassignTraceInfo(TraceInfo traceInfo) assigns new traceability info to this nodevoidDisconnects this node from the network.Returns theMailboxof this receiver.access active parentprotected MailboxInstantiates theMailboxof this receiver.voidremoveParent(Supplier supplier) removes a parentMethods inherited from class tools.refinery.interpreter.rete.network.BaseNode
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString, toStringCoreMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.interpreter.rete.network.Node
acceptPropagatedTraceInfo, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTagMethods inherited from interface tools.refinery.interpreter.rete.network.Receiver
batchUpdate, update
-
Field Details
-
parent
-
mailbox
- Since:
- 1.6
-
-
Constructor Details
-
SimpleReceiver
- Parameters:
reteContainer-
-
-
Method Details
-
instantiateMailbox
Instantiates theMailboxof this receiver. Subclasses may override this method to provide their own mailbox implementation.- Returns:
- the mailbox
- Since:
- 2.0
-
getMailbox
Description copied from interface:ReceiverReturns theMailboxof this receiver.- Specified by:
getMailboxin interfaceReceiver- Returns:
- the mailbox
-
appendParent
Description copied from interface:Receiverappends a parent that will continuously send insert and revoke updates to this supplier- Specified by:
appendParentin interfaceReceiver
-
removeParent
Description copied from interface:Receiverremoves a parent- Specified by:
removeParentin interfaceReceiver
-
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
Description copied from interface:Nodeassigns new traceability info to this node- Specified by:
assignTraceInfoin interfaceNode- Overrides:
assignTraceInfoin classBaseNode
-