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 TypeMethodDescriptionvoid
appendParent
(Supplier supplier) appends a parent that will continuously send insert and revoke updates to this suppliervoid
assignTraceInfo
(TraceInfo traceInfo) assigns new traceability info to this nodevoid
Disconnects this node from the network.Returns theMailbox
of this receiver.access active parentprotected Mailbox
Instantiates theMailbox
of this receiver.void
removeParent
(Supplier supplier) removes a parentMethods inherited from class tools.refinery.interpreter.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 tools.refinery.interpreter.rete.network.Node
acceptPropagatedTraceInfo, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTag
Methods 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 theMailbox
of this receiver. Subclasses may override this method to provide their own mailbox implementation.- Returns:
- the mailbox
- Since:
- 2.0
-
getMailbox
Description copied from interface:Receiver
Returns theMailbox
of this receiver.- Specified by:
getMailbox
in interfaceReceiver
- Returns:
- the mailbox
-
appendParent
Description copied from interface:Receiver
appends a parent that will continuously send insert and revoke updates to this supplier- Specified by:
appendParent
in interfaceReceiver
-
removeParent
Description copied from interface:Receiver
removes a parent- Specified by:
removeParent
in interfaceReceiver
-
getParents
Description copied from interface:Receiver
access active parent- Specified by:
getParents
in interfaceReceiver
-
disconnectFromNetwork
public void disconnectFromNetwork()Disconnects this node from the network. Can be called publicly. -
assignTraceInfo
Description copied from interface:Node
assigns new traceability info to this node- Specified by:
assignTraceInfo
in interfaceNode
- Overrides:
assignTraceInfo
in classBaseNode
-