fipaos.agent.task
Class WaitTask

java.lang.Object
  |
  +--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
_children, _lock, _owner, _tm
 
Constructor Summary
WaitTask(long time)
          Creates a new WaitTask with the given timeout.
 
Method Summary
protected  void startTask()
          Invoked after this Task has been initialised - starts the countdown!
 void timeoutWaitTask_DummyTask(Task t)
          Invoked when timeout occurs
 
Methods inherited from class fipaos.agent.task.Task
DFSearchResults, done, done, doneDFSearchTask, errorDFSearchTask, forward, forward, getContext, getNewConversation, getState, handleAcceptProposal, handleAgree, handleCfp, handleConfirm, handleDisconfirm, handleFailure, handleInform, handleInformIf, handleInformRef, handleLateMessage, handleNotUnderstood, handleOther, handlePropagate, handlePropose, handleProxy, handleQueryIf, handleQueryRef, handleRefuse, handleRejectProposal, handleRequest, handleRequestWhen, handleRequestWhenever, handleSubscribe, handleUndeliverableMessage, newTask, newTask, newTask, newTask, newTask, newTask, newTask, newTask, notify, notifyDone, notifyError, notifyMessageFailure, notifyMessageForEndedConversation, notifyTimeout, searchDF, searchDF, searchDF, searchDF, searchDF, sendNotUnderstood, setContext, timeoutDFSearchTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

startTask

protected void startTask()
Invoked after this Task has been initialised - starts the countdown!
Overrides:
startTask in class Task

timeoutWaitTask_DummyTask

public void timeoutWaitTask_DummyTask(Task t)
Invoked when timeout occurs