Difference between revisions of "Extensions.EventPlus.DeepMonitorChangeEventSource"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | MonitorChangeEventSource EventPlus.DeepMonitorChangeEventSource(Variable variable); | |
</syntaxhighlight> | </syntaxhighlight> | ||
== Description == | == Description == | ||
− | The OTX ''' | + | The OTX '''DeepMonitorChangeEventSource ''' is similar to [[Extensions.EventHandling.MonitorChangeEventSource|'''event:MonitorChangeEventSource''']], but with additional deep change-monitoring for variables of [[Core.DataTypes.ComplexDataType|complex datatypes]] like [[Core.DataTypes.ComplexDataType.List|List]], [[Core.DataTypes.ComplexDataType.Map|Map]] and [[Core.DataTypes.ComplexDataType.ByteField|ByteField]]. The deep change-monitoring shall detect changing, adding and removing of items in Lists, Maps and ByteFields in any depth. For variables of simple datatypes, this term shall behave like [[Extensions.EventHandling.MonitorChangeEventSource|'''event:MonitorChangeEventSource''']]. Because '''DeepMonitorChangeEventSource''' is derived from [[Extensions.EventHandling.MonitorChangeEventSource|event:MonitorChangeEventSource]], the term [[Extensions.EventHandling.IsMonitorChangeEvent|event:IsMonitorChangeEvent]] shall return TRUE when the Event originates from a '''DeepMonitorChangeEventSource'''. |
{{TermReturnValue| [[Extensions.EventHandling.EventSource|EventSource]] | '''The EventSource''', the changes in the value of a variable monitored.}} | {{TermReturnValue| [[Extensions.EventHandling.EventSource|EventSource]] | '''The EventSource''', the changes in the value of a variable monitored.}} | ||
Line 16: | Line 16: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{ | + | {{TableRowPropertie2| Variable | - | [[Variable]] | - | [1..1] | The variable which has to be monitored.}} |
|} | |} | ||
Line 22: | Line 22: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
EventHandling.EventSource EventSource1; | EventHandling.EventSource EventSource1; | ||
EventHandling.Event Event1; | EventHandling.Event Event1; |
Latest revision as of 09:52, 2 November 2018
Contents
Classification
Name | DeepMonitorChangeEventSource |
Short Description | Create an event source for change event |
Class | Term |
Extension | OTX EventPlus extension |
Group | Event source related terms |
Exceptions | - |
Checker Rules | Event_Chk002 |
Standard Compliant | Yes |
OTL Syntax
MonitorChangeEventSource EventPlus.DeepMonitorChangeEventSource(Variable variable);
Description
The OTX DeepMonitorChangeEventSource is similar to event:MonitorChangeEventSource, but with additional deep change-monitoring for variables of complex datatypes like List, Map and ByteField. The deep change-monitoring shall detect changing, adding and removing of items in Lists, Maps and ByteFields in any depth. For variables of simple datatypes, this term shall behave like event:MonitorChangeEventSource. Because DeepMonitorChangeEventSource is derived from event:MonitorChangeEventSource, the term event:IsMonitorChangeEvent shall return TRUE when the Event originates from a DeepMonitorChangeEventSource.
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 EventSource, the changes in the value of a variable monitored. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Variable | - | Variable | - | [1..1] | The variable which has to be monitored. |
OTL Examples
/// Local Declarations
EventHandling.EventSource EventSource1;
EventHandling.Event Event1;
ByteField ByteField1 = &012345;
/// Flow
EventSource1 = EventPlus.DeepMonitorChangeEventSource(ByteField1);
parallel
{
lane
{
ShiftRight(ByteField1, 2);
}
lane
{
EventHandling.WaitForEvent({EventSource1}, Event1);
}
}