unsw.cse.mica.blackboard.transport
Class TCPBlackboardAgentConnection

java.lang.Object
  extended by unsw.cse.mica.blackboard.transport.TCPBlackboardAgentConnection
All Implemented Interfaces:
BlackboardAgentConnection

public class TCPBlackboardAgentConnection
extends java.lang.Object
implements BlackboardAgentConnection

The per-agent component of the TCPBlackboardConnection

Author:
jhw

Constructor Summary
TCPBlackboardAgentConnection(java.net.Socket socket)
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPBlackboardAgentConnection

public TCPBlackboardAgentConnection(java.net.Socket socket)
Method Detail

close

public void close()
           throws TransportException
Description copied from interface: BlackboardAgentConnection
Close the connection to this agent

Specified by:
close in interface BlackboardAgentConnection
Throws:
TransportException

getInputStream

public java.io.InputStream getInputStream()
                                   throws TransportException
Description copied from interface: BlackboardAgentConnection
Get the input stream associated with this connection

Specified by:
getInputStream in interface BlackboardAgentConnection
Returns:
the input stream associated with this connection
Throws:
TransportException - If the outputstream cannot be obtained for some reason

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws TransportException
Description copied from interface: BlackboardAgentConnection
Get the output stream associated with this agent

Specified by:
getOutputStream in interface BlackboardAgentConnection
Returns:
the output stream associated with this connection
Throws:
TransportException - If the outputstream cannot be obtained for some reason