edu.cuny.cat.valuation
Class RandomValuer
java.lang.Object
edu.cuny.cat.valuation.ValuationPolicy
edu.cuny.cat.valuation.AbstractRandomValuer
edu.cuny.cat.valuation.RandomValuer
- All Implemented Interfaces:
- AuctionEventListener, edu.cuny.obj.Resetable
- Direct Known Subclasses:
- DailyRandomValuer, GamelyRandomValuer
public class RandomValuer
- extends AbstractRandomValuer
A framework of valuation policy in which a valuation is drawn from a
distribution. The drawing will be repeated if the valuation falls out of the
pre-determined range in RandomValuerGenerator
.
- Version:
- $Revision: 1.14 $
- Author:
- Jinzhong Niu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
generator
protected RandomValuerGenerator generator
- The generator instance that created this valuer
MAX_REDRAWING_TIMES
public static final int MAX_REDRAWING_TIMES
- the maximum times to redraw the valuation from the distribution when
previous drawings bring values out of the range defined in
RandomValuerGenerator
.
- See Also:
- Constant Field Values
RandomValuer
public RandomValuer()
setGenerator
public void setGenerator(RandomValuerGenerator generator)
getGenerator
public RandomValuerGenerator getGenerator()
drawRandomValue
public void drawRandomValue()
- TODO: to check later if this non-deterministic behavior is supposed so.
- Overrides:
drawRandomValue
in class AbstractRandomValuer