jadex.micro.examples.ping
Class PingAgent

java.lang.Object
  extended by jadex.micro.MicroAgent
      extended by jadex.micro.examples.ping.PingAgent
All Implemented Interfaces:
IMicroAgent

public class PingAgent
extends MicroAgent

Answer ping requests.


Nested Class Summary
 
Nested classes/interfaces inherited from class jadex.micro.MicroAgent
MicroAgent.TimerWrapper
 
Field Summary
 
Fields inherited from class jadex.micro.MicroAgent
interpreter, longtime, timers
 
Constructor Summary
PingAgent()
           
 
Method Summary
 void messageArrived(java.util.Map msg, MessageType mt)
          Send a reply to the sender.
 
Methods inherited from class jadex.micro.MicroAgent
addService, agentCreated, agentKilled, createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createReply, createResultListener, createServiceContainer, executeBody, getAgentAdapter, getAgentName, getArgument, getArguments, getComponentIdentifier, getConfiguration, getExternalAccess, getLogger, getParent, getServiceProvider, getTime, init, isAtBreakpoint, killAgent, removeService, scheduleStep, sendMessage, setResultValue, waitFor, waitForTick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingAgent

public PingAgent()
Method Detail

messageArrived

public void messageArrived(java.util.Map msg,
                           MessageType mt)
Send a reply to the sender.

Specified by:
messageArrived in interface IMicroAgent
Overrides:
messageArrived in class MicroAgent
Parameters:
msg - The message.
mt - The message type.


Copyright © 2010. All Rights Reserved.