repserver
Class RepAgent.RepServerManagementTask

java.lang.Object
  |
  +--fipaos.agent.task.Task
        |
        +--repserver.RepAgent.RepServerManagementTask
Enclosing class:
RepAgent

public class RepAgent.RepServerManagementTask
extends fipaos.agent.task.Task

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

RepAgent.RepServerManagementTask

public RepAgent.RepServerManagementTask(fipaos.ont.fipa.ACL acl)
Constructor. Set the conv and acl.
Method Detail

startTask

protected void startTask()
Overrides:
startTask in class fipaos.agent.task.Task

handleAgree

public void handleAgree(fipaos.agent.conversation.Conversation conv)
Overrides:
handleAgree in class fipaos.agent.task.Task

handleInform

public void handleInform(fipaos.agent.conversation.Conversation conv)
Overrides:
handleInform in class fipaos.agent.task.Task