Class TimelyMailbox
java.lang.Object
tools.refinery.interpreter.rete.network.mailbox.timely.TimelyMailbox
- All Implemented Interfaces:
Clearable,IGroupable,Mailbox
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ReteContainerprotected booleanprotected CommunicationGroupprotected final Receiver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddeliverAll(MessageSelector selector) Delivers all messages according to the given selector from this mailbox.Returns theCommunicationGroupof the receiver of this mailbox.Returns theReceiverof this mailbox.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
-
queue
-
receiver
-
container
-
group
-
fallThrough
protected boolean fallThrough
-
-
Constructor Details
-
TimelyMailbox
-
-
Method Details
-
getActiveQueue
-
isEmpty
public boolean isEmpty()Description copied from interface:MailboxReturns true if this mailbox is empty. -
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
-
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
-
toString
-
getReceiver
Description copied from interface:MailboxReturns theReceiverof this mailbox.- Specified by:
getReceiverin interfaceMailbox- Returns:
- the receiver
-
clear
public void clear() -
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
-