edu.cuny.cat.valuation
Class FixedValuerGenerator

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

public class FixedValuerGenerator
extends java.lang.Object
implements ValuerGenerator

Agents configured with valuation policies created by this generator will receive an identical fixed private value at value.

Parameters

base.value
double >= 0
(private value allocated)

Default Base

fixed_valuer

Version:
$Revision: 1.7 $
Author:
Jinzhong Niu

Field Summary
static java.lang.String P_DEF_BASE
           
static java.lang.String P_VALUE
           
protected  double value
           
 
Constructor Summary
FixedValuerGenerator()
           
FixedValuerGenerator(double value)
           
 
Method Summary
 ValuationPolicy createValuer()
          creates a new valuer.
 void eventOccurred(AuctionEvent event)
          Recalculate valuation(s) in response to an auction event.
 void reset()
           
 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

P_DEF_BASE

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

P_VALUE

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

value

protected double value
Constructor Detail

FixedValuerGenerator

public FixedValuerGenerator()

FixedValuerGenerator

public FixedValuerGenerator(double value)
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

reset

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

createValuer

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

Specified by:
createValuer in interface ValuerGenerator

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

toString

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