jade.tools.sniffer
Class MessageList

java.lang.Object
  |
  +--jade.tools.sniffer.MessageList

public class MessageList
extends java.lang.Object
implements java.io.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
MessageList()
           
 
Method Summary
 void addMessage(Message mess)
          Adds a sniffed message to the list.
 java.util.Iterator getMessages()
          Returns the messages vector
 void removeAllMessages()
          Clear all messages in the vector.
 void removeMessages(java.lang.String agentName)
          Removes a message from the vector
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageList

public MessageList()
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(java.lang.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 java.util.Iterator getMessages()
Returns the messages vector

size

public int size()