org.databene.benerator.distribution.sequence
Class RandomWalkLongGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<E>
org.databene.benerator.util.AbstractNonNullGenerator<E>
org.databene.benerator.primitive.number.AbstractNonNullNumberGenerator<java.lang.Long>
org.databene.benerator.distribution.sequence.RandomWalkLongGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.lang.Long>, NonNullGenerator<java.lang.Long>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class RandomWalkLongGenerator
- extends AbstractNonNullNumberGenerator<java.lang.Long>
Long Generator that implements a 'randomWalk' Long Sequence.
Created: 13.06.2006 07:36:45
- Since:
- 0.1
- Author:
- Volker Bergmann
Constructor Summary |
RandomWalkLongGenerator()
|
RandomWalkLongGenerator(long min,
long max)
|
RandomWalkLongGenerator(long min,
long max,
long minIncrement,
long maxIncrement)
|
RandomWalkLongGenerator(long min,
long max,
long granularity,
long initial,
long minIncrement,
long maxIncrement)
|
RandomWalkLongGenerator(long min,
long max,
long granularity,
long initial,
long minIncrement,
long maxIncrement,
Distribution incrementDistribution)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RandomWalkLongGenerator
public RandomWalkLongGenerator()
RandomWalkLongGenerator
public RandomWalkLongGenerator(long min,
long max)
RandomWalkLongGenerator
public RandomWalkLongGenerator(long min,
long max,
long minIncrement,
long maxIncrement)
RandomWalkLongGenerator
public RandomWalkLongGenerator(long min,
long max,
long granularity,
long initial,
long minIncrement,
long maxIncrement)
RandomWalkLongGenerator
public RandomWalkLongGenerator(long min,
long max,
long granularity,
long initial,
long minIncrement,
long maxIncrement,
Distribution incrementDistribution)
getNext
public long getNext()
setNext
public void setNext(long next)
init
public void init(GeneratorContext context)
- Specified by:
init
in interface Generator<java.lang.Long>
- Overrides:
init
in class AbstractNonNullNumberGenerator<java.lang.Long>
generate
public java.lang.Long generate()
- Specified by:
generate
in interface NonNullGenerator<java.lang.Long>
- Specified by:
generate
in class AbstractNonNullGenerator<java.lang.Long>
reset
public void reset()
- Specified by:
reset
in interface org.databene.commons.Resettable
- Overrides:
reset
in class AbstractGenerator<java.lang.Long>
close
public void close()
- Description copied from interface:
Generator
- Closes the generator. After invocation the state is unavailable.
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in interface Generator<java.lang.Long>
- Overrides:
close
in class AbstractGenerator<java.lang.Long>
Copyright © 2013. All Rights Reserved.