fipaos.tutorial
Class PingAgent.PingTask
fipaos.agent.task.Task
|
+--fipaos.tutorial.PingAgent.PingTask
- public class PingAgent.PingTask
- extends Task
This Task takes care of the process sending ping messages and waiting for
a response to/from another PingAgent2
Method Summary |
AgentID | getAgent() Just retreieves the name of the Agent that this ping's |
void | handleAgree(Conversation conv) Since we're using FIPA-Request for the ping, we must at least specify
this method to ensure a "not-understood" is not sent in response to an "agree" |
void | handleInform(Conversation conv) Invoked when an "inform" has been sent in response to our original "ping" |
Methods inherited from class fipaos.agent.task.Task |
doneDFSearchTask, errorDFSearchTask, getContext, getState, handleAcceptProposal, handleCfp, handleConfirm, handleDisconfirm, handleFailure, handleInformIf, handleInformRef, handleLateMessage, handleNotUnderstood, handlePropagate, handlePropose, handleProxy, handleQueryIf, handleQueryRef, handleRefuse, handleRejectProposal, handleRequest, handleRequestWhen, handleRequestWhenever, handleSubscribe, handleUndeliverableMessage, notify, notifyMessageFailure, notifyMessageForEndedConversation, setContext, timeoutDFSearchTask |
PingAgent.PingTask
public PingAgent.PingTask(AgentID agent)
- Constructor - just stores the name of the Agent to ping
getAgent
public AgentID getAgent()
- Just retreieves the name of the Agent that this ping's
handleAgree
public void handleAgree(Conversation conv)
- Since we're using FIPA-Request for the ping, we must at least specify
this method to ensure a "not-understood" is not sent in response to an "agree"
handleInform
public void handleInform(Conversation conv)
- Invoked when an "inform" has been sent in response to our original "ping"
to Class fipaos.ont.fipa.fipaman.AgentID- Name of the Agent to ping