jade.lang.acl
Class ConversationList

java.lang.Object
  |
  +--jade.lang.acl.ConversationList

public class ConversationList
extends java.lang.Object

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.


Field Summary
protected  int cnt
           
protected  Agent myAgent
           
 
Constructor Summary
ConversationList(Agent a)
          Construct a ConversationList to be used inside a given agent.
 
Method Summary
 void clear()
          Deregister all conversations.
protected  java.lang.String createConversationId()
           
 void deregisterConversation(java.lang.String convId)
          Deregister a conversation with a given ID.
 MessageTemplate getMessageTemplate()
          Return a template that matches only messages that do not belong to any of the conversations in this list.
 java.lang.String registerConversation()
          Register a conversation creating a new unique ID.
 void registerConversation(java.lang.String convId)
          Register a conversation with a given ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 java.lang.String registerConversation()
Register a conversation creating a new unique ID.


registerConversation

public void registerConversation(java.lang.String convId)
Register a conversation with a given ID.


deregisterConversation

public void deregisterConversation(java.lang.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 java.lang.String createConversationId()


JADE