Class HeatbugAgent


  • public class HeatbugAgent
    extends java.lang.Object
    The heatbug agent.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent
      The agent.
      protected double ideal_temp
      The desired temperature.
      protected double mytemp
      The current temperature.
      protected double randomchance
      The probability of a random move.
      protected double unhappiness
      The current unhappiness.
    • Constructor Summary

      Constructors 
      Constructor Description
      HeatbugAgent()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IFuture<java.lang.Void> executeBody()
      Execute an agent step.
      • Methods inherited from class java.lang.Object

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

      • randomchance

        protected double randomchance
        The probability of a random move.
      • ideal_temp

        protected double ideal_temp
        The desired temperature.
      • mytemp

        protected double mytemp
        The current temperature.
      • unhappiness

        protected double unhappiness
        The current unhappiness.
    • Constructor Detail

      • HeatbugAgent

        public HeatbugAgent()
    • Method Detail

      • executeBody

        public IFuture<java.lang.Void> executeBody()
        Execute an agent step.