public class ConversationList extends java.lang.Object implements Serializable
MessageTemplate
that matches only messages that do not belong to any of these
conversations.Modifier and Type | Field and Description |
---|---|
protected int |
cnt |
protected Agent |
myAgent |
Constructor and Description |
---|
ConversationList(Agent a)
Construct a ConversationList to be used inside a given agent.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString() |
protected Agent myAgent
protected int cnt
public ConversationList(Agent a)
public java.lang.String registerConversation()
public void registerConversation(java.lang.String convId)
public void deregisterConversation(java.lang.String convId)
public void clear()
public MessageTemplate getMessageTemplate()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String createConversationId()