jadex.examples.hunterprey.creature.hunters.ldahunter.potentialfield
Class JointField
java.lang.Object
java.util.AbstractMap
java.util.HashMap
jadex.examples.hunterprey.creature.hunters.ldahunter.potentialfield.JointField
- All Implemented Interfaces:
- Serializable, Cloneable, Map
public class JointField
- extends HashMap
- See Also:
- Serialized Form
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
field
public final FieldModel field
desire
public final double[][] desire
desire
maxDesire
public double maxDesire
maxDesire
maximum value in desire
minDesire
public double minDesire
minDesire
minimum value in desire > 0
JointField
public JointField(int h,
int w,
int range,
Evaluator ev)
- Parameters:
h
- w
- range
- ev
-
add
public void add(Creature creature)
- Parameters:
creature
-
add
public void add(Food f)
- Parameters:
f
-
add
public void add(Obstacle o)
- Parameters:
o
-
add
public void add(WorldObject wo)
- Parameters:
wo
-
update
public void update(WorldObject[] w,
Creature myself)
- Parameters:
w
- world objectsmyself
-
eaten
public void eaten(Creature c)
- Parameters:
c
-
getBestLocation
public Location getBestLocation()
- Returns:
- the best location
getNearerLocation
public boolean getNearerLocation(Location loc)
- Parameters:
loc
-
- Returns:
- true if location changed
calcDesire
public void calcDesire()
Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples. Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.