fipaos.skill.wrapper
Class FIPAWrapperTask

fipaos.agent.task.Task
  |
  +--fipaos.skill.wrapper.FIPAWrapperTask

public abstract class FIPAWrapperTask
extends Task

This is a default implementation of a FIPA Wrapper. It will respond to
all valid incoming FIPA-Wrapper messages with a default refuse for that message type.
It will also respond to other messages with a not-understood. To implement a working
FIPA Wrapper agent simply subclass this Task in the agent state that will
contain the wrapper functionality in your agent. Your agent can either subclass
this state for it's IDLE listener state, or it can pass incoming wrapper requests
on to a dedicated wrapper state that subclasses this object.


Implementation notes:






Constructor Summary
FIPAWrapperTask(FIPAOSAgent owner, TaskManager sm)
          FIPA Wrapper constructor creates the wrapper state and makes the calls
to the API to start everything going.

Method Summary
 voidhandleQueryIf(Conversation conv)
          Handler ACL messages with a query-if performative.
 voidhandleQueryRef(Conversation conv)
          Handler ACL messages with a query-ref performative.
 voidhandleRequest(Conversation conv)
          Handler ACL messages with a request performative.

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

Constructor Detail

FIPAWrapperTask

public FIPAWrapperTask(FIPAOSAgent owner, TaskManager sm)
FIPA Wrapper constructor creates the wrapper state and makes the calls
to the API to start everything going. Your state's constructor should
mirror the parameters of this method and just make a call to super.
Parameters:
owner - The owner agent of this state
sm - The Task Manager that will control this state
Method Detail

handleQueryIf

public void handleQueryIf(Conversation conv)
Handler ACL messages with a query-if performative.
These are the starting messages of the fipa-query protocol.
Parameters:
conv - The conversation containing the new message

handleQueryRef

public void handleQueryRef(Conversation conv)
Handler ACL messages with a query-ref performative.
These are the starting messages of the fipa-query protocol.
Parameters:
conv - The conversation containing the new message

handleRequest

public void handleRequest(Conversation conv)
Handler ACL messages with a request performative.
These are the starting messages of the fipa-request protocol.
Parameters:
conv - The conversation containing the new message

Association Links

to Class java.lang.String