net.sourceforge.jasa.agent.valuation
Class RandomScheduleValuer

java.lang.Object
  extended by net.sourceforge.jasa.agent.valuation.AbstractValuationPolicy
      extended by net.sourceforge.jasa.agent.valuation.AbstractRandomValuer
          extended by net.sourceforge.jasa.agent.valuation.RandomValuer
              extended by net.sourceforge.jasa.agent.valuation.RandomScheduleValuer
All Implemented Interfaces:
java.io.Serializable, ValuationPolicy, MarketEventListener

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.

See Also:
Serialized Form
 

Field Summary
 
Fields inherited from class net.sourceforge.jasa.agent.valuation.AbstractRandomValuer
distribution, value
 
Fields inherited from class net.sourceforge.jasa.agent.valuation.AbstractValuationPolicy
agent
 
Constructor Summary
RandomScheduleValuer()
           
RandomScheduleValuer(double min, double max, RandomEngine prng)
           
 
Method Summary
 void consumeUnit(Market auction)
          Recalculate valuation after consumption of the commodity being traded in the given market.
 void eventOccurred(SimEvent event)
           
 void subscribeToEvents(EventScheduler scheduler)
           
 
Methods inherited from class net.sourceforge.jasa.agent.valuation.RandomValuer
initialise, setAgent
 
Methods inherited from class net.sourceforge.jasa.agent.valuation.AbstractRandomValuer
determineValue, drawRandomValue, getCurrentValuation, getDistribution, reset, setDistribution, toString
 
Methods inherited from class net.sourceforge.jasa.agent.valuation.AbstractValuationPolicy
getAgent
 
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,
                            RandomEngine prng)

RandomScheduleValuer

public RandomScheduleValuer()
Method Detail

consumeUnit

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

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

subscribeToEvents

public void subscribeToEvents(EventScheduler scheduler)
Overrides:
subscribeToEvents in class RandomValuer

eventOccurred

public void eventOccurred(SimEvent event)
Overrides:
eventOccurred in class RandomValuer