|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface should be implemented by all CM implementations.
| Method Summary | |
Conversation |
addConversation(java.lang.String protocol)
Method to create a new conversation given a protcol, and add it to the active list |
boolean |
addProtocol(java.lang.String protocol_name,
java.lang.String protocol_defn)
Adds a new protocol to the CM - the CM will attempt to learn the protocol and will cache it for future use. |
Conversation |
getConversation(java.lang.String conversation_id)
Retrieves an active/previous Conversation that an Agent has had |
boolean |
hasActiveConversations()
Indicates whether an Agent has any conversations in active state |
boolean |
hasProtocol(java.lang.String protocol)
Indicates whether the specified protocol is already in the cache, i.e. |
void |
removeConversation(java.lang.String id)
Removes the given conversation from the ConversationManager - this may be necessary in order to end conversations that have no defined end-point |
| Methods inherited from interface fipaos.mts.MessageSender |
sendMessage, setMessageReceiver, shutdown |
| Methods inherited from interface fipaos.mts.MessageReceiver |
receiveMessage, setMessageSender |
| Method Detail |
public Conversation addConversation(java.lang.String protocol)
throws UnknownProtocolException
public Conversation getConversation(java.lang.String conversation_id)
throws InvalidConversationIDException
public boolean hasActiveConversations()
public void removeConversation(java.lang.String id)
throws InvalidConversationIDException
id - The conversation-id of the conversation to remove
public boolean addProtocol(java.lang.String protocol_name,
java.lang.String protocol_defn)
protocol_name - The name of the protocol to store (e.g. fipa-new-protocol)protocol_defn - The RDF definition of the protocolpublic boolean hasProtocol(java.lang.String protocol)
protocol - The protocol to check for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||