Package jade.tools.sniffer
Class MessageList
- java.lang.Object
-
- jade.tools.sniffer.MessageList
-
- All Implemented Interfaces:
Serializable
public class MessageList extends Object implements Serializable
This is the list of the sniffed messages displayed on the Message Canvas as blue arrows. Implements Serializable interface for saving object in the binary snapshot file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessage(Message mess)Adds a sniffed message to the list.IteratorgetMessages()Returns the messages vectorvoidremoveAllMessages()Clear all messages in the vector.voidremoveMessages(String agentName)Removes a message from the vectorintsize()
-
-
-
Method Detail
-
addMessage
public void addMessage(Message mess)
Adds a sniffed message to the list.- Parameters:
mess- sniffed message to put in the vector
-
removeMessages
public void removeMessages(String agentName)
Removes a message from the vector- Parameters:
agentName- name of the agent to remove from the vector
-
removeAllMessages
public void removeAllMessages()
Clear all messages in the vector.
-
getMessages
public Iterator getMessages()
Returns the messages vector
-
size
public int size()
-
-