edu.cuny.cat.valuation
Class ValuationPolicy

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

public abstract class ValuationPolicy
extends java.lang.Object
implements AuctionEventListener, edu.cuny.obj.Resetable

A commodity valuation policy for determining private values for traders.

Version:
$Revision: 1.10 $
Author:
Steve Phelps

Field Summary
protected  double value
          The current valuation.
 
Constructor Summary
ValuationPolicy()
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
          Recalculate valuation(s) in response to an auction event.
 double getValue()
          Determine the current valuation of commodity in the given auction.
 void reset()
          resets the valuation policy so that the private value can be generated if applicable.
 void setValue(double value)
          sets the private value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected double value
The current valuation.

Constructor Detail

ValuationPolicy

public ValuationPolicy()
Method Detail

getValue

public double getValue()
Determine the current valuation of commodity in the given auction.


setValue

public void setValue(double value)
sets the private value.

Parameters:
value -

reset

public void reset()
resets the valuation policy so that the private value can be generated if applicable.

Specified by:
reset in interface edu.cuny.obj.Resetable

eventOccurred

public void eventOccurred(AuctionEvent event)
Recalculate valuation(s) in response to an auction event.

Specified by:
eventOccurred in interface AuctionEventListener

toString

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