fipaos.tutorial
Class PingAgent.PingAllTask

fipaos.agent.task.Task
  |
  +--fipaos.tutorial.PingAgent.PingAllTask

public class PingAgent.PingAllTask
extends Task

This Task takes care of the process of spawning individual PingTask instances.


Constructor Summary
PingAgent.PingAllTask(List agents)
          Constructs a PingAllTask, which has the purpose of "pinging" the Agents specified in the given List.

Method Summary
 voiddonePingAgent_PingTask(Object result)
          Invoked when a PingTask completes succesfully
 voiderrorPingAgent_PingTask(Throwable th, Task t)
          Invoked when a PingTask sub-task has an error during its "initialisation" (i.e.
 voidtimeoutPingAgent_PingTask(Task t)
          Invoked when a PingTask times-out - this is bad because it generally means we haven't receieved a response fron the target PingAgent2

Methods inherited from class fipaos.agent.task.Task
doneDFSearchTask, errorDFSearchTask, getContext, getState, handleAcceptProposal, handleAgree, handleCfp, handleConfirm, handleDisconfirm, handleFailure, handleInform, handleInformIf, handleInformRef, handleLateMessage, handleNotUnderstood, handlePropagate, handlePropose, handleProxy, handleQueryIf, handleQueryRef, handleRefuse, handleRejectProposal, handleRequest, handleRequestWhen, handleRequestWhenever, handleSubscribe, handleUndeliverableMessage, notify, notifyMessageFailure, notifyMessageForEndedConversation, setContext, timeoutDFSearchTask

Constructor Detail

PingAgent.PingAllTask

public PingAgent.PingAllTask(List agents)
Constructs a PingAllTask, which has the purpose of "pinging" the Agents specified in the given List.
Method Detail

donePingAgent_PingTask

public void donePingAgent_PingTask(Object result)
Invoked when a PingTask completes succesfully

errorPingAgent_PingTask

public void errorPingAgent_PingTask(Throwable th, Task t)
Invoked when a PingTask sub-task has an error during its "initialisation" (i.e. within its startTask() method)

timeoutPingAgent_PingTask

public void timeoutPingAgent_PingTask(Task t)
Invoked when a PingTask times-out - this is bad because it generally means we haven't receieved a response fron the target PingAgent2

Association Links

to Class java.util.List

The Agents to be "pinged"