|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlackboardProtocol
Represents the server side of a communications protocol with a single agent. It must parse the actions that arrive from the connection and forward them to its action handler. It is also required to accept agent messages and send them to the agent via the connection.
Method Summary | |
---|---|
void |
close()
Closes the protocol. |
java.lang.String |
getAgentName()
Gets the name of the agent the protocol is connected to. |
boolean |
isOpen()
Tests if the protocol is open. |
void |
open()
Opens the protocol. |
void |
setActionHandler(BlackboardActions handler)
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. |
Methods inherited from interface unsw.cse.mica.blackboard.transport.BlackboardAgentMessageSender |
---|
sendDeletedMob, sendNewMob, sendReplacedMob, sendTypeManagerChanged |
Method Detail |
---|
java.lang.String getAgentName()
void setActionHandler(BlackboardActions handler)
handler
- the action handlervoid setConnection(BlackboardAgentConnection connection)
connection
- the connection to the agentvoid open() throws TransportException
TransportException
- If any problems occur when opening the protocol.boolean isOpen()
void close() throws TransportException
TransportException
- If any problems occur when closing the protocol.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |