fipaos.platform.ams
Class AMSRegistrationTask

fipaos.agent.task.Task
  |
  +--fipaos.platform.ams.AMSRegistrationTask

public class AMSRegistrationTask
extends Task

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

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
AMSRegistrationTask()
          Create a Task to register with the AMS
AMSRegistrationTask(AgentID ams)
          Create a Task to register with the AMS
AMSRegistrationTask(String state)
          Create a Task to register with the AMS
AMSRegistrationTask(AgentID ams, String state)
          Create a Task to register with the AMS

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

AMSRegistrationTask

public AMSRegistrationTask()
Create a Task to register with the AMS

AMSRegistrationTask

public AMSRegistrationTask(AgentID ams)
Create a Task to register with the AMS

AMSRegistrationTask

public AMSRegistrationTask(String state)
Create a Task to register with the AMS

AMSRegistrationTask

public AMSRegistrationTask(AgentID ams, String state)
Create a Task to register with the AMS
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 AMS to register with

to Class java.lang.String

Active state of the Agent registering