Package jadex.micro.benchmarks
Class BlockingAgentCreationAgent
- java.lang.Object
-
- jadex.micro.benchmarks.BlockingAgentCreationAgent
-
public class BlockingAgentCreationAgent extends java.lang.Object
Agent creation benchmark using threaded components
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.protected int
max
Maximum number of agents to create.protected int
num
Remaining number of agents to create (-1 for start agent).protected long
startmem
Memory usage when the first agent was started.protected long
starttime
Time when the first agent was started.
-
Constructor Summary
Constructors Constructor Description BlockingAgentCreationAgent()
-
Method Summary
All 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.void
executeBody()
Execute an agent step.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The agent.
-
max
protected int max
Maximum number of agents to create.
-
num
protected int num
Remaining number of agents to create (-1 for start agent).
-
starttime
protected long starttime
Time when the first agent was started.
-
startmem
protected long startmem
Memory usage when the first agent was started.
-
-
Method Detail
-
executeBody
public void executeBody()
Execute an agent step.
-
createPeerName
protected java.lang.String createPeerName(int num, IComponentIdentifier cid)
Create a name for a peer with a given number.
-
-