jadex.micro.examples.heatbugs
Class HeatbugAgent
java.lang.Object
jadex.micro.MicroAgent
jadex.micro.examples.heatbugs.HeatbugAgent
- All Implemented Interfaces:
- IInternalAccess, IMicroAgent
public class HeatbugAgent
- extends MicroAgent
The heatbug agent.
|
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. |
|
Method Summary |
void |
executeBody()
Execute an agent step. |
| Methods inherited from class jadex.micro.MicroAgent |
addComponentListener, addDirectService, addService, agentCreated, agentKilled, createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createReply, createResultListener, createServiceContainer, getAgentAdapter, getAgentName, getArgument, getArguments, getChildren, getComponentIdentifier, getConfiguration, getExternalAccess, getLogger, getModel, getParent, getServiceProvider, getTime, init, isAtBreakpoint, killAgent, killComponent, messageArrived, removeComponentListener, removeService, scheduleStep, sendMessage, setResultValue, waitFor, waitForTick |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
HeatbugAgent
public HeatbugAgent()
executeBody
public void executeBody()
- Execute an agent step.
- Specified by:
executeBody in interface IMicroAgent- Overrides:
executeBody in class MicroAgent
Copyright © 2010. All Rights Reserved.