uk.ac.liv.auction.agent
Class RandomScheduleValuer

java.lang.Object
  extended byuk.ac.liv.auction.agent.RandomValuer
      extended byuk.ac.liv.auction.agent.RandomScheduleValuer
All Implemented Interfaces:
AuctionEventListener, Parameterizable, Resetable, java.io.Serializable, ValuationPolicy

public class RandomScheduleValuer
extends RandomValuer
implements java.io.Serializable

A valuation policy which specifies a randomly-generated series of valuations for each unit of commodity.

Version:
$Revision: 1.6 $
Author:
Steve Phelps
See Also:
Serialized Form

Field Summary
 
Fields inherited from class uk.ac.liv.auction.agent.RandomValuer
distribution, maxValue, minValue, P_MAXVALUE, P_MINVALUE, value
 
Constructor Summary
RandomScheduleValuer()
           
RandomScheduleValuer(double min, double max)
           
 
Method Summary
 void consumeUnit(Auction auction)
          Recalculate valuation after consumption of the commodity being traded in the given auction.
 
Methods inherited from class uk.ac.liv.auction.agent.RandomValuer
determineValue, drawRandomValue, eventOccurred, getCurrentValuation, getMaxValue, getMinValue, initialise, reset, setMaxValue, setMinValue, setup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomScheduleValuer

public RandomScheduleValuer(double min,
                            double max)

RandomScheduleValuer

public RandomScheduleValuer()
Method Detail

consumeUnit

public void consumeUnit(Auction auction)
Description copied from interface: ValuationPolicy
Recalculate valuation after consumption of the commodity being traded in the given auction.

Specified by:
consumeUnit in interface ValuationPolicy
Overrides:
consumeUnit in class RandomValuer