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 TypeMethodDescriptionvoidclear()voiddeliverAll(MessageSelector selector) Delivers all messages according to the given selector from this mailbox.booleanReturns theCommunicationGroupof the receiver of this mailbox.Returns theReceiverof this mailbox.inthashCode()booleanisEmpty()Returns true if this mailbox is empty.voidpostMessage(Direction direction, Tuple update, Timestamp timestamp) Posts a new message to this mailbox.voidSets theCommunicationGroupthat the receiver of this mailbox is associated with.toString()
-
Field Details
-
preprocessor
-
wrapped
-
-
Constructor Details
-
TimelyMailboxProxy
-
-
Method Details
-
getWrappedMailbox
-
postMessage
Description copied from interface:MailboxPosts a new message to this mailbox.- Specified by:
postMessagein interfaceMailbox- Parameters:
direction- the direction of the updateupdate- the update element
-
toString
-
clear
public void clear() -
deliverAll
Description copied from interface:MailboxDelivers 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:
deliverAllin interfaceMailbox- Parameters:
selector- the message selector
-
getCurrentGroup
Description copied from interface:MailboxReturns theCommunicationGroupof the receiver of this mailbox.- Specified by:
getCurrentGroupin interfaceIGroupable- Specified by:
getCurrentGroupin interfaceMailbox- Returns:
- the communication group
-
setCurrentGroup
Description copied from interface:MailboxSets theCommunicationGroupthat the receiver of this mailbox is associated with.- Specified by:
setCurrentGroupin interfaceIGroupable- Specified by:
setCurrentGroupin interfaceMailbox- Parameters:
group- the communication group
-
getReceiver
Description copied from interface:MailboxReturns theReceiverof this mailbox.- Specified by:
getReceiverin interfaceMailbox- Returns:
- the receiver
-
isEmpty
public boolean isEmpty()Description copied from interface:MailboxReturns true if this mailbox is empty. -
equals
-
hashCode
public int hashCode()
-