|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropsi.comp.agent.micropsi.urges.BodySimulator
| Field Summary | |
static double |
FOOD_DECAY
|
static int |
OPTIMAL_FOOD_LEVEL
|
static int |
OPTIMAL_INTEGRITY_LEVEL
|
static double |
OPTIMAL_WATER_LEVEL
|
static double |
WATER_DECAY
|
| Constructor Summary | |
BodySimulator(PhysicalStateListenerIF physicalstate)
Constructor for BodySimulator. |
|
| Method Summary | |
UrgeCreatorIF[] |
createUrges(LocalNetFacade net)
|
void |
damage(double damagePoints)
Damages the agent |
void |
drink(double liters)
Consumes water |
void |
eat(double kiloJoule)
Consumes food |
void |
endCycle(long netStep)
This method will be called when the current cycle is about to end and all gates have been just calculated. |
double |
getFoodLevel()
|
double |
getFoodUrge()
Returns the foodUrge. |
double |
getIntegrityLevel()
|
double |
getIntegrityUrge()
Returns the integrityUrge. |
double |
getWaterLevel()
|
double |
getWaterUrge()
Returns the waterUrge. |
void |
reset()
|
void |
startCycle(long netStep)
This method will be called when a new cycle (aka "netstep") just started. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int OPTIMAL_FOOD_LEVEL
public static final double OPTIMAL_WATER_LEVEL
public static final int OPTIMAL_INTEGRITY_LEVEL
public static final double FOOD_DECAY
public static final double WATER_DECAY
| Constructor Detail |
public BodySimulator(PhysicalStateListenerIF physicalstate)
| Method Detail |
public double getFoodUrge()
public double getIntegrityUrge()
public double getWaterUrge()
public void eat(double kiloJoule)
kiloJoule - food value that was eatenpublic void drink(double liters)
liters - water value that was drunkenpublic void damage(double damagePoints)
damagePoints - the damage takenpublic java.lang.String toString()
public void startCycle(long netStep)
CycleObserverIF
startCycle in interface CycleObserverIFnetStep - the current netstep.CycleObserverIF.startCycle(long)public void endCycle(long netStep)
CycleObserverIF
endCycle in interface CycleObserverIFnetStep - the netstep just about to end.CycleObserverIF.endCycle(long)public double getFoodLevel()
public double getIntegrityLevel()
public double getWaterLevel()
public UrgeCreatorIF[] createUrges(LocalNetFacade net)
public void reset()
|
(c) by Micropsi Project: http://www.cognitive-agents.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||