|
|||||||||
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.ams.AMSTask
TODO: Write a description of the class
$Revision: 1.8 $ $Date: 2001/05/24 18:07:38 $ $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 Database |
_ams_db
Reference to the DF's Database |
protected Conversation |
_conv
Reference to the Conversation we are answering |
Fields inherited from class fipaos.agent.task.Task |
_children, _lock, _owner, _tm |
Constructor Summary | |
AMSTask(Conversation conv,
AgentManagementAction ama,
Database db)
Initialise DFTask |
Method Summary | |
protected void |
clearMessageFlags()
Clears all message flags. |
protected boolean |
deregister(AMSAgentDescription amsad)
Removes the given AMSAgentDescription from the AMS's Databas |
protected AMSAgentDescription |
getRegistered(AgentID aid)
Gets the AMSAgentDescription associated with the Agent |
protected boolean |
isRegistered(AgentID aid)
Indicates if the given Agent is already registered |
protected boolean |
isRegistered(AMSAgentDescription amsad)
Indicates if the Agent the AMSAgentDescription relates to is registered |
protected boolean |
register(AMSAgentDescription amsad)
Adds the given AMSAgentDescription into the AMS 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 |
sendPlatformProfile()
This method would be called when this ams wants to send a platform profile |
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 _ams_db
protected Conversation _conv
protected AgentManagementAction _ama
Constructor Detail |
public AMSTask(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(AMSAgentDescription amsad)
amsad
- AMSAgentDescriptionprotected boolean isRegistered(AgentID aid)
aid
- Agent IDprotected AMSAgentDescription getRegistered(AgentID aid)
aid
- Agent IDprotected boolean register(AMSAgentDescription amsad)
amsad
- AMSAgentDescriptionprotected boolean deregister(AMSAgentDescription amsad)
amsad
- AMSAgentDescriptionprotected boolean sendAgree()
protected boolean sendRefuse(java.lang.String reason)
reason
- Failure reasonprotected boolean sendFailure(java.lang.String reason)
reason
- reason for failureprotected boolean sendInformDone()
protected boolean sendInformResult(java.util.Set results)
results
- The set of results to propogate backprotected boolean sendPlatformProfile()
protected void clearMessageFlags()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |