|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.agent.task.Task | +--fipaos.platform.df.DFTask
TODO: Write a description of the class
$Revision: 1.9 $ $Date: 2001/04/04 22:48:19 $ $Author: alantreadway $
Field Summary | |
protected ACL |
_acl
Original ACL message containing the request |
protected AgentManagementAction |
_ama
Reference to the AMA that this Task is attempting to carry out |
protected Conversation |
_conv
Reference to the Conversation we are answering |
protected Database |
_df_db
Reference to the DF's Database |
Fields inherited from class fipaos.agent.task.Task |
_children, _lock, _owner, _tm |
Constructor Summary | |
DFTask(Conversation conv,
AgentManagementAction ama,
Database db)
Initialise DFTask |
Method Summary | |
protected boolean |
deregister(DFAgentDescription dfad)
Removes the given DFAgentDescription from the DF's Databas |
protected DFAgentDescription |
getRegistered(AgentID aid)
Gets the DFAgentDescription associated with the Agent |
protected boolean |
isRegistered(AgentID aid)
Indicates if the given Agent is already registered |
protected boolean |
isRegistered(DFAgentDescription dfad)
Indicates if the Agent the DFAgentDescription relates to is registered |
protected boolean |
register(DFAgentDescription dfad)
Adds the given DFAgentDescription into the DF Database |
protected boolean |
sendAgree()
Send an agree message back to the originator of the request for this Task |
protected boolean |
sendFailure(java.lang.String reason)
Sends a failure back to the originator of the request for this Task |
protected boolean |
sendInformDone()
Sends an inform (with associated "done" term in content) back to originator of request for this Task |
protected boolean |
sendInformResult(java.util.Set results)
This method would be called when this df would like to send a result message |
protected boolean |
sendRefuse(java.lang.String reason)
Sends a refuse message back to the originator of the request for this Task |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ACL _acl
protected Database _df_db
protected Conversation _conv
protected AgentManagementAction _ama
Constructor Detail |
public DFTask(Conversation conv, AgentManagementAction ama, Database db)
conv
- Conversation associated with this Taskama
- AgentManagementAction contained within the given Conversationdb
- Database associated with the DFMethod Detail |
protected boolean isRegistered(DFAgentDescription dfad)
dfad
- protected boolean isRegistered(AgentID aid)
aid
- protected DFAgentDescription getRegistered(AgentID aid)
aid
- protected boolean register(DFAgentDescription dfad)
dfad
- protected boolean deregister(DFAgentDescription dfad)
dfad
- protected boolean sendAgree()
protected boolean sendRefuse(java.lang.String reason)
reason
- Failure reasonprotected boolean sendFailure(java.lang.String reason)
reason
- protected boolean sendInformDone()
protected boolean sendInformResult(java.util.Set results)
results
- The set of results to propogate back
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |