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)
Constructor Summary |
WaitTask(long time) Creates a new WaitTask with the given timeout. |
Methods inherited from class fipaos.agent.task.Task |
doneDFSearchTask, endTask, 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 |
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)
timeoutWaitTask_DummyTask
public void timeoutWaitTask_DummyTask(Task t)
- Invoked when timeout occurs