Package jade.lang.acl
Class ConversationList
- java.lang.Object
-
- jade.lang.acl.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 aMessageTemplatethat matches only messages that do not belong to any of these conversations.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConversationList(Agent a)Construct a ConversationList to be used inside a given agent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Deregister all conversations.protected StringcreateConversationId()voidderegisterConversation(String convId)Deregister a conversation with a given ID.MessageTemplategetMessageTemplate()Return a template that matches only messages that do not belong to any of the conversations in this list.StringregisterConversation()Register a conversation creating a new unique ID.voidregisterConversation(String convId)Register a conversation with a given ID.StringtoString()
-
-
-
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()
-
-