Package jade.lang.acl

Class ConversationList

  • All Implemented Interfaces:
    Serializable, Serializable

    public class ConversationList
    extends Object
    implements Serializable
    This class represents a list of conversations that an agent is currently carrying out and allows creating a MessageTemplate that matches only messages that do not belong to any of these conversations.
    See Also:
    Serialized Form
    • Field Detail

      • myAgent

        protected Agent myAgent
      • cnt

        protected int cnt
    • Constructor Detail

      • ConversationList

        public ConversationList​(Agent a)
        Construct a ConversationList to be used inside a given agent.
    • Method Detail

      • registerConversation

        public String registerConversation()
        Register a conversation creating a new unique ID.
      • registerConversation

        public void registerConversation​(String convId)
        Register a conversation with a given ID.
      • deregisterConversation

        public void deregisterConversation​(String convId)
        Deregister a conversation with a given ID.
      • clear

        public void clear()
        Deregister all conversations.
      • getMessageTemplate

        public MessageTemplate getMessageTemplate()
        Return a template that matches only messages that do not belong to any of the conversations in this list.
      • createConversationId

        protected String createConversationId()