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 ReteContainer
protected boolean
protected CommunicationGroup
protected final Receiver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
deliverAll
(MessageSelector selector) Delivers all messages according to the given selector from this mailbox.Returns theCommunicationGroup
of the receiver of this mailbox.Returns theReceiver
of this mailbox.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
-
queue
-
receiver
-
container
-
group
-
fallThrough
protected boolean fallThrough
-
-
Constructor Details
-
TimelyMailbox
-
-
Method Details
-
getActiveQueue
-
isEmpty
public boolean isEmpty()Description copied from interface:Mailbox
Returns true if this mailbox is empty. -
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:
selector
- the message selector
-
toString
-
getReceiver
Description copied from interface:Mailbox
Returns theReceiver
of this mailbox.- Specified by:
getReceiver
in interfaceMailbox
- Returns:
- the receiver
-
clear
public void clear() -
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
-