Class ShuffleDoubleGenerator
- java.lang.Object
-
- com.rapiddweller.benerator.util.AbstractGenerator<E>
-
- com.rapiddweller.benerator.util.AbstractNonNullGenerator<E>
-
- com.rapiddweller.benerator.primitive.number.AbstractNonNullNumberGenerator<java.lang.Double>
-
- com.rapiddweller.benerator.distribution.sequence.ShuffleDoubleGenerator
-
- All Implemented Interfaces:
Generator<java.lang.Double>
,NonNullGenerator<java.lang.Double>
,com.rapiddweller.common.Resettable
,com.rapiddweller.common.ThreadAware
,java.io.Closeable
,java.lang.AutoCloseable
public class ShuffleDoubleGenerator extends AbstractNonNullNumberGenerator<java.lang.Double>
Double Generator that implements a 'shuffle' Double Sequence.
Created: 18.06.2006 14:40:29- Since:
- 0.1
- Author:
- Volker Bergmann
-
-
Field Summary
-
Fields inherited from class com.rapiddweller.benerator.primitive.number.AbstractNonNullNumberGenerator
generatedType, granularity, max, min
-
Fields inherited from class com.rapiddweller.benerator.util.AbstractGenerator
context, logger, state
-
-
Constructor Summary
Constructors Constructor Description ShuffleDoubleGenerator()
Instantiates a new Shuffle double generator.ShuffleDoubleGenerator(double min, double max, double granularity, double increment)
Instantiates a new Shuffle double generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
generate()
Generate e.double
getIncrement()
Gets increment.void
init(GeneratorContext context)
Init.void
reset()
void
setIncrement(double increment)
Sets increment.void
setMin(java.lang.Double min)
Sets min.-
Methods inherited from class com.rapiddweller.benerator.primitive.number.AbstractNonNullNumberGenerator
getGeneratedType, getGranularity, getMax, getMin, isParallelizable, isThreadSafe, setGranularity, setMax
-
Methods inherited from class com.rapiddweller.benerator.util.AbstractNonNullGenerator
generate
-
Methods inherited from class com.rapiddweller.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, getResultWrapper, toString, wasInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.rapiddweller.benerator.Generator
close, wasInitialized
-
-
-
-
Constructor Detail
-
ShuffleDoubleGenerator
public ShuffleDoubleGenerator()
Instantiates a new Shuffle double generator.
-
ShuffleDoubleGenerator
public ShuffleDoubleGenerator(double min, double max, double granularity, double increment)
Instantiates a new Shuffle double generator.- Parameters:
min
- the minmax
- the maxgranularity
- the granularityincrement
- the increment
-
-
Method Detail
-
setMin
public void setMin(java.lang.Double min)
Description copied from class:AbstractNonNullNumberGenerator
Sets min.- Overrides:
setMin
in classAbstractNonNullNumberGenerator<java.lang.Double>
- Parameters:
min
- the min
-
getIncrement
public double getIncrement()
Gets increment.- Returns:
- the increment
-
setIncrement
public void setIncrement(double increment)
Sets increment.- Parameters:
increment
- the increment
-
init
public void init(GeneratorContext context) throws InvalidGeneratorSetupException
Description copied from interface:Generator
Init.- Specified by:
init
in interfaceGenerator<java.lang.Double>
- Overrides:
init
in classAbstractNonNullNumberGenerator<java.lang.Double>
- Parameters:
context
- the context- Throws:
InvalidGeneratorSetupException
-
generate
public java.lang.Double generate()
Description copied from interface:NonNullGenerator
Generate e.- Specified by:
generate
in interfaceNonNullGenerator<java.lang.Double>
- Specified by:
generate
in classAbstractNonNullGenerator<java.lang.Double>
- Returns:
- the e
-
reset
public void reset()
- Specified by:
reset
in interfacecom.rapiddweller.common.Resettable
- Overrides:
reset
in classAbstractGenerator<java.lang.Double>
-
-