|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunsw.cse.mica.blackboard.XMLOverTCPBlackboardTransport
public class XMLOverTCPBlackboardTransport
A wrapper class to simplify the task of creating a TCP + XML blackboard transport All the methods simply delegate to an internal transport class.a
Constructor Summary | |
---|---|
XMLOverTCPBlackboardTransport(Blackboard bb,
int port)
|
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 |
---|
public XMLOverTCPBlackboardTransport(Blackboard bb, int port)
Method Detail |
---|
public void sendNewMob(java.lang.String agentName, Mob mob)
BlackboardMessageSender
sendNewMob
in interface BlackboardMessageSender
agentName
- the name of the agent for which the message is intendedmob
- the mob that has been written to the blackboardpublic void sendDeletedMob(java.lang.String agentName, Mob mob)
BlackboardMessageSender
sendDeletedMob
in interface BlackboardMessageSender
agentName
- the name of the agent for which the message is intendedmob
- the mob that has been deleted from the blackboardpublic void sendReplacedMob(java.lang.String agentName, Mob oldMob, Mob newMob)
BlackboardMessageSender
sendReplacedMob
in interface BlackboardMessageSender
agentName
- 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 BlackboardMessageSender
agentName
- the name of the agent for which the message is intendedpublic void open() throws TransportException
BlackboardTransport
open
in interface BlackboardTransport
TransportException
- 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 BlackboardTransport
TransportException
- If any problems occur while closing the transport.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |