edu.cuny.cat.valuation
Class RandomValuer

java.lang.Object
  extended by edu.cuny.cat.valuation.ValuationPolicy
      extended by edu.cuny.cat.valuation.AbstractRandomValuer
          extended by 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

Field Summary
protected  RandomValuerGenerator generator
          The generator instance that created this valuer
static 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.
 
Fields inherited from class edu.cuny.cat.valuation.AbstractRandomValuer
distribution
 
Fields inherited from class edu.cuny.cat.valuation.ValuationPolicy
value
 
Constructor Summary
RandomValuer()
           
 
Method Summary
 void drawRandomValue()
          TODO: to check later if this non-deterministic behavior is supposed so.
 RandomValuerGenerator getGenerator()
           
 void setGenerator(RandomValuerGenerator generator)
           
 
Methods inherited from class edu.cuny.cat.valuation.AbstractRandomValuer
getDistribution, setDistribution
 
Methods inherited from class edu.cuny.cat.valuation.ValuationPolicy
eventOccurred, getValue, reset, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

RandomValuer

public RandomValuer()
Method Detail

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