Package windSimSuite :: Module common :: Class _ConversionTable
[hide private]

Class _ConversionTable

source code

Used to convert a quantity between different units

Instance Methods [hide private]
 
__init__(self, default_unit, convert_to_default) source code
 
build_conversion_lists(self, default_unit, convert_to_default)
Build the conversion list for the unit used by default
source code
 
get_factor(self, unit_key)
Return the factor to pass from the unit_key to the default unit.
source code
 
get_factor_to(self, unit_key)
Return the factor to pass from the default unit to the unit_key
source code
 
get_keys_str(self)
Return all the possible keys as a string
source code