Measurement class abstract interface

Technically, a measurement is not solely a number.

"Before stating the result of a measurement, it is essential that the quantity being presented is adequately described. This may be simple, as in the case of the length of a particular steel rod, but can become more complex when higher accuracy is required and where additional parameters, such as temperature, need to be specified. When a measurement result of a quantity is reported, the estimated value of the measurand (the quantity to be measured), and the uncertainty associated with that value, are necessary. Both are expressed in the same unit." https://www.bipm.org/documents/20126/41483022/SI-Brochure-9.pdf/fcf090b2-04e6-88cc-1149-c3e029ad8232

Unfortunately, in day-to-day scenarios people often observe a value as a "measurement" without an accompanying uncertainty value.

It's useful for a library to be able to provide usability for common usage with the ability to support advanced use. So rather than using num, we define the characteristics of what we want "the measurement result" to have.

Implemented types
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

added(num n) Measurement
inherited
compareTo(NumericalValue other) int
Compares this object to another object.
inherited
divided(num n) Measurement
inherited
multiplied(num n) Measurement
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subtracted(num n) Measurement
inherited
toNum() num
inherited
toString() String
A string representation of this object.
inherited

Operators

operator *(Measurement o) Measurement
inherited
operator +(Measurement o) Measurement
inherited
operator -(Measurement o) Measurement
inherited
operator /(Measurement o) Measurement
inherited
operator <(NumericalValue o) bool
inherited
operator <=(NumericalValue o) bool
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator >(NumericalValue o) bool
inherited
operator >=(NumericalValue o) bool
inherited