uk.ac.liv.auction.agent
Class BuyerIntervalValuer

java.lang.Object
  extended byuk.ac.liv.auction.agent.FixedValuer
      extended byuk.ac.liv.auction.agent.IntervalValuer
          extended byuk.ac.liv.auction.agent.BuyerIntervalValuer
All Implemented Interfaces:
AuctionEventListener, Parameterizable, Resetable, java.io.Serializable, ValuationPolicy

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.

Version:
$Revision: 1.4 $
Author:
Steve Phelps
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 uk.ac.liv.auction.agent.IntervalValuer
P_MINVALUE, P_STEP
 
Fields inherited from class uk.ac.liv.auction.agent.FixedValuer
P_VALUE, value
 
Constructor Summary
BuyerIntervalValuer()
           
 
Method Summary
protected  boolean firstValue()
           
protected  double getMinValue()
           
protected  double getNextValue()
           
protected  double getStep()
           
protected  void setFirstValue(boolean firstValue)
           
protected  void setMinValue(double value)
           
protected  void setNextValue(double value)
           
protected  void setStep(double step)
           
 
Methods inherited from class uk.ac.liv.auction.agent.IntervalValuer
setup
 
Methods inherited from class uk.ac.liv.auction.agent.FixedValuer
consumeUnit, determineValue, eventOccurred, reset, setValue, toString
 
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()
Method Detail

firstValue

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

getMinValue

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

getNextValue

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

getStep

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

setFirstValue

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

setMinValue

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

setNextValue

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

setStep

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