Package jadex.bdiv3.benchmarks
Class CreationBDI
- java.lang.Object
- 
- jadex.bdiv3.benchmarks.CreationBDI
 
- 
 public class CreationBDI extends java.lang.ObjectAgent creation benchmark BDI V3.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe component.protected intmaxMaximum number of agents to create.protected intnumRemaining number of agents to create (-1 for start agent).protected longstartmemMemory usage when the first agent was started.protected longstarttimeTime when the first agent was started.
 - 
Constructor SummaryConstructors Constructor Description CreationBDI()
 - 
Method SummaryAll 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)Delete all peers from last-1 to first.protected voidkillLastPeer(long killstarttime, double dur, double pera, long omem, double upera)Kill the last peer and print out the results.protected voidstartPeer(jadex.bdiv3.runtime.impl.RPlan rplan)
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The component.
 - 
maxprotected int max Maximum number of agents to create.
 - 
numprotected int num Remaining number of agents to create (-1 for start agent).
 - 
starttimeprotected long starttime Time when the first agent was started.
 - 
startmemprotected long startmem Memory usage when the first agent was started.
 
- 
 - 
Method Detail- 
createPeerNameprotected java.lang.String createPeerName(int num, IComponentIdentifier cid)Create a name for a peer with a given number.
 - 
startPeerprotected void startPeer(jadex.bdiv3.runtime.impl.RPlan rplan) 
 - 
deletePeersprotected void deletePeers(int cnt, long killstarttime, double dur, double pera, long omem, double upera)Delete all peers from last-1 to first.- Parameters:
- cnt- The highest number of the agent to kill.
 
 - 
killLastPeerprotected void killLastPeer(long killstarttime, double dur, double pera, long omem, double upera)Kill the last peer and print out the results.
 
- 
 
-