fipaos.test.agent
Class MessageTimingAgent

fipaos.agent.FIPAOSAgent
  |
  +--fipaos.test.agent.MessageTimingAgent

public class MessageTimingAgent
extends FIPAOSAgent

This agent aims to test the round-trip time for sending messages to a counter-part agent


Inner Class Summary
 public classMessageTimingAgent.IdleTask
          Simple Task to respond to incoming request messages, and just reply with an inform - it performs the minimum of work in doing so
 public classMessageTimingAgent.MessageTestTask
          Task to test message sending & timing
 public classMessageTimingAgent.TestingTask
          Task to carry out the actual job of testing

Inner classes inherited from class fipaos.agent.FIPAOSAgent
FIPAOSAgent.TopLevelHandlerTask

Fields inherited from class fipaos.agent.FIPAOSAgent
_registered_with, _state

Constructor Summary
MessageTimingAgent(String platform, String agent, String owner)
          Creates new MessageTiming

Method Summary
 (package private) longcalcAverage(List l)
          Calculate the average of a list of Long's
 ConversationManagergetCM()
          Promote getCM() status
 (package private) ListgetList(String name)
          Retrieves the given result list for the current payload
 static voidmain(String[] args)
           

Methods inherited from class fipaos.agent.FIPAOSAgent
activate, forward, forward, getAID, getCurrentConversation, getHAP, getLocalAMS, getLocalAMSAID, getLocalDF, getLocalDFAID, getNewConversation, getOwnership, getPlatformProfile, getProfile, getState, isShutdown, notify, notify, notifyDone, notifyError, notifyMessageInEndedConversation, notifyMessageUndeliverable, notifyTimeout, sendNotUnderstood, sendNotUnderstood, setMessageSender, shutdown, waitForPushLock

Constructor Detail

MessageTimingAgent

public MessageTimingAgent(String platform, String agent, String owner)
Creates new MessageTiming
Method Detail

calcAverage

long calcAverage(List l)
Calculate the average of a list of Long's

getCM

public ConversationManager getCM()
Promote getCM() status

getList

List getList(String name)
Retrieves the given result list for the current payload

main

public static void main(String[] args)

Association Links

to Class java.lang.String

to Class fipaos.ont.fipa.fipaman.AgentID

to Class java.util.Map