org.databene.benerator.sample
Class SeedGenerator<E>

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<E>
      extended by org.databene.benerator.util.AbstractNonNullGenerator<E>
          extended by org.databene.benerator.util.UnsafeNonNullGenerator<E[]>
              extended by org.databene.benerator.sample.SeedGenerator<E>
All Implemented Interfaces:
java.io.Closeable, Generator<E[]>, NonNullGenerator<E[]>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class SeedGenerator<E>
extends UnsafeNonNullGenerator<E[]>

Generates value sequences derived from seed sequences.

Created at 12.07.2009 09:04:43

Since:
0.6.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, logger, state
 
Constructor Summary
SeedGenerator(java.lang.Class<E> atomType, int depth)
           
 
Method Summary
 void addSample(E... sequence)
           
 E[] generate()
           
 int getDepth()
           
 java.lang.Class<E[]> getGeneratedType()
          Declares the type of the objects returned by the generate() method.
 void init(GeneratorContext context)
           
 void printState()
           
 void printState(java.lang.String indent)
           
 
Methods inherited from class org.databene.benerator.util.UnsafeNonNullGenerator
isParallelizable, isThreadSafe
 
Methods inherited from class org.databene.benerator.util.AbstractNonNullGenerator
generate
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, getResultWrapper, reset, toString, wasInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.databene.benerator.Generator
close, wasInitialized
 
Methods inherited from interface org.databene.commons.Resettable
reset
 

Constructor Detail

SeedGenerator

public SeedGenerator(java.lang.Class<E> atomType,
                     int depth)
Method Detail

getDepth

public int getDepth()

addSample

public void addSample(E... sequence)

getGeneratedType

public java.lang.Class<E[]> getGeneratedType()
Description copied from interface: Generator
Declares the type of the objects returned by the generate() method.


init

public void init(GeneratorContext context)
Specified by:
init in interface Generator<E[]>
Overrides:
init in class AbstractGenerator<E[]>

generate

public E[] generate()
Specified by:
generate in interface NonNullGenerator<E[]>
Specified by:
generate in class AbstractNonNullGenerator<E[]>

printState

public void printState()

printState

public void printState(java.lang.String indent)


Copyright © 2013. All Rights Reserved.