net.sourceforge.jasa.agent.valuation
Class BuyerIntervalValuer

java.lang.Object
  extended by net.sourceforge.jasa.agent.valuation.AbstractValuationPolicy
      extended by net.sourceforge.jasa.agent.valuation.FixedValuer
          extended by net.sourceforge.jasa.agent.valuation.IntervalValuer
              extended by net.sourceforge.jasa.agent.valuation.BuyerIntervalValuer
All Implemented Interfaces:
java.io.Serializable, ValuationPolicy, MarketEventListener

public class BuyerIntervalValuer
extends IntervalValuer
implements java.io.Serializable

Buyers configured with this valuation policy will receive a unique private value from a common set of values starting at minValue and incrementing by step as each agent is assigned a valuation.

See Also:
Serialized Form
 

Field Summary
protected static boolean firstValue
           
protected static double minValue
          The minimum valuation that any buyer will receive.
protected static double nextValue
           
protected static double step
          The increment in valuation to use
 
Fields inherited from class net.sourceforge.jasa.agent.valuation.IntervalValuer
P_DEF_BASE, P_MINVALUE, P_STEP
 
Fields inherited from class net.sourceforge.jasa.agent.valuation.FixedValuer
value
 
Fields inherited from class net.sourceforge.jasa.agent.valuation.AbstractValuationPolicy
agent
 
Constructor Summary
BuyerIntervalValuer()
           
BuyerIntervalValuer(double minValue, double step)
           
 
Method Summary
 boolean firstValue()
           
 double getMinValue()
           
 double getNextValue()
           
 double getStep()
           
 void setFirstValue(boolean firstValue)
           
 void setMinValue(double value)
           
 void setNextValue(double value)
           
 void setStep(double step)
           
 
Methods inherited from class net.sourceforge.jasa.agent.valuation.IntervalValuer
initialise, reset
 
Methods inherited from class net.sourceforge.jasa.agent.valuation.FixedValuer
consumeUnit, determineValue, eventOccurred, setValue, subscribeToEvents, toString
 
Methods inherited from class net.sourceforge.jasa.agent.valuation.AbstractValuationPolicy
getAgent, setAgent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

minValue

protected static double minValue
The minimum valuation that any buyer will receive.


step

protected static double step
The increment in valuation to use


nextValue

protected static double nextValue

firstValue

protected static boolean firstValue
Constructor Detail

BuyerIntervalValuer

public BuyerIntervalValuer()

BuyerIntervalValuer

public BuyerIntervalValuer(double minValue,
                           double step)
Method Detail

firstValue

public boolean firstValue()
Specified by:
firstValue in class IntervalValuer

getMinValue

public double getMinValue()
Specified by:
getMinValue in class IntervalValuer

getNextValue

public double getNextValue()
Specified by:
getNextValue in class IntervalValuer

getStep

public double getStep()
Specified by:
getStep in class IntervalValuer

setFirstValue

public void setFirstValue(boolean firstValue)
Specified by:
setFirstValue in class IntervalValuer

setMinValue

public void setMinValue(double value)
Specified by:
setMinValue in class IntervalValuer

setNextValue

public void setNextValue(double value)
Specified by:
setNextValue in class IntervalValuer

setStep

public void setStep(double step)
Specified by:
setStep in class IntervalValuer