|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.agent.task.Task | +--repserver.RepAgent.RepServerManagementTask
Handles other RepServerManagementTask functions. The extending agent should have code in its IdleTask like: public void handleRequest( Conversation conv ) { // Get the type of request ACL acl = conv.getACL( conv.getLatestMessageIndex() ); // Check ontology if(acl.getOntology().equalsIgnoreCase(RSCONSTANTS.REPSERVER_ONT)) { newTask ( new RepServerManagementTask(conv, acl), conv); } else { sendNotUnderstood(acl); return; } } // handleRequest() which for all incoming requests with ontology of REPSERVER_ONT start one of these tasks.
Fields inherited from class fipaos.agent.task.Task |
_children, _lock, _owner, _tm |
Constructor Summary | |
RepAgent.RepServerManagementTask(fipaos.ont.fipa.ACL acl)
Constructor. |
Method Summary | |
void |
handleAgree(fipaos.agent.conversation.Conversation conv)
|
void |
handleInform(fipaos.agent.conversation.Conversation conv)
|
protected void |
startTask()
|
Methods inherited from class fipaos.agent.task.Task |
DFSearchResults, done, done, doneDFSearchTask, errorDFSearchTask, forward, forward, getContext, getNewConversation, getState, handleAcceptProposal, handleCfp, handleConfirm, handleDisconfirm, handleFailure, handleInformIf, handleInformRef, handleLateMessage, handleNotUnderstood, handleOther, handlePropagate, handlePropose, handleProxy, handleQueryIf, handleQueryRef, handleRefuse, handleRejectProposal, handleRequest, handleRequestWhen, handleRequestWhenever, handleSubscribe, handleUndeliverableMessage, newTask, newTask, newTask, newTask, newTask, newTask, newTask, newTask, notify, notifyDone, notifyError, notifyMessageFailure, notifyMessageForEndedConversation, notifyTimeout, searchDF, searchDF, searchDF, searchDF, searchDF, sendNotUnderstood, setContext, timeoutDFSearchTask |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RepAgent.RepServerManagementTask(fipaos.ont.fipa.ACL acl)
Method Detail |
protected void startTask()
startTask
in class fipaos.agent.task.Task
public void handleAgree(fipaos.agent.conversation.Conversation conv)
handleAgree
in class fipaos.agent.task.Task
public void handleInform(fipaos.agent.conversation.Conversation conv)
handleInform
in class fipaos.agent.task.Task
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |