fipaos.platform.df
Class DFRegistrationTask

fipaos.agent.task.Task
  |
  +--fipaos.platform.df.DFRegistrationTask

public class DFRegistrationTask
extends Task

This class provides the ability for an Agent to register with a DF.

It provides two mechanisms for passing back its results. Either the
Callback interface can be used by specifying an object which implements
this interface, or a parent-task can check the results that are passed.

The results are of the form:


Constructor Summary
DFRegistrationTask(String type)
          Create a Task to register with the DF, with the given service type & name
DFRegistrationTask(AgentID df, String type)
          Create a Task to register with the DF
DFRegistrationTask(DFAgentDescription dfad)
          Create a Task to register with the DF
DFRegistrationTask(AgentID df, DFAgentDescription dfad)
          Create a Task to register with the DF

Method Summary
 voidhandleAgree(Conversation conv)
          Deal with agree messages
 voidhandleFailure(Conversation conv)
          Deal with failure messages
 voidhandleInform(Conversation conv)
          Deal with failure messages
 voidhandleNotUnderstood(Conversation conv)
          Deal with not-understood messages
 voidhandleRefuse(Conversation conv)
          Deal with refuse messages
 voidstartTask()
          Invoked when task starts

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

Constructor Detail

DFRegistrationTask

public DFRegistrationTask(String type)
Create a Task to register with the DF, with the given service type & name

DFRegistrationTask

public DFRegistrationTask(AgentID df, String type)
Create a Task to register with the DF

DFRegistrationTask

public DFRegistrationTask(DFAgentDescription dfad)
Create a Task to register with the DF

DFRegistrationTask

public DFRegistrationTask(AgentID df, DFAgentDescription dfad)
Create a Task to register with the DF
Method Detail

handleAgree

public void handleAgree(Conversation conv)
Deal with agree messages

handleFailure

public void handleFailure(Conversation conv)
Deal with failure messages

handleInform

public void handleInform(Conversation conv)
Deal with failure messages

handleNotUnderstood

public void handleNotUnderstood(Conversation conv)
Deal with not-understood messages

handleRefuse

public void handleRefuse(Conversation conv)
Deal with refuse messages

startTask

public void startTask()
Invoked when task starts

Association Links

to Class fipaos.ont.fipa.fipaman.AgentID

AID of DF to register with

to Class fipaos.ont.fipa.fipaman.DFAgentDescription

DF description to register