fipaos.platform.df
Class DFRegistrationTask

java.lang.Object
  |
  +--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:


Fields inherited from class fipaos.agent.task.Task
_children, _lock, _owner, _tm
 
Constructor Summary
DFRegistrationTask(AgentID df, DFAgentDescription dfad)
          Create a Task to register with the DF
DFRegistrationTask(AgentID df, java.lang.String type)
          Create a Task to register with the DF
DFRegistrationTask(DFAgentDescription dfad)
          Create a Task to register with the DF
DFRegistrationTask(java.lang.String type)
          Create a Task to register with the DF, with the given service type & name
 
Method Summary
 void handleAgree(Conversation conv)
          Deal with agree messages
 void handleFailure(Conversation conv)
          Deal with failure messages
 void handleInform(Conversation conv)
          Deal with failure messages
 void handleNotUnderstood(Conversation conv)
          Deal with not-understood messages
 void handleRefuse(Conversation conv)
          Deal with refuse messages
 void startTask()
          Invoked when task starts
 
Methods inherited from class fipaos.agent.task.Task
DFSearchResults, done, done, doneDFSearchTask, errorDFSearchTask, forward, forward, getContext, getNewConversation, getState, handleAcceptProposal, handleCfp, handleConfirm, handleDisconfirm, handleInformIf, handleInformRef, handleLateMessage, handleOther, handlePropagate, handlePropose, handleProxy, handleQueryIf, handleQueryRef, 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
 

Constructor Detail

DFRegistrationTask

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

DFRegistrationTask

public DFRegistrationTask(AgentID df,
                          java.lang.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

startTask

public void startTask()
Invoked when task starts
Overrides:
startTask in class Task

handleNotUnderstood

public void handleNotUnderstood(Conversation conv)
Deal with not-understood messages
Overrides:
handleNotUnderstood in class Task

handleRefuse

public void handleRefuse(Conversation conv)
Deal with refuse messages
Overrides:
handleRefuse in class Task

handleAgree

public void handleAgree(Conversation conv)
Deal with agree messages
Overrides:
handleAgree in class Task

handleFailure

public void handleFailure(Conversation conv)
Deal with failure messages
Overrides:
handleFailure in class Task

handleInform

public void handleInform(Conversation conv)
Deal with failure messages
Overrides:
handleInform in class Task