Package jadex.micro.benchmarks
Class AgentCreationAgent
- java.lang.Object
-
- jadex.micro.benchmarks.AgentCreationAgent
-
public class AgentCreationAgent extends java.lang.Object
Agent creation benchmark.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.
-
Constructor Summary
Constructors Constructor Description AgentCreationAgent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.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, boolean nested)
Delete all peers from last-1 to first.IFuture<java.lang.Void>
executeBody()
Execute an agent step.protected void
killLastPeer(int max, long killstarttime, double dur, double pera, long omem, double upera)
Kill the last peer and print out the results.static void
main(java.lang.String[] args)
Main for testing.protected void
step1(java.util.Map<java.lang.String,java.lang.Object> args)
Execute the first step.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The agent.
-
-
Method Detail
-
executeBody
public IFuture<java.lang.Void> executeBody()
Execute an agent step.
-
step1
protected void step1(java.util.Map<java.lang.String,java.lang.Object> args)
Execute the first step.
-
createPeerName
protected java.lang.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, 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)
Kill the last peer and print out the results.
-
main
public static void main(java.lang.String[] args)
Main for testing.
-
-