unsw.cse.mica.blackboard.secure
Class SecureXMLOverTCPBlackboardTransport

java.lang.Object
  extended by unsw.cse.mica.blackboard.secure.SecureXMLOverTCPBlackboardTransport
All Implemented Interfaces:
BlackboardMessageSender, BlackboardTransport

public class SecureXMLOverTCPBlackboardTransport
extends java.lang.Object
implements BlackboardTransport


Constructor Summary
SecureXMLOverTCPBlackboardTransport(Blackboard bb, int port, BlackboardSecurityManager securityManager)
           
 
Method Summary
 void close()
          Closes the transport.
 boolean isOpen()
          Test if the transport has been opened.
 void open()
          Opens the transport.
 void sendDeletedMob(java.lang.String agentName, Mob mob)
          send a deletedMob message to the given agent
 void sendNewMob(java.lang.String agentName, Mob mob)
          send a newMob message to the given agent
 void sendReplacedMob(java.lang.String agentName, Mob oldMob, Mob newMob)
          send a replacedMob message to the given agent
 void sendTypeManagerChanged(java.lang.String agentName)
          send a typeManagerChanged message to the given agent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureXMLOverTCPBlackboardTransport

public SecureXMLOverTCPBlackboardTransport(Blackboard bb,
                                           int port,
                                           BlackboardSecurityManager securityManager)
Method Detail

close

public void close()
           throws TransportException
Description copied from interface: BlackboardTransport
Closes the transport.

Specified by:
close in interface BlackboardTransport
Throws:
TransportException - If any problems occur while closing the transport.

isOpen

public boolean isOpen()
Description copied from interface: BlackboardTransport
Test if the transport has been opened.

Specified by:
isOpen in interface BlackboardTransport
Returns:
true if the transport is open else false

open

public void open()
          throws TransportException
Description copied from interface: BlackboardTransport
Opens the transport.

Specified by:
open in interface BlackboardTransport
Throws:
TransportException - If any problems occur while opening the transport.

sendDeletedMob

public void sendDeletedMob(java.lang.String agentName,
                           Mob mob)
Description copied from interface: BlackboardMessageSender
send a deletedMob message to the given agent

Specified by:
sendDeletedMob in interface BlackboardMessageSender
Parameters:
agentName - the name of the agent for which the message is intended
mob - the mob that has been deleted from the blackboard

sendNewMob

public void sendNewMob(java.lang.String agentName,
                       Mob mob)
Description copied from interface: BlackboardMessageSender
send a newMob message to the given agent

Specified by:
sendNewMob in interface BlackboardMessageSender
Parameters:
agentName - the name of the agent for which the message is intended
mob - the mob that has been written to the blackboard

sendReplacedMob

public void sendReplacedMob(java.lang.String agentName,
                            Mob oldMob,
                            Mob newMob)
Description copied from interface: BlackboardMessageSender
send a replacedMob message to the given agent

Specified by:
sendReplacedMob in interface BlackboardMessageSender
Parameters:
agentName - the name of the agent for which the message is intended
oldMob - the old value of the mob
newMob - the new value of the mob

sendTypeManagerChanged

public void sendTypeManagerChanged(java.lang.String agentName)
Description copied from interface: BlackboardMessageSender
send a typeManagerChanged message to the given agent

Specified by:
sendTypeManagerChanged in interface BlackboardMessageSender
Parameters:
agentName - the name of the agent for which the message is intended