unsw.cse.mica.agent.transport
Interface AgentProtocol

All Superinterfaces:
AgentActions
All Known Implementing Classes:
AbstractAgentProtocol, SecureXMLAgentProtocol, XMLAgentProtocol

public interface AgentProtocol
extends AgentActions

The AgentProtocol is separate from the AgentTransport to allow arbitrary connections ("transports" in the OSI networking model) to support arbitrary protocols ("sessions" in the OSI networking model)

Author:
jhw

Method Summary
 boolean isConnected()
          See if the protocol is currently connected?
 void setConnection(AgentConnection connection)
          Tell the protocol which underlying connection to use
 void setMessageHandler(MessageHandler messages)
          Set the object to inform when new messages arrive from the blackboard
 
Methods inherited from interface unsw.cse.mica.agent.AgentActions
connect, deleteMob, disconnect, getTypeManager, mobSearch, readMob, register, replaceMob, unregister, writeMob
 

Method Detail

setMessageHandler

void setMessageHandler(MessageHandler messages)
Set the object to inform when new messages arrive from the blackboard


setConnection

void setConnection(AgentConnection connection)
Tell the protocol which underlying connection to use

Parameters:
connection -

isConnected

boolean isConnected()
See if the protocol is currently connected?

Returns:
true if the protocol is connected, false otherwise