uk.ac.liv.auction.electricity
Class StandardRandomizer

java.lang.Object
  extended byuk.ac.liv.auction.electricity.StandardRandomizer
All Implemented Interfaces:
Parameterizable, java.io.Serializable
Direct Known Subclasses:
FixedScheduleRandomizer

public class StandardRandomizer
extends java.lang.Object
implements Parameterizable, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  RoundRobinAuction auction
           
protected  ElectricityExperiment experiment
           
protected  double maxPrivateValue
           
protected  double minPrivateValue
           
protected  cern.jet.random.engine.RandomEngine privValuePRNG
           
protected  long[] seeds
           
 
Constructor Summary
StandardRandomizer()
           
StandardRandomizer(ElectricityExperiment simulation)
           
 
Method Summary
protected  void generatePRNGseeds(int numIterations)
           
protected  double[][] generateRandomizedPrivateValues(int numTraders, int numIterations)
           
 void randomizePrivateValues(double[][] values, int iteration)
           
 double randomPrivateValue()
           
 double randomPrivateValue(double min, double max)
           
 double randomValue(cern.jet.random.engine.RandomEngine prng, double min, double max)
           
 void setExperiment(ElectricityExperiment experiment)
           
 void setup(ec.util.ParameterDatabase parameters, ec.util.Parameter base)
          Initialise this object from a parameter database.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

auction

protected RoundRobinAuction auction

minPrivateValue

protected double minPrivateValue

maxPrivateValue

protected double maxPrivateValue

experiment

protected ElectricityExperiment experiment

privValuePRNG

protected cern.jet.random.engine.RandomEngine privValuePRNG

seeds

protected long[] seeds
Constructor Detail

StandardRandomizer

public StandardRandomizer(ElectricityExperiment simulation)

StandardRandomizer

public StandardRandomizer()
Method Detail

setup

public void setup(ec.util.ParameterDatabase parameters,
                  ec.util.Parameter base)
Description copied from interface: Parameterizable
Initialise this object from a parameter database.

Specified by:
setup in interface Parameterizable

setExperiment

public void setExperiment(ElectricityExperiment experiment)

randomValue

public double randomValue(cern.jet.random.engine.RandomEngine prng,
                          double min,
                          double max)

randomPrivateValue

public double randomPrivateValue(double min,
                                 double max)

randomPrivateValue

public double randomPrivateValue()

randomizePrivateValues

public void randomizePrivateValues(double[][] values,
                                   int iteration)

generateRandomizedPrivateValues

protected double[][] generateRandomizedPrivateValues(int numTraders,
                                                     int numIterations)

generatePRNGseeds

protected void generatePRNGseeds(int numIterations)

toString

public java.lang.String toString()