edu.cuny.cat.valuation
Class DistinctDistributionValuer

java.lang.Object
  extended by edu.cuny.cat.valuation.ValuationPolicy
      extended by edu.cuny.cat.valuation.AbstractRandomValuer
          extended by edu.cuny.cat.valuation.DistinctDistributionValuer
All Implemented Interfaces:
AuctionEventListener, edu.cuny.obj.Resetable

public class DistinctDistributionValuer
extends AbstractRandomValuer

A valuation policy in which valuations are drawn from a uniform distribution which remains the same during a game but may change game from game.

Version:
$Revision: 1.11 $
Author:
Jinzhong Niu

Field Summary
protected  DistinctDistributionValuerGenerator generator
          The generator instance that created this valuer
protected  cern.jet.random.Uniform minValueDist
          The distribution to draw the lower bound of the range for the uniform distribution.
protected  cern.jet.random.Uniform rangeDist
          The distribution to draw the length of the range for the uniform distribution.
 
Fields inherited from class edu.cuny.cat.valuation.AbstractRandomValuer
distribution
 
Fields inherited from class edu.cuny.cat.valuation.ValuationPolicy
value
 
Constructor Summary
DistinctDistributionValuer()
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
          Recalculate valuation(s) in response to an auction event.
 DistinctDistributionValuerGenerator getGenerator()
           
 void setGenerator(DistinctDistributionValuerGenerator generator)
           
 
Methods inherited from class edu.cuny.cat.valuation.AbstractRandomValuer
drawRandomValue, getDistribution, setDistribution
 
Methods inherited from class edu.cuny.cat.valuation.ValuationPolicy
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 DistinctDistributionValuerGenerator generator
The generator instance that created this valuer


minValueDist

protected cern.jet.random.Uniform minValueDist
The distribution to draw the lower bound of the range for the uniform distribution.


rangeDist

protected cern.jet.random.Uniform rangeDist
The distribution to draw the length of the range for the uniform distribution.

Constructor Detail

DistinctDistributionValuer

public DistinctDistributionValuer()
Method Detail

setGenerator

public void setGenerator(DistinctDistributionValuerGenerator generator)

getGenerator

public DistinctDistributionValuerGenerator getGenerator()

eventOccurred

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

Specified by:
eventOccurred in interface AuctionEventListener
Overrides:
eventOccurred in class ValuationPolicy