org.databene.benerator.distribution
Class AbstractWeightFunction

java.lang.Object
  extended by org.databene.benerator.distribution.AbstractWeightFunction
All Implemented Interfaces:
Distribution, Weight, WeightFunction
Direct Known Subclasses:
ConstantFunction, DiscreteFunction, ExponentialFunction, GaussianFunction

public abstract class AbstractWeightFunction
extends java.lang.Object
implements WeightFunction

Abstract implementation of the WeightFunction interface.

Created at 30.06.2009 07:13:49

Since:
0.6.0
Author:
Volker Bergmann

Constructor Summary
AbstractWeightFunction()
           
 
Method Summary
<T> Generator<T>
applyTo(Generator<T> source, boolean unique)
           
<T extends java.lang.Number>
NonNullGenerator<T>
createNumberGenerator(java.lang.Class<T> numberType, T min, T max, T granularity, boolean unique)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.databene.benerator.distribution.WeightFunction
value
 

Constructor Detail

AbstractWeightFunction

public AbstractWeightFunction()
Method Detail

createNumberGenerator

public <T extends java.lang.Number> NonNullGenerator<T> createNumberGenerator(java.lang.Class<T> numberType,
                                                                              T min,
                                                                              T max,
                                                                              T granularity,
                                                                              boolean unique)
Specified by:
createNumberGenerator in interface Distribution

applyTo

public <T> Generator<T> applyTo(Generator<T> source,
                                boolean unique)
Specified by:
applyTo in interface Distribution


Copyright © 2013. All Rights Reserved.