jadex.micro.benchmarks
Class MessagePerformanceAgent

java.lang.Object
  extended by jadex.micro.MicroAgent
      extended by jadex.micro.benchmarks.MessagePerformanceAgent
All Implemented Interfaces:
IInternalAccess, IMicroAgent

public class MessagePerformanceAgent
extends MicroAgent

Test message performance.


Nested Class Summary
 
Nested classes/interfaces inherited from class jadex.micro.MicroAgent
MicroAgent.TimerWrapper
 
Field Summary
protected  int current
          The current message number sent.
protected  int received
          The received messages.
protected  long starttime
          The start time.
 
Fields inherited from class jadex.micro.MicroAgent
interpreter, longtime, timers
 
Constructor Summary
MessagePerformanceAgent()
           
 
Method Summary
 void executeBody()
          Execute an agent step.
static Object getMetaInfo()
          Get the meta information about the agent.
 void messageArrived(Map msg, MessageType mt)
          Called on message arrival.
 
Methods inherited from class jadex.micro.MicroAgent
addComponentListener, addDirectService, addService, agentCreated, agentKilled, createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createReply, createResultListener, createServiceContainer, getAgentAdapter, getAgentName, getArgument, getArguments, getChildren, getComponentIdentifier, getConfiguration, getExternalAccess, getLogger, getModel, getParent, getServiceProvider, getTime, init, isAtBreakpoint, killAgent, killComponent, removeComponentListener, removeService, scheduleStep, sendMessage, setResultValue, waitFor, waitForTick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

received

protected int received
The received messages.


starttime

protected long starttime
The start time.


current

protected int current
The current message number sent.

Constructor Detail

MessagePerformanceAgent

public MessagePerformanceAgent()
Method Detail

executeBody

public void executeBody()
Execute an agent step.

Specified by:
executeBody in interface IMicroAgent
Overrides:
executeBody in class MicroAgent

messageArrived

public void messageArrived(Map msg,
                           MessageType mt)
Called on message arrival.

Specified by:
messageArrived in interface IMicroAgent
Overrides:
messageArrived in class MicroAgent

getMetaInfo

public static Object getMetaInfo()
Get the meta information about the agent.



Copyright © 2010. All Rights Reserved.