repserver
Class RepServer.PingTask

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

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

Sends a PING request to the given agent. Returns with a done(aid) call where aid is the agent that was pinged. 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.PingTask(RepGroup group, RepAgentID aid)
          Constructor.
 
Method Summary
 RepAgentID getAgent()
          Just returns the name of the Agent that this Task is pinging
 RepGroup getGroup()
          Just returns the name of the Agent that this Task is pinging
 void handleAgree(fipaos.agent.conversation.Conversation conv)
          When an agree comes back, call done().
 void handleInform(fipaos.agent.conversation.Conversation conv)
          When an inform comes back, call done().
protected  void startTask()
          Creates the ping 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, 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.PingTask

public RepServer.PingTask(RepGroup group,
                          RepAgentID aid)
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

getGroup

public RepGroup getGroup()
Just returns the name of the Agent that this Task is pinging

startTask

protected void startTask()
Creates the ping 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, call done().
Overrides:
handleAgree in class fipaos.agent.task.Task

handleInform

public void handleInform(fipaos.agent.conversation.Conversation conv)
When an inform comes back, call done().
Overrides:
handleInform in class fipaos.agent.task.Task