Class TimelyMailboxProxy
java.lang.Object
tools.refinery.interpreter.rete.network.communication.timely.TimelyMailboxProxy
- All Implemented Interfaces:
Clearable
,IGroupable
,Mailbox
A timely proxy for another
Mailbox
, which performs some preprocessing
on the differential timestamps before passing it on to the real recipient.- Since:
- 2.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
deliverAll
(MessageSelector selector) Delivers all messages according to the given selector from this mailbox.boolean
Returns theCommunicationGroup
of the receiver of this mailbox.Returns theReceiver
of this mailbox.int
hashCode()
boolean
isEmpty()
Returns true if this mailbox is empty.void
postMessage
(Direction direction, Tuple update, Timestamp timestamp) Posts a new message to this mailbox.void
Sets theCommunicationGroup
that the receiver of this mailbox is associated with.toString()
-
Field Details
-
preprocessor
-
wrapped
-
-
Constructor Details
-
TimelyMailboxProxy
-
-
Method Details
-
getWrappedMailbox
-
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
-
toString
-
clear
public void clear() -
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:
selector
- the message selector
-
getCurrentGroup
Description copied from interface:Mailbox
Returns theCommunicationGroup
of the receiver of this mailbox.- Specified by:
getCurrentGroup
in interfaceIGroupable
- Specified by:
getCurrentGroup
in interfaceMailbox
- Returns:
- the communication group
-
setCurrentGroup
Description copied from interface:Mailbox
Sets theCommunicationGroup
that the receiver of this mailbox is associated with.- Specified by:
setCurrentGroup
in interfaceIGroupable
- Specified by:
setCurrentGroup
in interfaceMailbox
- Parameters:
group
- the communication group
-
getReceiver
Description copied from interface:Mailbox
Returns theReceiver
of this mailbox.- Specified by:
getReceiver
in interfaceMailbox
- Returns:
- the receiver
-
isEmpty
public boolean isEmpty()Description copied from interface:Mailbox
Returns true if this mailbox is empty. -
equals
-
hashCode
public int hashCode()
-