jadex.micro.examples.heatbugs
Class HeatbugAgent

java.lang.Object
  extended by jadex.micro.MicroAgent
      extended by jadex.micro.examples.heatbugs.HeatbugAgent
All Implemented Interfaces:
IMicroAgent

public class HeatbugAgent
extends MicroAgent

The heatbug agent.


Nested Class Summary
 
Nested classes/interfaces inherited from class jadex.micro.MicroAgent
MicroAgent.TimerWrapper
 
Field Summary
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.
 
Fields inherited from class jadex.micro.MicroAgent
interpreter, longtime, timers
 
Constructor Summary
HeatbugAgent()
           
 
Method Summary
 void executeBody()
          Execute an agent step.
 
Methods inherited from class jadex.micro.MicroAgent
addService, agentCreated, agentKilled, createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createReply, createResultListener, createServiceContainer, getAgentAdapter, getAgentName, getArgument, getArguments, getComponentIdentifier, getConfiguration, getExternalAccess, getLogger, getParent, getServiceProvider, getTime, init, isAtBreakpoint, killAgent, messageArrived, removeService, scheduleStep, sendMessage, setResultValue, waitFor, waitForTick
 
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 void executeBody()
Execute an agent step.

Specified by:
executeBody in interface IMicroAgent
Overrides:
executeBody in class MicroAgent


Copyright © 2010. All Rights Reserved.