Package jadex.micro.benchmarks
Class MinimalAgentCreationAgent
- java.lang.Object
- 
- jadex.micro.benchmarks.MinimalAgentCreationAgent
 
- 
 public class MinimalAgentCreationAgent extends java.lang.ObjectAgent creation benchmark.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.
 - 
Constructor SummaryConstructors Constructor Description MinimalAgentCreationAgent()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcreatePeerName(int num, IComponentIdentifier cid)Create a name for a peer with a given number.protected voiddeletePeers(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 voidkillLastPeer(int max, long killstarttime, double dur, double pera, long omem, double upera)Kill the last peer and print out the results.static voidmain(java.lang.String[] args)Main for testing.protected voidstep1(java.util.Map args)Execute the first step.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 
- 
 - 
Method Detail- 
executeBodypublic IFuture<java.lang.Void> executeBody() Execute an agent step.
 - 
step1protected void step1(java.util.Map args) Execute the first step.
 - 
createPeerNameprotected java.lang.String createPeerName(int num, IComponentIdentifier cid)Create a name for a peer with a given number.
 - 
deletePeersprotected 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.
 
 - 
killLastPeerprotected void killLastPeer(int max, long killstarttime, double dur, double pera, long omem, double upera)Kill the last peer and print out the results.
 - 
mainpublic static void main(java.lang.String[] args) Main for testing.
 
- 
 
-