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.
- Creates a PingTask instance for each Agent in the list
given in its constructor
- Waits for each PingTask to complete, and adjusts the list of
known Agent appropriately (i.e. if an Agent fails to respond within
a certain time-out, it will be removed).
Constructor Summary |
PingAgent.PingAllTask(List agents) Constructs a PingAllTask, which has the purpose of "pinging" the
Agents specified in the given List. |
Method Summary |
void | donePingAgent_PingTask(Object result) Invoked when a PingTask completes succesfully |
void | errorPingAgent_PingTask(Throwable th, Task t) Invoked when a PingTask sub-task has an error during its "initialisation"
(i.e. |
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 |
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 |
PingAgent.PingAllTask
public PingAgent.PingAllTask(List agents)
- Constructs a PingAllTask, which has the purpose of "pinging" the
Agents specified in the given List.
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
to Class java.util.List- The Agents to be "pinged"