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 void
deletePeers
(int cnt, long killstarttime, double dur, double pera, long omem, double upera, int max) Delete all peers from last-1 to first.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 for testing.void
onEnd()
void
onStart()
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.
-