|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentTransport
Manages all communications between an agent and the blackboard.
The AgentTransport is is agent's interface to the blackboard. It encapsulates all the actions available to the agent, along with a couple of additional support methods. A class implementing the transport is responsible for ensuring that the actions get to the blackboard and that the replies from the blackboard are processed correctly. It must also ensure that messages from the blackboard are also handled correctly and forwarded to the agent.
AgentTransport is an interface, as it is possible several different agent transports could be defined.
Method Summary | |
---|---|
java.lang.String |
getAgentName()
Get the name that was provided for this agent at connection. |
boolean |
isConnected()
Check whether the transport is connected to the blackboard or not. |
void |
setMessageHandler(MessageHandler handler)
Tell the transport to use a new message handler. |
Methods inherited from interface unsw.cse.mica.agent.AgentActions |
---|
connect, deleteMob, disconnect, getTypeManager, mobSearch, readMob, register, replaceMob, unregister, writeMob |
Method Detail |
---|
boolean isConnected()
java.lang.String getAgentName()
void setMessageHandler(MessageHandler handler)
handler
- the new message handler for the transport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |