edu.cuny.cat.valuation
Class FixedValuerGenerator
java.lang.Object
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
- Version:
- $Revision: 1.7 $
- Author:
- Jinzhong Niu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
FixedValuerGenerator
public FixedValuerGenerator()
FixedValuerGenerator
public FixedValuerGenerator(double value)
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