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

java.lang.Object
  extended by org.databene.benerator.distribution.IndividualWeight<E>
All Implemented Interfaces:
Distribution, Weight
Direct Known Subclasses:
AttachedWeight, FeatureWeight

public abstract class IndividualWeight<E>
extends java.lang.Object
implements Weight

Distribution type that provides an individual weight for each object.

Created at 27.04.2008 19:17:38

Since:
0.5.2
Author:
Volker Bergmann

Constructor Summary
IndividualWeight()
           
 
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)
           
abstract  double weight(E object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndividualWeight

public IndividualWeight()
Method Detail

weight

public abstract double weight(E object)

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.