jadex.micro.examples.ping
Class EchoAgent

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

public class EchoAgent
extends MicroAgent

Sends back the same message it received.


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
EchoAgent()
           
 
Method Summary
 void messageArrived(java.util.Map msg, MessageType mt)
          Send same message back 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

EchoAgent

public EchoAgent()
Method Detail

messageArrived

public void messageArrived(java.util.Map msg,
                           MessageType mt)
Send same message back 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.