Package jadex.micro.helloworld
Class AgentCreationAgent
java.lang.Object
jadex.micro.helloworld.AgentCreationAgent
Agent creation benchmark.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeletePeers(int cnt, long killstarttime, double dur, double pera, long omem, double upera, int max) Delete all peers from last-1 to first.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 for testing.voidonEnd()voidonStart()Execute an agent step.
-
Field Details
-
agent
protected jadex.core.IComponent agentThe agent. -
max
protected int maxThe number of agents. -
num
protected int numThe agent number. -
startmem
-
starttime
-
-
Constructor Details
-
AgentCreationAgent
public AgentCreationAgent() -
AgentCreationAgent
public AgentCreationAgent(int max)
-
-
Method Details
-
onStart
public void onStart()Execute an agent step. -
onEnd
public void onEnd() -
deletePeers
protected void deletePeers(int cnt, long killstarttime, double dur, double pera, long omem, double upera, int max) 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
Main for testing.
-