org.databene.benerator.distribution.sequence
Class RandomWalkDoubleGenerator

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<E>
      extended by org.databene.benerator.primitive.number.AbstractNumberGenerator<java.lang.Double>
          extended by org.databene.benerator.distribution.sequence.RandomWalkDoubleGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<java.lang.Double>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class RandomWalkDoubleGenerator
extends AbstractNumberGenerator<java.lang.Double>

Double Generator that implements a 'randomWalk' Double Sequence.

Created: 13.06.2006 07:36:45

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.primitive.number.AbstractNumberGenerator
generatedType, max, min, precision
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, state
 
Constructor Summary
RandomWalkDoubleGenerator()
           
RandomWalkDoubleGenerator(double min, double max)
           
RandomWalkDoubleGenerator(double min, double max, double minIncrement, double maxIncrement)
           
RandomWalkDoubleGenerator(double min, double max, double precision, double minIncrement, double maxIncrement)
           
 
Method Summary
 java.lang.Double generate()
          Returns an instance of the generic type E.
 double getNext()
           
 void init(GeneratorContext context)
           
 void reset()
           
 void setNext(double next)
           
 void setPrecision(double precision)
           
 
Methods inherited from class org.databene.benerator.primitive.number.AbstractNumberGenerator
getGeneratedType, getMax, getMin, getPrecision, isParallelizable, isThreadSafe, setMax, setMin, setPrecision
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, toString, wasInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomWalkDoubleGenerator

public RandomWalkDoubleGenerator()

RandomWalkDoubleGenerator

public RandomWalkDoubleGenerator(double min,
                                 double max)

RandomWalkDoubleGenerator

public RandomWalkDoubleGenerator(double min,
                                 double max,
                                 double minIncrement,
                                 double maxIncrement)

RandomWalkDoubleGenerator

public RandomWalkDoubleGenerator(double min,
                                 double max,
                                 double precision,
                                 double minIncrement,
                                 double maxIncrement)
Method Detail

setPrecision

public void setPrecision(double precision)

getNext

public double getNext()

setNext

public void setNext(double next)

init

public void init(GeneratorContext context)
Specified by:
init in interface Generator<java.lang.Double>
Overrides:
init in class AbstractNumberGenerator<java.lang.Double>

generate

public java.lang.Double generate()
Description copied from interface: Generator
Returns an instance of the generic type E.


reset

public void reset()
Specified by:
reset in interface org.databene.commons.Resettable
Overrides:
reset in class AbstractGenerator<java.lang.Double>


Copyright © 2011. All Rights Reserved.