Class UpdateSplittingMailbox
java.lang.Object
tools.refinery.interpreter.rete.network.mailbox.timeless.AbstractUpdateSplittingMailbox<DefaultMessageIndexer,Receiver>
tools.refinery.interpreter.rete.network.mailbox.timeless.UpdateSplittingMailbox
- All Implemented Interfaces:
Clearable
,IGroupable
,AdaptableMailbox
,Mailbox
public class UpdateSplittingMailbox
extends AbstractUpdateSplittingMailbox<DefaultMessageIndexer,Receiver>
implements AdaptableMailbox
A mailbox implementation that splits updates messages according to the standard subset ordering into anti-monotonic
(deletions) and monotonic (insertions) updates.
- Since:
- 2.0
-
Field Summary
FieldsFields inherited from class tools.refinery.interpreter.rete.network.mailbox.timeless.AbstractUpdateSplittingMailbox
antiMonotoneBuffer, antiMonotoneQueue, container, deliveringAntiMonotone, deliveringMonotone, group, monotoneBuffer, monotoneQueue, receiver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deliverAll
(MessageSelector kind) Delivers all messages according to the given selector from this mailbox.void
postMessage
(Direction direction, Tuple update, Timestamp timestamp) Posts a new message to this mailbox.void
setAdapter
(Mailbox adapter) toString()
Methods inherited from class tools.refinery.interpreter.rete.network.mailbox.timeless.AbstractUpdateSplittingMailbox
clear, getActiveAntiMonotoneQueue, getActiveMonotoneQueue, getCurrentGroup, getReceiver, isEmpty, setCurrentGroup, swapAndClearAntiMonotone, swapAndClearMonotone
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.mailbox.Mailbox
getCurrentGroup, getReceiver, isEmpty, setCurrentGroup
-
Field Details
-
adapter
-
-
Constructor Details
-
UpdateSplittingMailbox
-
-
Method Details
-
getAdapter
- Specified by:
getAdapter
in interfaceAdaptableMailbox
-
setAdapter
- Specified by:
setAdapter
in interfaceAdaptableMailbox
-
postMessage
Description copied from interface:Mailbox
Posts a new message to this mailbox.- Specified by:
postMessage
in interfaceMailbox
- Parameters:
direction
- the direction of the updateupdate
- the update element
-
deliverAll
Description copied from interface:Mailbox
Delivers all messages according to the given selector from this mailbox. The selector can also be null. In this case, no special separation is expected between the messages.- Specified by:
deliverAll
in interfaceMailbox
- Parameters:
kind
- the message selector
-
toString
-