public interface MessageQueue
Agent.createMessageQueue()
Modifier and Type | Method and Description |
---|---|
void |
addFirst(ACLMessage msg)
Add a message to the front of this queue.
|
void |
addLast(ACLMessage msg)
Add a message to the end of this queue.
|
void |
copyTo(List list)
Copy all messages to a given list.
|
int |
getMaxSize()
Return the maximum size of this queue.
|
boolean |
isEmpty()
Return true when this queue contains no messages.
|
ACLMessage |
receive(MessageTemplate pattern)
Return and remove the first message that matches the
specified message template.
|
void |
setMaxSize(int newSize)
Set the maximum size of this queue.
|
int |
size() |
void addFirst(ACLMessage msg)
void addLast(ACLMessage msg)
int getMaxSize()
void setMaxSize(int newSize)
boolean isEmpty()
ACLMessage receive(MessageTemplate pattern)
void copyTo(List list)
int size()