Interface AgentMBean

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete()
      Permits this agent to destroy it.
      String getAgentId()
      Returns the global unique identifier of the agent.
      long getCommitTime()
      Returns the total commit time calculated for this agent.
      String getName()
      Returns this Agent's name.
      int getReactNb()  
      long getReactTime()
      Returns the total reaction time calculated for this agent.
      boolean isAgentProfiling()
      Returns true
      boolean isFixed()
      Tests if the agent is pinned in memory.
      void resetCommitTime()
      Reset the commit time for this agent.
      void resetReactTime()
      Reset the reaction time for this agent.
      void resetTimer()
      Reset react and commit time for this agent.
      void setAgentProfiling​(boolean agentProfiling)
      Sets If true, the cumulative time of reaction and commit is kept for each agent.
      String toString()
      Returns a string representation of this agent, including the agent's class, name, global identication, and fixed property.
    • Method Detail

      • getName

        String getName()
        Returns this Agent's name.
        Returns:
        this Agent's name.
      • getAgentId

        String getAgentId()
        Returns the global unique identifier of the agent.
        Returns:
        the global unique identifier of the agent.
      • isFixed

        boolean isFixed()
        Tests if the agent is pinned in memory.
        Returns:
        true if this agent is pinned in memory; false otherwise.
      • delete

        void delete()
        Permits this agent to destroy it.
      • toString

        String toString()
        Returns a string representation of this agent, including the agent's class, name, global identication, and fixed property.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this agent.
      • getReactNb

        int getReactNb()
        Returns:
        the reactNb
      • setAgentProfiling

        void setAgentProfiling​(boolean agentProfiling)
        Sets If true, the cumulative time of reaction and commit is kept for each agent.
        Parameters:
        agentProfiling - if true sets the agent profiling.
        See Also:
        EngineMBean.setAgentProfiling(boolean)
      • getReactTime

        long getReactTime()
        Returns the total reaction time calculated for this agent.
        Returns:
        the reactTime
      • resetReactTime

        void resetReactTime()
        Reset the reaction time for this agent.
      • getCommitTime

        long getCommitTime()
        Returns the total commit time calculated for this agent.
        Returns:
        the commitTime
      • resetCommitTime

        void resetCommitTime()
        Reset the commit time for this agent.
      • resetTimer

        void resetTimer()
        Reset react and commit time for this agent.