Extensions.EventHandling.ThresholdExceededEventSource
Revision as of 07:20, 31 July 2014 by Nb (talk | contribs) (Created page with "Category:EventHandling == Classification == {{ClassificationActivity | ThresholdExceededEventSource | Create an Event Source for changes outside area | Term | EventH...")
Contents
Classification
Name | ThresholdExceededEventSource |
Short Description | Create an Event Source for changes outside area |
Class | Term |
Extension | OTX EventHandling extension |
Group | Event source related terms |
Exceptions | - |
Checker Rules | Event_Chk001 Event_Chk002 |
Standard Compliant | Yes |
Pseudo-Code Syntax
EventSource ThresholdExceededEventSource(Variable myVariable, CountableType lowerThreshold, CountableType upperThreshold);
Description
The OTX ThresholdExceededEventSource term creates an event source that monitors the value of a variable and an event triggers when the value goes outside a certain range. If the value of start is already outside the specified range, the event should be triggered. Event queue should start immediately as soon as the event source is created.
This event source is to apply only for the data types on which an order relation can be defined, namely the simple type data types.
![]()
A ThresholdExceededEventSource, which is applied to an uninitialized variable will count exceeded as a threshold and make no mistake.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
EventSource | The Event Source, the changes in the value of a variable monitored within the value range. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Variable | - | Variable | - | [1] | The variable which has to be monitored. |
LowerThreshold | CountableType | Term | - | [1] | A value to compare. If the value of the monitored variable is less than this value, the event is triggered |
UpperThreshold | CountableType | Term | - | [1] | A value to compare. If the value of the monitored variable is greater than this value, the event is triggered |
Examples
EventSource result = ThresholdExceededEventSource(myVariable, 1, 2);