|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunsw.cse.mica.blackboard.transport.XMLBlackboardProtocol
public class XMLBlackboardProtocol
The per-agent component of blackboard side of the XML protocol.
| Constructor Summary | |
|---|---|
XMLBlackboardProtocol()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the protocol. |
void |
connect(java.lang.String proposedName)
|
void |
deleteMob(java.lang.String mobName)
|
void |
disconnect()
|
java.lang.String |
getAgentName()
Gets the name of the agent the protocol is connected to. |
boolean |
isOpen()
Tests if the protocol is open. |
void |
mobSearch(java.lang.String query)
|
void |
open()
Opens the protocol. |
void |
readMob(java.lang.String mobName)
|
void |
register(java.lang.String mobType)
|
void |
replaceMob(Mob mob)
|
void |
run()
|
void |
sendDeletedMob(Mob mob)
Send a deleted mob message to the specific agent |
void |
sendNewMob(Mob mob)
Send a new mob message to the specific agent |
void |
sendReplacedMob(Mob oldMob,
Mob newMob)
Send a deleted mob message to the specific agent |
void |
sendTypeManagerChanged()
Send a typeManagerChanged message to the specific agent |
void |
setActionHandler(BlackboardActions actions)
Sets the action handler that will peform the actions recieved by the protocol. |
void |
setConnection(BlackboardAgentConnection connection)
Sets the connection the protocol will use to communicate with the agent. |
void |
typeManager()
|
void |
unregister(java.lang.String mobType)
|
void |
writeMob(Mob mob)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLBlackboardProtocol()
| Method Detail |
|---|
public void setActionHandler(BlackboardActions actions)
BlackboardProtocol
setActionHandler in interface BlackboardProtocolactions - the action handlerpublic void setConnection(BlackboardAgentConnection connection)
BlackboardProtocol
setConnection in interface BlackboardProtocolconnection - the connection to the agentpublic java.lang.String getAgentName()
BlackboardProtocol
getAgentName in interface BlackboardProtocol
public void open()
throws TransportException
BlackboardProtocol
open in interface BlackboardProtocolTransportException - If any problems occur when opening the protocol.public boolean isOpen()
BlackboardProtocol
isOpen in interface BlackboardProtocolpublic void close()
BlackboardProtocol
close in interface BlackboardProtocolpublic void run()
run in interface java.lang.Runnablepublic void sendNewMob(Mob mob)
BlackboardAgentMessageSender
sendNewMob in interface BlackboardAgentMessageSenderpublic void sendDeletedMob(Mob mob)
BlackboardAgentMessageSender
sendDeletedMob in interface BlackboardAgentMessageSender
public void sendReplacedMob(Mob oldMob,
Mob newMob)
BlackboardAgentMessageSender
sendReplacedMob in interface BlackboardAgentMessageSenderpublic void sendTypeManagerChanged()
BlackboardAgentMessageSender
sendTypeManagerChanged in interface BlackboardAgentMessageSenderpublic void connect(java.lang.String proposedName)
public void disconnect()
public void typeManager()
public void register(java.lang.String mobType)
public void unregister(java.lang.String mobType)
public void readMob(java.lang.String mobName)
public void writeMob(Mob mob)
public void replaceMob(Mob mob)
public void deleteMob(java.lang.String mobName)
public void mobSearch(java.lang.String query)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||