Difference between revisions of "Extensions.EventHandling.IsMonitorChangeEvent"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | IsMonitorChangeEvent | Checks whether an event monitor change event source or '''ThresholdExceededEventSource''' comes | [[Term]] | [[EventHandling|OTX EventHandling extension]] | [[Event source property related terms]] | - | [[EventChk002|Event_Chk002]] }} | {{ClassificationActivity | IsMonitorChangeEvent | Checks whether an event monitor change event source or '''ThresholdExceededEventSource''' comes | [[Term]] | [[EventHandling|OTX EventHandling extension]] | [[Event source property related terms]] | - | [[EventChk002|Event_Chk002]] }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | BooleanTerm = EventHandling.IsMonitorChangeEvent(EventTerm, Variable); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 20: | Line 20: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Boolean | + | EventHandling.EventSource EventSource1; |
+ | String Variable1; | ||
+ | EventHandling.Event Event1; | ||
+ | Boolean Result1 = false; | ||
+ | |||
+ | EventSource1 = EventHandling.MonitorChangeEventSource(Variable1); | ||
+ | |||
+ | parallel | ||
+ | { | ||
+ | lane | ||
+ | { | ||
+ | Variable1 = "String changed"; | ||
+ | } | ||
+ | lane | ||
+ | { | ||
+ | EventHandling.WaitForEvent({EventSource1}, Event1); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | Result1 = EventHandling.IsMonitorChangeEvent(Event1, null); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:32, 6 February 2015
Contents
Classification
Name | IsMonitorChangeEvent |
Short Description | Checks whether an event monitor change event source or ThresholdExceededEventSource comes |
Class | Term |
Extension | OTX EventHandling extension |
Group | Event source property related terms |
Exceptions | - |
Checker Rules | Event_Chk002 |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = EventHandling.IsMonitorChangeEvent(EventTerm, Variable);
Description
The OTX IsMonitorChangeEvent term returns TRUE back when the event if and only from MonitorChangeEventSource or ThresholdExceededEventSource comes. In the case of an optional variable is specified, the expression is TRUE return, if and only if the event was triggered, because this particular variable changes. If the specified variable is not the reason for this is FALSE returned.
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 | Returns TRUE if the event of a MonitorChangeEventSource or ThresholdExceededEventSource comes. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Event | Event | Term | - | [1] | The event, whose type is checked. |
Variable | - | Variable | - | [0..1] | It is checked if the optional variable is the reason for the event. |
OTL Examples
EventHandling.EventSource EventSource1;
String Variable1;
EventHandling.Event Event1;
Boolean Result1 = false;
EventSource1 = EventHandling.MonitorChangeEventSource(Variable1);
parallel
{
lane
{
Variable1 = "String changed";
}
lane
{
EventHandling.WaitForEvent({EventSource1}, Event1);
}
}
Result1 = EventHandling.IsMonitorChangeEvent(Event1, null);