Difference between revisions of "Extensions.Measure.IsValidMeasurement"
Jump to navigation
Jump to search
(Created page with "Category:Measure == Classification == {{ClassificationActivity | IsValidMeasurement | Evaluates the status of a measurement | Term | OTX Measure extension...") |
|||
Line 3: | Line 3: | ||
{{ClassificationActivity | IsValidMeasurement | Evaluates the status of a measurement | [[Term]] | [[Measure|OTX Measure extension]] | [[Measurement related terms]] | - | - }} | {{ClassificationActivity | IsValidMeasurement | Evaluates the status of a measurement | [[Term]] | [[Measure|OTX Measure extension]] | [[Measurement related terms]] | - | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | BooleanTerm = Measure.IsValidMeasurement(Measurement); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 19: | Line 19: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Boolean | + | package Measure.DeviceSignature TestDocument |
+ | { | ||
+ | DeviceServiceSignature Addition(in Integer a, in Integer b, out Measure.Measurement OutValue); | ||
+ | } | ||
+ | |||
+ | public procedure IsValidMeasurement() | ||
+ | { | ||
+ | Measure.Measurement Addition_Return; | ||
+ | Boolean Boolean = false; | ||
+ | |||
+ | Measure.ExecuteDeviceService(TestDocument, Addition, {in a = 2, in b = 3, out OutValue = Addition_Return}, false, false); | ||
+ | Boolean = Measure.IsValidMeasurement(Addition_Return); | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:13, 10 February 2015
Contents
Classification
Name | IsValidMeasurement |
Short Description | Evaluates the status of a measurement |
Class | Term |
Extension | OTX Measure extension |
Group | Measurement related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = Measure.IsValidMeasurement(Measurement);
Description
This term evaluates the status of a measurement. Since the state constants are not defined in this standard, this activity can be used to determine whether the measurement is used.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Boolean | A measurement is considered valid if it contains at least an amount and a time stamp. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Measurement | Measurement | Term | - | [1] | The measurement whose status is being evaluated. |
OTL Examples
package Measure.DeviceSignature TestDocument
{
DeviceServiceSignature Addition(in Integer a, in Integer b, out Measure.Measurement OutValue);
}
public procedure IsValidMeasurement()
{
Measure.Measurement Addition_Return;
Boolean Boolean = false;
Measure.ExecuteDeviceService(TestDocument, Addition, {in a = 2, in b = 3, out OutValue = Addition_Return}, false, false);
Boolean = Measure.IsValidMeasurement(Addition_Return);
}
See also
GetMeasurementTimestamp
GetMeasurementStatus
GetMeasurementQuantity
GetMeasurementFloatValue