Class CreationBDI


  • public class CreationBDI
    extends java.lang.Object
    Agent creation benchmark BDI V3.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent
      The component.
      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
      CreationBDI()  
    • 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.
      protected void deletePeers​(int cnt, long killstarttime, double dur, double pera, long omem, double upera)
      Delete all peers from last-1 to first.
      protected void killLastPeer​(long killstarttime, double dur, double pera, long omem, double upera)
      Kill the last peer and print out the results.
      protected void startPeer​(jadex.bdiv3.runtime.impl.RPlan rplan)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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.
    • Constructor Detail

      • CreationBDI

        public CreationBDI()
    • Method Detail

      • createPeerName

        protected java.lang.String createPeerName​(int num,
                                                  IComponentIdentifier cid)
        Create a name for a peer with a given number.
      • startPeer

        protected void startPeer​(jadex.bdiv3.runtime.impl.RPlan rplan)
      • deletePeers

        protected 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.
      • killLastPeer

        protected void killLastPeer​(long killstarttime,
                                    double dur,
                                    double pera,
                                    long omem,
                                    double upera)
        Kill the last peer and print out the results.