Extensions.Measure.Measurement
Jump to navigation
Jump to search
Classification
Name | Measurement |
Short Description | Container for a specific measurement |
Class | Complex Data Type |
Base Data Type | ComplexType |
Default Value | Empty |
Provide a Literal | No |
SpecifiedBy | ISO 13209-3 |
Standard Compliant | Yes |
Description
Measurement is used as a container for a specific measurement. It includes a timestamp of the measurement, the measurement status, and the measured quantity.
The internal properties of a measurement can be acquired by the terms GetMeasurementQuantity, GetMeasurementTimestamp, GetMeasurementStatus, IsValidMeasurement and GetMeasurementValue.
Since the Measurement data type has no initialisation parts, a Measurement can not be declared constant.
Core Conversion
The following table shows the rules for conversion to another data type:
Conversion | Result | Sample |
ToBoolean | Undefined (should not be used) | |
ToInteger | Undefined (should not be used) | |
ToFloat | Undefined (should not be used) | |
ToString | Returns the value of measurement variable | Measurement measureMentVariable = 1 km; String s = ToString(measureMentVariable); // Returns "1 km" |
ToByteField | Undefined (should not be used) |
Sample
Measure.Measurement MeasurementVariable;