@Deprecated class MessageBoxManager extends Object
| Constructor and Description |
|---|
MessageBoxManager()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
getNextMessage(AgentIdentifier id)
Deprecated.
Replies the next available message for the specified agent.
|
protected boolean |
hasMessage(AgentIdentifier id)
Deprecated.
Replies if a message is available for the specified agent.
|
(package private) void |
registerAgent(AgentIdentifier id)
Deprecated.
Create a message box for the specified agent
|
boolean |
storeMessage(Message m)
Deprecated.
Store a message inside a box.
|
(package private) void |
unregisterAgent(AgentIdentifier id)
Deprecated.
Delete the message box of the specified agent
|
void registerAgent(AgentIdentifier id)
id - is the identifier of the agent for which a box must be created.void unregisterAgent(AgentIdentifier id)
id - est l'identificateur de l'agentpublic boolean storeMessage(Message m)
The box depends on the message receiver.
m - is the message to store in the mailbox.true if the message was successfully stored, otherwise falsepublic Message getNextMessage(AgentIdentifier id)
This method consumes the message. It means that the message will never be obtain another time.
id - is the identifier of the agent for which the message was extracted.null if none availableprotected boolean hasMessage(AgentIdentifier id)
This method does not consume the message.
id - is the identifier of the agent for which the message was extracted.true if a message is available, otherwise falseCopyright © 2003-2013 Arakhnê.org Members. All rights reserved under LGPL license terms.