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

java.lang.Object
  extended by org.databene.benerator.sample.WeightedSample<E>

public class WeightedSample<E>
extends java.lang.Object

Represents a single sample value for a generator. The sample value may have an additional weight information.

Created: 07.06.2006 19:05:13

Since:
0.1
Author:
Volker Bergmann

Constructor Summary
WeightedSample(E value, double weight)
          Initializes the Sample to the specified value and weight
 
Method Summary
 E getValue()
          Returns the value property
 double getWeight()
          Returns the weight property value
 void setValue(E value)
          Sets the weight property
 void setWeight(double weight)
          Sets the weight property value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WeightedSample

public WeightedSample(E value,
                      double weight)
Initializes the Sample to the specified value and weight

Method Detail

getValue

public E getValue()
Returns the value property

See Also:
weight

setValue

public void setValue(E value)
Sets the weight property

See Also:
weight

getWeight

public double getWeight()
Returns the weight property value

See Also:
weight

setWeight

public void setWeight(double weight)
Sets the weight property value

See Also:
weight

toString

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


Copyright © 2011. All Rights Reserved.