repserver
Class RepServer.UpdateAgentTask

java.lang.Object
  |
  +--fipaos.agent.task.Task
        |
        +--repserver.RepServer.UpdateAgentTask
Enclosing class:
RepServer

public class RepServer.UpdateAgentTask
extends fipaos.agent.task.Task

Sends a LOADSTATE request to the given agent. Returns with a done(aid) call where aid is the agent that was updated. If the agent does not respond this task will timeout.


Fields inherited from class fipaos.agent.task.Task
_children, _lock, _owner, _tm
 
Constructor Summary
RepServer.UpdateAgentTask(RepAgentID aid, byte[] s)
          Constructor.
 
Method Summary
 RepAgentID getAgent()
          Just returns the name of the Agent that this Task is pinging
 void handleAgree(fipaos.agent.conversation.Conversation conv)
          When an agree comes back, send the state.
protected  void startTask()
          Creates the LOADSTATE message for the target Agent and sends it.
 
Methods inherited from class fipaos.agent.task.Task
DFSearchResults, done, done, doneDFSearchTask, errorDFSearchTask, forward, forward, getContext, getNewConversation, getState, handleAcceptProposal, handleCfp, handleConfirm, handleDisconfirm, handleFailure, handleInform, 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

RepServer.UpdateAgentTask

public RepServer.UpdateAgentTask(RepAgentID aid,
                                 byte[] s)
Constructor.
Parameters:
aid - set _agent_to_ping to this.
Method Detail

getAgent

public RepAgentID getAgent()
Just returns the name of the Agent that this Task is pinging

startTask

protected void startTask()
Creates the LOADSTATE message for the target Agent and sends it.
Overrides:
startTask in class fipaos.agent.task.Task

handleAgree

public void handleAgree(fipaos.agent.conversation.Conversation conv)
When an agree comes back, send the state.
Overrides:
handleAgree in class fipaos.agent.task.Task