org.rr0.im.business.event.circumstance
Class WeightImpl


public class WeightImpl
implements Weight

Weight Reference Implementation.

Author:
Jérôme Beau
Version: 19 juil. 2003 16:53:46

Field Summary
 private doubleweight
          The weight value, in kilograms.

Constructor Summary
WeightImpl(double weight)
           

Method Summary
 doublegetValue(Locale locale)
          The weight value in pounds for UK and US locales, and in kilograms for others.
 doubletoKilograms()
           
 doubletoPounds()
           

Field Detail

weight

private double weight
The weight value, in kilograms.
Constructor Detail

WeightImpl

public WeightImpl(double weight)
Method Detail

getValue

public double getValue(Locale locale)
The weight value in pounds for UK and US locales, and in kilograms for others.
Parameters:
locale The desired locale
Returns: The weight value, according to the locale

toKilograms

public double toKilograms()
Returns: The weight value, in kilograms.

toPounds

public double toPounds()
Returns: The weight value, in pounds.