edu.cuny.cat.valuation
Class DistinctDistributionValuerGenerator

java.lang.Object
  extended by edu.cuny.cat.valuation.DistinctDistributionValuerGenerator
All Implemented Interfaces:
AuctionEventListener, ValuerGenerator, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable

public class DistinctDistributionValuerGenerator
extends java.lang.Object
implements ValuerGenerator

This valuer generator creates valuation policies in which we randomly determine our valuation across all auctions and all units at agent-initialisation time. Valuations are drawn from a uniform distribution on ranges that vary game from game in a multi-game simulation. This is in contrast to the constant range and various types of distributions used in RandomValuerGenerator.

Parameters

base .minvaluemin
double >= 0
(the lower bound of the minimum valuations of ranges)
base .minvaluemax
double >=0
(the upper bound of the minimum valuations of ranges)
base .rangemin
double >= 0
(the lower bound of the sizes of ranges)
base .rangemax
double >=0
(the upper bound of the sizes of ranges)

Default Base

distinct_distribution_valuer

Version:
$Revision: 1.8 $
Author:
Jinzhong Niu

Field Summary
protected  double minValueMax
           
protected  double minValueMin
           
static java.lang.String P_DEF_BASE
           
static java.lang.String P_MINVALUEMAX
           
static java.lang.String P_MINVALUEMIN
           
static java.lang.String P_RANGEMAX
           
static java.lang.String P_RANGEMIN
           
protected  double rangeMax
           
protected  double rangeMin
           
 
Constructor Summary
DistinctDistributionValuerGenerator()
           
DistinctDistributionValuerGenerator(double minValueMin, double minValueMax, double rangeMin, double rangeMax)
           
 
Method Summary
 ValuationPolicy createValuer()
          creates a new valuer.
 void eventOccurred(AuctionEvent event)
          Recalculate valuation(s) in response to an auction event.
 double getMinValueMax()
           
 double getMinValueMin()
           
 double getRangeMax()
           
 double getRangeMin()
           
 void reset()
           
 void setMinValueMax(double minValueMax)
           
 void setMinValueMin(double minValueMin)
           
 void setRangeMax(double rangeMax)
           
 void setRangeMin(double rangeMin)
           
 void setup(edu.cuny.config.param.ParameterDatabase parameters, edu.cuny.config.param.Parameter base)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

minValueMin

protected double minValueMin

minValueMax

protected double minValueMax

rangeMin

protected double rangeMin

rangeMax

protected double rangeMax

P_DEF_BASE

public static final java.lang.String P_DEF_BASE
See Also:
Constant Field Values

P_MINVALUEMIN

public static final java.lang.String P_MINVALUEMIN
See Also:
Constant Field Values

P_MINVALUEMAX

public static final java.lang.String P_MINVALUEMAX
See Also:
Constant Field Values

P_RANGEMIN

public static final java.lang.String P_RANGEMIN
See Also:
Constant Field Values

P_RANGEMAX

public static final java.lang.String P_RANGEMAX
See Also:
Constant Field Values
Constructor Detail

DistinctDistributionValuerGenerator

public DistinctDistributionValuerGenerator()

DistinctDistributionValuerGenerator

public DistinctDistributionValuerGenerator(double minValueMin,
                                           double minValueMax,
                                           double rangeMin,
                                           double rangeMax)
Method Detail

setup

public void setup(edu.cuny.config.param.ParameterDatabase parameters,
                  edu.cuny.config.param.Parameter base)
Specified by:
setup in interface edu.cuny.config.param.Parameterizable

createValuer

public ValuationPolicy createValuer()
Description copied from interface: ValuerGenerator
creates a new valuer.

Specified by:
createValuer in interface ValuerGenerator

reset

public void reset()
Specified by:
reset in interface edu.cuny.obj.Resetable

eventOccurred

public void eventOccurred(AuctionEvent event)
Description copied from interface: ValuerGenerator
Recalculate valuation(s) in response to an auction event.

Specified by:
eventOccurred in interface AuctionEventListener
Specified by:
eventOccurred in interface ValuerGenerator

getMinValueMin

public double getMinValueMin()

setMinValueMin

public void setMinValueMin(double minValueMin)

getMinValueMax

public double getMinValueMax()

setMinValueMax

public void setMinValueMax(double minValueMax)

getRangeMin

public double getRangeMin()

setRangeMin

public void setRangeMin(double rangeMin)

getRangeMax

public double getRangeMax()

setRangeMax

public void setRangeMax(double rangeMax)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object