|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunsw.cse.mica.blackboard.transport.CompoundBlackboardTransport
public class CompoundBlackboardTransport
A blackboard transport that combines a BlackboardConnection and a BlackboardProtocolFactory and makes the necessary connections between them.
| Constructor Summary | |
|---|---|
CompoundBlackboardTransport(Blackboard bb,
BlackboardConnection connection,
BlackboardProtocolFactory protocolFactory)
|
|
| Method Summary | |
|---|---|
void |
agentConnectionOpened(BlackboardAgentConnection connection)
Tells the connection handler that a new connection has been opened. |
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 |
|---|
public CompoundBlackboardTransport(Blackboard bb,
BlackboardConnection connection,
BlackboardProtocolFactory protocolFactory)
| Method Detail |
|---|
public void open()
throws TransportException
BlackboardTransport
open in interface BlackboardTransportTransportException - If any problems occur while opening the transport.public boolean isOpen()
BlackboardTransport
isOpen in interface BlackboardTransport
public void close()
throws TransportException
BlackboardTransport
close in interface BlackboardTransportTransportException - If any problems occur while closing the transport.public void agentConnectionOpened(BlackboardAgentConnection connection)
BlackboardConnectionHandler
agentConnectionOpened in interface BlackboardConnectionHandlerconnection - the new connection
public void sendNewMob(java.lang.String agentName,
Mob mob)
BlackboardMessageSender
sendNewMob in interface BlackboardMessageSenderagentName - the name of the agent for which the message is intendedmob - the mob that has been written to the blackboard
public void sendDeletedMob(java.lang.String agentName,
Mob mob)
BlackboardMessageSender
sendDeletedMob in interface BlackboardMessageSenderagentName - the name of the agent for which the message is intendedmob - the mob that has been deleted from the blackboard
public void sendReplacedMob(java.lang.String agentName,
Mob oldMob,
Mob newMob)
BlackboardMessageSender
sendReplacedMob in interface BlackboardMessageSenderagentName - the name of the agent for which the message is intendedoldMob - the old value of the mobnewMob - the new value of the mobpublic void sendTypeManagerChanged(java.lang.String agentName)
BlackboardMessageSender
sendTypeManagerChanged in interface BlackboardMessageSenderagentName - the name of the agent for which the message is intended
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||