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

Class _PhysicQuantity

source code

Known Subclasses:
Angle, RotationalSpeed

A physical quantity stored with a default unit. The default unit is specified by the derived class. The conversion from one unit to another is achieved by the _ConversionTable. The user then stores a value to a particular unit by the __setitem__ method. He can retrieved the value to any available unit by __getitem__.

Instance Methods [hide private]
 
__init__(self, conv_table, value, unit) source code
 
__setitem__(self, unit_key, value) source code
 
__getitem__(self, unit_key) source code