org.databene.benerator.distribution
Class DistributingSampleGeneratorProxy<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.DistributingSampleGeneratorProxy<E>
All Implemented Interfaces:
java.io.Closeable, Generator<E>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class DistributingSampleGeneratorProxy<E>
extends GeneratorProxy<E>

Uses a SampleGenerator and a Distribution's Distribution.createGenerator(Class, Number, Number, Number, boolean) method for acting as a Generator proxy.

Created: 21.07.2010 01:57:31

Since:
0.6.3
Author:
Volker Bergmann

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

Constructor Detail

DistributingSampleGeneratorProxy

public DistributingSampleGeneratorProxy(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>

reset

public void reset()
Specified by:
reset in interface org.databene.commons.Resettable
Overrides:
reset in class GeneratorWrapper<E,E>

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<E>
Overrides:
close in class GeneratorWrapper<E,E>


Copyright © 2011. All Rights Reserved.