agentland.resource
Class Need

java.lang.Object
  |
  +--util.Value
        |
        +--agentland.resource.Need
All Implemented Interfaces:
Cloneable, Serializable

public class Need
extends Value

This class is for describing how badly an agent needs a particular set of resources; This class can be overwritten to allow for gradually decreasing needs, etc... Created: Mon Feb 26 20:47:52 2001

See Also:
Serialized Form

Field Summary
static float DEFAULT
           
static float MAXIMUM
           
static float MINIMUM
           
 
Fields inherited from class util.Value
value
 
Constructor Summary
Need()
           
Need(float n)
           
 
Method Summary
 float getNeed()
           
 String toString()
           
 
Methods inherited from class util.Value
clone, equals, equals, equals, equals, getBooleanValue, getFloatValue, getIntValue, getStringValue, getValue, setValue, setValue, setValue, setValue, valueEquals, valueModified
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAXIMUM

public static final float MAXIMUM

MINIMUM

public static final float MINIMUM

DEFAULT

public static final float DEFAULT
Constructor Detail

Need

public Need()

Need

public Need(float n)
Method Detail

getNeed

public float getNeed()

toString

public String toString()
Overrides:
toString in class Value