public class PojoAgentCreationAgent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected jadex.bridge.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 and Description |
|---|
PojoAgentCreationAgent() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createPeerName(int num,
jadex.bridge.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)
Delete all peers from last-1 to first.
|
void |
executeBody()
Execute an agent step.
|
protected jadex.commons.future.IFuture<jadex.bridge.service.types.clock.IClockService> |
getClock() |
protected jadex.commons.future.IFuture<jadex.bridge.service.types.cms.IComponentManagementService> |
getCMS() |
protected void |
killLastPeer(long killstarttime,
double dur,
double pera,
long omem,
double upera)
Kill the last peer and print out the results.
|
protected void |
step1()
Execute the first step.
|
protected jadex.bridge.IInternalAccess agent
protected int max
protected int num
protected long starttime
protected long startmem
public void executeBody()
protected void step1()
protected java.lang.String createPeerName(int num,
jadex.bridge.IComponentIdentifier cid)
protected void deletePeers(int cnt,
long killstarttime,
double dur,
double pera,
long omem,
double upera)
cnt - The highest number of the agent to kill.protected void killLastPeer(long killstarttime,
double dur,
double pera,
long omem,
double upera)
protected jadex.commons.future.IFuture<jadex.bridge.service.types.cms.IComponentManagementService> getCMS()
protected jadex.commons.future.IFuture<jadex.bridge.service.types.clock.IClockService> getClock()