jadex.micro.benchmarks
Class AgentCreationAgent

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

public class AgentCreationAgent
extends MicroAgent

Agent creation benchmark.


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
AgentCreationAgent()
           
 
Method Summary
protected  String createPeerName(int num, IComponentIdentifier cid)
          Create a name for a peer with a given number.
protected  void deletePeers(int cnt, long killstarttime, double dur, double pera, long omem, double upera, int max, IMicroExternalAccess exta, boolean nested)
          Delete all peers from last-1 to first.
 void executeBody()
          Execute an agent step.
static Object getMetaInfo()
          Get the meta information about the agent.
protected  void killLastPeer(int max, long killstarttime, double dur, double pera, long omem, double upera, IMicroExternalAccess exta)
          Kill the last peer and print out the results.
protected  void step1(Map args)
          Execute the first step.
 
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, messageArrived, 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
 

Constructor Detail

AgentCreationAgent

public AgentCreationAgent()
Method Detail

executeBody

public void executeBody()
Execute an agent step.

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

step1

protected void step1(Map args)
Execute the first step.


createPeerName

protected String createPeerName(int num,
                                IComponentIdentifier cid)
Create a name for a peer with a given number.


deletePeers

protected void deletePeers(int cnt,
                           long killstarttime,
                           double dur,
                           double pera,
                           long omem,
                           double upera,
                           int max,
                           IMicroExternalAccess exta,
                           boolean nested)
Delete all peers from last-1 to first.

Parameters:
cnt - The highest number of the agent to kill.

killLastPeer

protected void killLastPeer(int max,
                            long killstarttime,
                            double dur,
                            double pera,
                            long omem,
                            double upera,
                            IMicroExternalAccess exta)
Kill the last peer and print out the results.


getMetaInfo

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



Copyright © 2010. All Rights Reserved.