fipaos.platform.ams
Class SearchTask

java.lang.Object
  |
  +--fipaos.agent.task.Task
        |
        +--fipaos.platform.ams.AMSTask
              |
              +--fipaos.platform.ams.SearchTask

public class SearchTask
extends AMSTask

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


Field Summary
static long FED_TIMEOUT
          Timeout in milliseconds for federated searches
 
Fields inherited from class fipaos.platform.ams.AMSTask
_acl, _ama, _ams_db, _conv
 
Fields inherited from class fipaos.agent.task.Task
_children, _lock, _owner, _tm
 
Constructor Summary
SearchTask(Conversation conv, AgentManagementAction ama, Database db)
          This is the constructor for the SearchTask.
 
Method Summary
 void startTask()
          This is the initial method invoked by the task.
 
Methods inherited from class fipaos.platform.ams.AMSTask
clearMessageFlags, deregister, getRegistered, isRegistered, isRegistered, register, sendAgree, sendFailure, sendInformDone, sendInformResult, sendPlatformProfile, sendRefuse
 
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
 

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)
This is the constructor for the SearchTask.
Parameters:
conv - Conversation
ama - Agent Management Action
db - Database
Method Detail

startTask

public void startTask()
This is the initial method invoked by the task.
Overrides:
startTask in class Task