Package jadex.micro.examples.heatbugs
Class HeatbugAgent
- java.lang.Object
-
- jadex.micro.examples.heatbugs.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.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The agent.
-
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.
-
-
Method Detail
-
executeBody
public IFuture<java.lang.Void> executeBody()
Execute an agent step.
-
-