org.databene.benerator.distribution
Class DistributingGenerator<E>

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<P>
      extended by org.databene.benerator.wrapper.GeneratorWrapper<E,E>
          extended by org.databene.benerator.wrapper.GeneratorProxy<E>
              extended by org.databene.benerator.distribution.DistributingGenerator<E>
All Implemented Interfaces:
java.io.Closeable, Generator<E>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class DistributingGenerator<E>
extends GeneratorProxy<E>

General purpose generator proxy which is supposed to work with any distribution. The behavior on a reset is up to the generator created by the distribution.

Created: 22.03.2010 10:45:48

Since:
0.6.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.wrapper.GeneratorProxy
generatedType
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, logger, state
 
Constructor Summary
DistributingGenerator(Generator<E> dataProvider, Distribution distribution, boolean unique)
           
 
Method Summary
 void init(GeneratorContext context)
           
 
Methods inherited from class org.databene.benerator.wrapper.GeneratorProxy
generate, getGeneratedType, toString
 
Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper
close, equals, generateFromSource, getSource, getSourceWrapper, hashCode, isParallelizable, isThreadSafe, reset, setSource
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, getResultWrapper, wasInitialized
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistributingGenerator

public DistributingGenerator(Generator<E> dataProvider,
                             Distribution distribution,
                             boolean unique)
Method Detail

init

public void init(GeneratorContext context)
Specified by:
init in interface Generator<E>
Overrides:
init in class GeneratorWrapper<E,E>


Copyright © 2013. All Rights Reserved.