Package jadex.micro.examples.heatbugs
Class HeatbugAgent
- java.lang.Object
-
- jadex.micro.examples.heatbugs.HeatbugAgent
-
public class HeatbugAgent extends java.lang.ObjectThe heatbug agent.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected doubleideal_tempThe desired temperature.protected doublemytempThe current temperature.protected doublerandomchanceThe probability of a random move.protected doubleunhappinessThe 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.
-
-