org.databene.benerator.distribution.sequence
Class StepDoubleGenerator

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.StepDoubleGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<java.lang.Double>, Resettable, ThreadAware

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

Double Generator that implements a 'step' Double Sequence.

Created: 26.07.2007 18: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
StepDoubleGenerator()
           
StepDoubleGenerator(double min, double max)
           
StepDoubleGenerator(double min, double max, double increment)
           
StepDoubleGenerator(double min, double max, double increment, java.lang.Double initial)
           
 
Method Summary
 java.lang.Double generate()
          Returns an instance of the generic type E.
 void init(GeneratorContext context)
           
 void reset()
           
 
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

StepDoubleGenerator

public StepDoubleGenerator()

StepDoubleGenerator

public StepDoubleGenerator(double min,
                           double max)

StepDoubleGenerator

public StepDoubleGenerator(double min,
                           double max,
                           double increment)

StepDoubleGenerator

public StepDoubleGenerator(double min,
                           double max,
                           double increment,
                           java.lang.Double initial)
Method Detail

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 Resettable
Overrides:
reset in class AbstractGenerator<java.lang.Double>


Copyright © 2010. All Rights Reserved.