org.databene.benerator.distribution
Class FeatureWeight

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

public class FeatureWeight
extends IndividualWeight<java.lang.Object>

Implements the IndividualWeight function for arbitrary feature names, supporting e.g. properties, attributes, or Map keys.

Created at 27.04.2008 17:23:45

Since:
0.5.2
Author:
Volker Bergmann

Constructor Summary
FeatureWeight()
           
FeatureWeight(java.lang.String feature)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getWeightFeature()
           
 int hashCode()
           
 void setWeightFeature(java.lang.String weightFeature)
           
 java.lang.String toString()
           
 double weight(java.lang.Object object)
           
 
Methods inherited from class org.databene.benerator.distribution.IndividualWeight
applyTo, createNumberGenerator
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureWeight

public FeatureWeight()

FeatureWeight

public FeatureWeight(java.lang.String feature)
Method Detail

getWeightFeature

public java.lang.String getWeightFeature()

setWeightFeature

public void setWeightFeature(java.lang.String weightFeature)

weight

public double weight(java.lang.Object object)
Specified by:
weight in class IndividualWeight<java.lang.Object>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013. All Rights Reserved.