__init__(self,
scalarDenominator=0,
scalarFloat=0.0,
scalarNumerator=0,
multiplyBeforeAdd=False,
offset=0,
IntervalBlocks=None,
ReadingType=None,
*args,
**kw_args)
(Constructor)
|
|
Initialises a new 'Pending' instance.
- Parameters:
scalarDenominator - (if scalar is rational number) When 'IntervalReading.value' is
multiplied by this attribute and divided by 'scalarDenominator,
it causes a unit of measure conversion to occur, resulting in the
'ReadingType.unit'.
scalarFloat - (if scalar is floating number) When multiplied with
'IntervalReading.value', it causes a unit of measure conversion
to occur, resulting in the 'ReadingType.unit'.
scalarNumerator - (if scalar is integer or rational number) When the scalar is a
simple integer, and this attribute is presented alone and
multiplied with 'IntervalReading.value', it causes a unit of
measure conversion to occur, resulting in the 'ReadingType.unit'.
It is never used in conjunction with 'scalarFloat', only with
'scalarDenominator'.
multiplyBeforeAdd - Whether scalars should be applied before adding the 'offset'.
offset - (if applicable) Offset to be added as well as multiplication
using scalars.
IntervalBlocks - All blocks of interval reading values to which this pending
conversion applies.
ReadingType - Reading type resulting from this pending conversion.
- Overrides:
object.__init__
|