fipaos.agent.task
Class DFSearchTask

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

public class DFSearchTask
extends Task

This task class handles agent searches of DFs.


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

Constructor Summary
DFSearchTask(DFAgentDescription desc)
          Constructs the DF search task object which will perform a search using the given description
DFSearchTask(DFAgentDescription df_desc, SearchConstraints constraints)
          Searches the local platform DF for any agents matching the specified DF description using the specified search constraint.
DFSearchTask(DFAgentDescription df_desc, boolean federated)
          Searches the local platform DF for any agents matching the specified DF description.
DFSearchTask(String df, DFAgentDescription df_desc, boolean federated)
          Searches the specified DF for any agents matching the specified DF description.
DFSearchTask(String df, DFAgentDescription df_desc, SearchConstraints constraints, boolean federated)
          Searches the specified DF for any agents matching the specified DF description using the specified search contraint.

Method Summary
 voidhandleAgree(Conversation conv)
          Handles incoming agree messages.
 voidhandleFailure(Conversation conv)
          Handles incoming failure messages.
 voidhandleInform(Conversation conv)
          Handles incoming inform messages.
 voidhandleNotUnderstood(Conversation conv)
          Handles incoming not-understood messages.
 voidhandleRefuse(Conversation conv)
          Handles incoming refuse messages.

Methods inherited from class fipaos.agent.task.Task
doneDFSearchTask, errorDFSearchTask, getContext, getState, handleAcceptProposal, handleCfp, handleConfirm, handleDisconfirm, handleInformIf, handleInformRef, handleLateMessage, handlePropagate, handlePropose, handleProxy, handleQueryIf, handleQueryRef, handleRejectProposal, handleRequest, handleRequestWhen, handleRequestWhenever, handleSubscribe, handleUndeliverableMessage, notify, notifyDone, notifyDone, notifyError, notifyMessageFailure, notifyMessageForEndedConversation, notifyStart, notifyTimeout, removeReferences, setContext, thisThreadFirstToIndicateDone, timeoutDFSearchTask, timeoutReached

Constructor Detail

DFSearchTask

public DFSearchTask(DFAgentDescription desc)
Constructs the DF search task object which will perform a search using the given description
Parameters:
desc - Description of the Agent to search for

DFSearchTask

public DFSearchTask(DFAgentDescription df_desc, SearchConstraints constraints)
Searches the local platform DF for any agents matching the specified DF description using the specified search constraint. This method will use the following default search parameters:
Parameters:
df_desc - The DF description to search for
constraint - The search constraint

DFSearchTask

public DFSearchTask(DFAgentDescription df_desc, boolean federated)
Searches the local platform DF for any agents matching the specified DF description. The search is optionally federated across other DFs. This method will use the following default search parameters:
Parameters:
df_desc - The DF description to search for
federated - Flag to signal whether this search should be federated or not

DFSearchTask

public DFSearchTask(String df, DFAgentDescription df_desc, boolean federated)
Searches the specified DF for any agents matching the specified DF description. The search is optionally federated across other DFs. This method will use the following default search parameters:
Parameters:
df - The DF to search
df_desc - The DF description to search for
federated - Flag to signal whether this search should be federated or not

DFSearchTask

public DFSearchTask(String df, DFAgentDescription df_desc, SearchConstraints constraints, boolean federated)
Searches the specified DF for any agents matching the specified DF description using the specified search contraint. The search is optionally federated across other DFs.
Parameters:
df - The DF to search
df_desc - The DF description to search for
constraint - The search constraint
federated - Flag to signal whether this search should be federated or not
Method Detail

handleAgree

public void handleAgree(Conversation conv)
Handles incoming agree messages. These messages are ignored.
Parameters:
conv - The conversation containint the incoming message

handleFailure

public void handleFailure(Conversation conv)
Handles incoming failure messages. An empty array of DF results is returned to the calling task.
Parameters:
conv - The conversation containint the incoming message

handleInform

public void handleInform(Conversation conv)
Handles incoming inform messages. The content of the inform message is parsed for DF search results, which are then passed to the calling task via a callback method.
Parameters:
conv - The conversation containint the incoming message

handleNotUnderstood

public void handleNotUnderstood(Conversation conv)
Handles incoming not-understood messages. An empty array of DF results is returned to the calling task.
Parameters:
conv - The conversation containint the incoming message

handleRefuse

public void handleRefuse(Conversation conv)
Handles incoming refuse messages. An empty array of DF results is returned to the calling task.
Parameters:
conv - The conversation containint the incoming message

Association Links

to Class fipaos.agent.AgentList

to Class java.lang.String

to Class fipaos.ont.fipa.fipaman.DFAgentDescription

to Class java.lang.String

to Class fipaos.ont.fipa.fipaman.SearchConstraints