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:
- Query-if and query-ref messages are currently not handled further than saying
not-understood - they need support for iota queries,
predicates and assertions in the relevant parts of FIPA-OS.
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
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
to Class java.lang.String