org.databene.benerator.distribution
Class FeatureWeight
java.lang.Object
org.databene.benerator.distribution.IndividualWeight<java.lang.Object>
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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FeatureWeight
public FeatureWeight()
FeatureWeight
public FeatureWeight(java.lang.String feature)
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.