unsw.cse.mica.blackboard.transport
Interface BlackboardConnection

All Known Implementing Classes:
SSLBlackboardConnection, TCPBlackboardConnection

public interface BlackboardConnection

The server sider of a connection, which, when opened, can spawn agent-specific connections.

Author:
jhw

Method Summary
 void close()
          Closes the connection.
 boolean isOpen()
          Tests if the connection is open.
 void open()
          Opens the connection.
 void setAgentConnectionHandler(BlackboardConnectionHandler handler)
          Specify the BlackboardConnectionHandler to use for this connection
 

Method Detail

setAgentConnectionHandler

void setAgentConnectionHandler(BlackboardConnectionHandler handler)
Specify the BlackboardConnectionHandler to use for this connection

Parameters:
handler - the blackboard connection handler to be used by this connection

open

void open()
          throws TransportException
Opens the connection.

Throws:
TransportException - If any errors occur when opening the connection.

isOpen

boolean isOpen()
Tests if the connection is open.

Returns:
true if the connection is open else false

close

void close()
           throws TransportException
Closes the connection.

Throws:
TransportException - If any errors occur when closing the connection.