unsw.cse.mica.blackboard.transport
Interface BlackboardAgentConnection

All Known Implementing Classes:
SSLBlackboardAgentConnection, TCPBlackboardAgentConnection

public interface BlackboardAgentConnection

Represents the server side of a connection to a specific agent.

Author:
jhw

Method Summary
 void close()
          Close the connection to this agent
 java.io.InputStream getInputStream()
          Get the input stream associated with this connection
 java.io.OutputStream getOutputStream()
          Get the output stream associated with this agent
 

Method Detail

close

void close()
           throws TransportException
Close the connection to this agent

Throws:
TransportException

getInputStream

java.io.InputStream getInputStream()
                                   throws TransportException
Get the input stream associated with this connection

Returns:
the input stream associated with this connection
Throws:
TransportException - If the outputstream cannot be obtained for some reason

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws TransportException
Get the output stream associated with this agent

Returns:
the output stream associated with this connection
Throws:
TransportException - If the outputstream cannot be obtained for some reason