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


Constructor Summary
PingAgent.PingTask(AgentID agent)
          Constructor - just stores the name of the Agent to ping

Method Summary
 AgentIDgetAgent()
          Just retreieves the name of the Agent that this ping's
 voidhandleAgree(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"
 voidhandleInform(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

Constructor Detail

PingAgent.PingTask

public PingAgent.PingTask(AgentID agent)
Constructor - just stores the name of the Agent to ping
Method Detail

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"

Association Links

to Class fipaos.ont.fipa.fipaman.AgentID

Name of the Agent to ping