Difference between revisions of "Extensions.Measure.Measurement"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Data Type '''Measurement'''}}[[Category:DataType]][[Category:Measure]] | {{DISPLAYTITLE:Data Type '''Measurement'''}}[[Category:DataType]][[Category:Measure]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationDataType | Measurement| Container for a specific measurement | [[Core.DataTypes. | + | {{ClassificationDataType | Measurement| Container for a specific measurement | [[Core.DataTypes.ComplexDataType|Complex Data Type]] | [[Core.DataTypes.ComplexDataType.ComplexType|ComplexType]] }} |
== Description == | == Description == | ||
− | '''Measurement''' is used as a container for a specific measurement. It | + | '''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 | + | 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. | ||
{{ConversionTable | | {{ConversionTable | | ||
String=Returns the value of measurement variable | StringSample=<tt>Measurement measureMentVariable = 1 km; String s = ToString(measureMentVariable); // Returns "1 km"</tt> | String=Returns the value of measurement variable | StringSample=<tt>Measurement measureMentVariable = 1 km; String s = ToString(measureMentVariable); // Returns "1 km"</tt> | ||
}} | }} | ||
+ | |||
+ | ==Sample== | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | Measure.Measurement MeasurementVariable; | ||
+ | </syntaxhighlight> |
Latest revision as of 09:40, 22 October 2018
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;