net.sourceforge.jasa.agent.valuation
Class DistinctDistributionValuer

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.DistinctDistributionValuer
All Implemented Interfaces:
java.io.Serializable, ValuationPolicy, MarketEventListener

public class DistinctDistributionValuer
extends AbstractRandomValuer

See Also:
Serialized Form
 

Field Summary
protected static double maxValue
           
protected static double minValue
           
protected  double minValueMax
           
protected  double minValueMin
           
protected  RandomEngine prng
           
protected  double rangeMax
           
protected  double rangeMin
           
 
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
DistinctDistributionValuer(double minValueMin, double minValueMax, double rangeMin, double rangeMax, RandomEngine prng)
           
DistinctDistributionValuer(RandomEngine prng)
           
 
Method Summary
 void eventOccurred(SimEvent event)
           
 double getMaxValue()
           
 double getMinValue()
           
 void initialise()
           
 void setAgent(TradingAgent agent)
           
 void subscribeToEvents(EventScheduler scheduler)
           
 
Methods inherited from class net.sourceforge.jasa.agent.valuation.AbstractRandomValuer
consumeUnit, 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
 

Field Detail

minValueMin

protected double minValueMin

minValueMax

protected double minValueMax

rangeMin

protected double rangeMin

rangeMax

protected double rangeMax

minValue

protected static double minValue

maxValue

protected static double maxValue

prng

protected RandomEngine prng
Constructor Detail

DistinctDistributionValuer

public DistinctDistributionValuer(RandomEngine prng)

DistinctDistributionValuer

public DistinctDistributionValuer(double minValueMin,
                                  double minValueMax,
                                  double rangeMin,
                                  double rangeMax,
                                  RandomEngine prng)
Method Detail

initialise

public void initialise()
Specified by:
initialise in interface ValuationPolicy
Specified by:
initialise in class AbstractRandomValuer

subscribeToEvents

public void subscribeToEvents(EventScheduler scheduler)

eventOccurred

public void eventOccurred(SimEvent event)

getMaxValue

public double getMaxValue()

getMinValue

public double getMinValue()

setAgent

public void setAgent(TradingAgent agent)
Specified by:
setAgent in interface ValuationPolicy
Overrides:
setAgent in class AbstractValuationPolicy