Class 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 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​(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()