fipaos.platform.df
Class SearchTask

java.lang.Object
  |
  +--fipaos.agent.task.Task
        |
        +--fipaos.platform.df.DFTask
              |
              +--fipaos.platform.df.SearchTask

public class SearchTask
extends DFTask

This class encapsulates the local search mechanisms of the DF, and coordinates federated searches where appropriate


Field Summary
static long FED_TIMEOUT
          Timeout in milliseconds for federated searches
 
Fields inherited from class fipaos.platform.df.DFTask
_acl, _ama, _conv, _df_db
 
Fields inherited from class fipaos.agent.task.Task
_children, _lock, _owner, _tm
 
Constructor Summary
SearchTask(Conversation conv, AgentManagementAction ama, Database db)
           
 
Method Summary
 void doneDFSearchTask(java.lang.Object result)
          Callback method to indicate that a DFSearchTask has completed.
 void errorDFSearchTask(Task task, java.lang.Throwable t)
          Callback method to indicate that a DFSearchTask has failed.
 void startTask()
          Invoked immediately after the task has been initialised by newTask()
 void timeoutDFSearchTask(Task task)
          Callback method to indicate that a DFSearchTask has failed.
 
Methods inherited from class fipaos.platform.df.DFTask
deregister, getRegistered, isRegistered, isRegistered, register, sendAgree, sendFailure, sendInformDone, sendInformResult, sendRefuse
 
Methods inherited from class fipaos.agent.task.Task
DFSearchResults, done, done, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FED_TIMEOUT

public static final long FED_TIMEOUT
Timeout in milliseconds for federated searches
Constructor Detail

SearchTask

public SearchTask(Conversation conv,
                  AgentManagementAction ama,
                  Database db)
Method Detail

startTask

public void startTask()
Description copied from class: Task
Invoked immediately after the task has been initialised by newTask()
Overrides:
startTask in class Task

doneDFSearchTask

public void doneDFSearchTask(java.lang.Object result)
Description copied from class: Task
Callback method to indicate that a DFSearchTask has completed. This simply invokes DFSearchResults unless it is overridden.
Overrides:
doneDFSearchTask in class Task
Following copied from class: fipaos.agent.task.Task
Parameters:
result - The result of the DF-search

errorDFSearchTask

public void errorDFSearchTask(Task task,
                              java.lang.Throwable t)
Description copied from class: Task
Callback method to indicate that a DFSearchTask has failed. This simply invokes DFSearchResults unless it is overridden.
Overrides:
errorDFSearchTask in class Task

timeoutDFSearchTask

public void timeoutDFSearchTask(Task task)
Description copied from class: Task
Callback method to indicate that a DFSearchTask has failed. This simply invokes DFSearchResults unless it is overridden.
Overrides:
timeoutDFSearchTask in class Task
Following copied from class: fipaos.agent.task.Task
Parameters:
t - The DFSearchTask that has timed-out
exception -