fipaos.agent.task
Class WaitTask

fipaos.agent.task.Task
  |
  +--fipaos.agent.task.WaitTask

public class WaitTask
extends Task

This task waits for a specified amount of time before invoking the done() method (and hence notifying its parent-task)


Fields inherited from class fipaos.agent.task.Task
_done, _id, _parent, _state, _timeout, _tm_ids

Constructor Summary
WaitTask(long time)
          Creates a new WaitTask with the given timeout.

Method Summary
 voidtimeoutWaitTask_DummyTask(Task t)
          Invoked when timeout occurs

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, notifyDone, notifyDone, notifyError, notifyMessageFailure, notifyMessageForEndedConversation, notifyStart, notifyTimeout, removeReferences, setContext, thisThreadFirstToIndicateDone, timeoutDFSearchTask, timeoutReached

Constructor Detail

WaitTask

public WaitTask(long time)
Creates a new WaitTask with the given timeout.
Parameters:
time - The time to wait after initialisation before informing the parent task (from initialisation - i.e. by using the TaskManager or Task newTask() method)
Method Detail

timeoutWaitTask_DummyTask

public void timeoutWaitTask_DummyTask(Task t)
Invoked when timeout occurs