Difference between revisions of "Extensions.Measure.IsDeviceEvent"
Jump to navigation
Jump to search
m (Hb moved page IsDeviceEvent to Extensions.Measure.IsDeviceEvent: #3153) |
|||
Line 1: | Line 1: | ||
− | [[Category:Measure]] | + | {{DISPLAYTITLE:'''IsDeviceEvent '''}}[[Category:Measure]] |
== Classification == | == Classification == | ||
− | {{ClassificationActivity | IsDeviceEvent | Checks whether the event originated from a '''DeviceEventSource''' term | [[Term]] | [[Measure|OTX Measure extension]] | [[Event related terms]] | - | - }} | + | {{ClassificationActivity | IsDeviceEvent | Checks whether the event originated from a '''DeviceEventSource''' term | [[Term]] | [[Extensions.Measure|OTX Measure extension]] | [[Event related terms]] | - | - }} |
== OTL Syntax == | == OTL Syntax == | ||
Line 11: | Line 11: | ||
The term will return TRUE if if the event originated from a ''DeviceEventSource'' term. | The term will return TRUE if if the event originated from a ''DeviceEventSource'' term. | ||
− | {{TermReturnValue| [[Boolean]] | This value is TRUE if if the event originated from a DeviceEventSource term. }} | + | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | This value is TRUE if if the event originated from a DeviceEventSource term. }} |
== Properties == | == Properties == | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| Event | [[Event]] | [[Term]] | - | [1] | The event, whose Type is checked.}} | + | {{TableRowPropertie1| Event | [[Extensions.EventHandling.Event|Event]] | [[Term]] | - | [1] | The event, whose Type is checked.}} |
|} | |} | ||
Line 52: | Line 52: | ||
== See also == | == See also == | ||
− | [[DeviceEventSource]] <br/> | + | [[Extensions.Measure.DeviceEventSource|DeviceEventSource]] <br/> |
− | [[GetDeviceServiceNameFromEvent]] | + | [[Extensions.Measure.GetDeviceServiceNameFromEvent|GetDeviceServiceNameFromEvent]] |
Revision as of 02:41, 16 February 2016
Contents
Classification
Name | IsDeviceEvent |
Short Description | Checks whether the event originated from a DeviceEventSource term |
Class | Term |
Extension | OTX Measure extension |
Group | Event related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = Measure.IsDeviceEvent(EventTerm);
Description
The term will return TRUE if if the event originated from a DeviceEventSource term.
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 | This value is TRUE if if the event originated from a DeviceEventSource term. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Event | Event | Term | - | [1] | The event, whose Type is checked. |
OTL Examples
package Measure.DeviceSignature TestDocument
{
DeviceServiceSignature Addition(in Integer a, in Integer b, out Measure.Measurement OutValue);
}
public procedure IsDeviceEvent()
{
EventHandling.EventSource EventSource;
Measure.Measurement Addition_Return;
EventHandling.Event Event;
Boolean IsDeviceEvent = false;
EventSource = Measure.DeviceEventSource(TestDocument);
parallel
{
lane
{
EventHandling.WaitForEvent({EventSource}, Event);
}
lane
{
Measure.ExecuteDeviceService(TestDocument, Addition, {in a = 2, in b = 3, out OutValue = Addition_Return}, false, false);
}
}
IsDeviceEvent = Measure.IsDeviceEvent(Event);
}