Difference between revisions of "Extensions.EventHandling.IsThresholdExceededEvent"
Jump to navigation
Jump to search
(Created page with "Category:EventHandling == Classification == {{ClassificationActivity | IsTresholdExceededEvent | Checks whether an event comes '''ThresholdExceededEventSource''' | [[Term]...") |
|||
Line 3: | Line 3: | ||
{{ClassificationActivity | IsTresholdExceededEvent | Checks whether an event comes '''ThresholdExceededEventSource''' | [[Term]] | [[EventHandling|OTX EventHandling extension]] | [[Event source property related terms]] | - | - }} | {{ClassificationActivity | IsTresholdExceededEvent | Checks whether an event comes '''ThresholdExceededEventSource''' | [[Term]] | [[EventHandling|OTX EventHandling extension]] | [[Event source property related terms]] | - | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | BooleanTerm = EventHandling.IsTresholdExceededEvent(EventTerm); | |
</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 | + | Float LowerThreshold1 = 0; |
+ | Float UpperThreshold1 = 1; | ||
+ | EventHandling.EventSource EventSource1; | ||
+ | Float Variable1 = 0; | ||
+ | EventHandling.Event Event1; | ||
+ | Boolean Boolean1 = false; | ||
+ | |||
+ | EventSource1 = EventHandling.ThresholdExceededEventSource(LowerThreshold1, UpperThreshold1, Variable1); | ||
+ | |||
+ | parallel | ||
+ | { | ||
+ | lane | ||
+ | { | ||
+ | while (true) : WhileLoop1 | ||
+ | { | ||
+ | Variable1 = (Variable1 + 0.001); | ||
+ | } | ||
+ | } | ||
+ | lane | ||
+ | { | ||
+ | EventHandling.WaitForEvent({EventSource1}, Event1); | ||
+ | |||
+ | terminate; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | Boolean1 = EventHandling.IsThresholdExceededEvent(Event1); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:34, 6 February 2015
Contents
Classification
Name | IsTresholdExceededEvent |
Short Description | Checks whether an event comes ThresholdExceededEventSource |
Class | Term |
Extension | OTX EventHandling extension |
Group | Event source property related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = EventHandling.IsTresholdExceededEvent(EventTerm);
Description
The OTX IsTresholdExceededEvent term is TRUE back when the event if and only from ThresholdExceededEventSource comes.
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 comes from a ThresholdExceededEventSource. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Event | Event | Term | - | [1] | The event, whose type is checked. |
OTL Examples
Float LowerThreshold1 = 0;
Float UpperThreshold1 = 1;
EventHandling.EventSource EventSource1;
Float Variable1 = 0;
EventHandling.Event Event1;
Boolean Boolean1 = false;
EventSource1 = EventHandling.ThresholdExceededEventSource(LowerThreshold1, UpperThreshold1, Variable1);
parallel
{
lane
{
while (true) : WhileLoop1
{
Variable1 = (Variable1 + 0.001);
}
}
lane
{
EventHandling.WaitForEvent({EventSource1}, Event1);
terminate;
}
}
Boolean1 = EventHandling.IsThresholdExceededEvent(Event1);