Skip to main content

PendingCalculation

Class Description

When present, a scalar conversion that needs to be applied to every IntervalReading.value contained in IntervalBlock. This conversion results in a new associated ReadingType, reflecting the true dimensions of IntervalReading values after the conversion.

Attributes

NameTypeDescription
multiplyBeforeAddBooleanWhether scalars should be applied before adding the 'offset'.
offsetInteger(if applicable) Offset to be added as well as multiplication using scalars.
scalarDenominatorInteger(if scalar is rational number) When 'IntervalReading.value' is multiplied by 'scalarNumerator' and divided by this value, it causes a unit of measure conversion to occur, resulting in the 'ReadingType.unit'.
scalarFloatFloat(if scalar is floating number) When multiplied with 'IntervalReading.value', it causes a unit of measure conversion to occur, according to the 'ReadingType.unit'.
scalarNumeratorInteger(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'.

Relationships

Ancestors

No ancestor classes

Descendents

No descendent classes

Associations

Source ClassSource CardinalityTargetTarget CardinalitySource NameSource Assoc. DescriptionTarget NameTarget Assoc. Description
PendingCalculation0..1ReadingType1PendingCalculationPending calculation that produced this reading type.ReadingTypeReading type resulting from this pending conversion.
PendingCalculation0..1IntervalBlock0..*PendingCalculationPending calculation to apply to interval reading values contained by this block (after which the resulting reading type is different than the original because it reflects the conversion result).IntervalBlocksAll blocks of interval reading values to which this pending conversion applies.