net.sourceforge.jabm.agent.utility
Class ThresholdUtilityFunction

java.lang.Object
  extended by net.sourceforge.jabm.agent.utility.AbstractUtilityFunction
      extended by net.sourceforge.jabm.agent.utility.ThresholdUtilityFunction
All Implemented Interfaces:
java.io.Serializable, UtilityFunction

public class ThresholdUtilityFunction
extends AbstractUtilityFunction
implements java.io.Serializable

See Also:
Serialized Form
 

Field Summary
protected  double threshold
           
 
Constructor Summary
ThresholdUtilityFunction()
           
 
Method Summary
 double calculatePayoff(double profit)
           
 double getThreshold()
           
 void setThreshold(double threshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threshold

protected double threshold
Constructor Detail

ThresholdUtilityFunction

public ThresholdUtilityFunction()
Method Detail

calculatePayoff

public double calculatePayoff(double profit)
Specified by:
calculatePayoff in interface UtilityFunction

getThreshold

public double getThreshold()

setThreshold

public void setThreshold(double threshold)