|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmodelling.Satisfactor
modelling.EatingAgent.IsHungry
Satisfactor informing on the feeding level.
| Field Summary | |
protected float |
hunger
|
protected float |
hungryCeil
|
protected float |
hungryFloor
|
protected boolean |
unfiniteHungry
|
| Constructor Summary | |
EatingAgent.IsHungry()
Constructor for an infinite hunger |
|
EatingAgent.IsHungry(float hunger,
float hungryFloor,
float hungryCeil)
Constructor for a countable hunger. |
|
| Method Summary | |
void |
changeHunger(float difference)
Allows to set the current hunger. |
float |
getReserves()
Return the amongs of food avaiable. |
int |
heuristic()
Informs of the achievement of this goal. |
boolean |
isSatisfying()
Returns wether the agent may still eat. |
| Methods inherited from class modelling.Satisfactor |
and, not, or |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected float hunger
protected float hungryFloor
protected float hungryCeil
protected boolean unfiniteHungry
| Constructor Detail |
public EatingAgent.IsHungry(float hunger,
float hungryFloor,
float hungryCeil)
public EatingAgent.IsHungry()
| Method Detail |
public boolean isSatisfying()
isSatisfying in class Satisfactorpublic int heuristic()
heuristic in class Satisfactorpublic float getReserves()
public void changeHunger(float difference)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||