Class AgentCreationAgent

java.lang.Object
jadex.micro.helloworld.AgentCreationAgent

public class AgentCreationAgent extends Object
Agent creation benchmark.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected jadex.core.IComponent
    The agent.
    protected int
    The number of agents.
    protected int
    The agent number.
    protected Long
     
    protected Long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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(String[] args)
    Main for testing.
    void
     
    void
    Execute an agent step.

    Methods inherited from class java.lang.Object

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

    • agent

      protected jadex.core.IComponent agent
      The agent.
    • max

      protected int max
      The number of agents.
    • num

      protected int num
      The agent number.
    • startmem

      protected Long startmem
    • starttime

      protected Long 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

      public static void main(String[] args)
      Main for testing.