Difference between revisions of "Extensions.EventPlus.IsDeepMonitorChangeEvent"

From emotive
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE: '''IsDeepMonitorChangeEvent'''}}Category:EventPlus == Classification == {{ClassificationActivity | IsDeepMonitorChangeEvent | UPDATING...<!--Create an eve...")
 
Line 1: Line 1:
 
{{DISPLAYTITLE:  '''IsDeepMonitorChangeEvent'''}}[[Category:EventPlus]]
 
{{DISPLAYTITLE:  '''IsDeepMonitorChangeEvent'''}}[[Category:EventPlus]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | IsDeepMonitorChangeEvent | UPDATING...<!--Create an event source for change event--> | [[Term]] | [[Extensions.EventPlus|OTX EventPlus extension]] | [[Event related terms]] | - | - }}
+
{{ClassificationActivity | IsDeepMonitorChangeEvent | Checks whether the event source is a DeepMonitorChangeEvent or not.| [[Term]] | [[Extensions.EventPlus|OTX EventPlus extension]] | [[Extensions.EventPlus#Terms|Event source property related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
UPDATING...<!--
 
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
EventSourceTerm = EventHandling.MonitorChangeEventSource(Variable);
+
BooleanTerm = EventPlus.IsDeepMonitorChangeEvent(EventTerm, Variable);
 
</syntaxhighlight>
 
</syntaxhighlight>
-->
 
  
 
== Description ==
 
== Description ==
UPDATING...<!--
+
The OTX '''IsDeepMonitorChangeEvent''' term accepts an EventTerm yielding an Event object that has been raised by the OTX runtime system, as a result of using a [[Extensions.EventPlus.DeepMonitorChangeEventSource|DeepMonitorChangeEventSource]] in a [[Extensions.EventHandling.WaitForEvent|WaitForEvent]] action. The term shall return TRUE if and only if the Event originates from such a kind of event source. In case an optional Variable is specified, the term shall return TRUE if and only if the Event was fired because that particular Variable changed. If the given Variable was not the reason for the event, FALSE shall be returned.
The OTX '''MonitorChangeEventSource''' term creates an event source that monitors the value of a variable and an event triggers when the value changed. Event queue should start immediately as soon as the event source is created.
 
  
{{Note|The case when a value to a previously uninitialized variable is assigned to count as a change event and make no mistake.}}
+
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | if the event of a '''DeepMonitorChangeEventSource'''.}}
 
 
{{TermReturnValue| [[Extensions.EventHandling.EventSource|EventSource]] | '''The EventSource''', the changes in the value of a variable monitored.}}
 
  
 
== Properties ==
 
== Properties ==
UPDATING...//
 
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Variable | - | [[Variable]] | - | [1] | The variable which has to be monitored.}}
+
{{TableRowPropertie1| event| [[Extensions.EventHandling.Event|Event]] | [[Term]] | - | [1..1] | Represents the Event whose type shall be tested.}}
 +
{{TableRowPropertie2| Variable | - | [[Variable]] | - | [0..1] | Optionally specifies the variable which shall be tested for being the reason for
 +
the event.}}
 
|}
 
|}
-->
+
 
  
 
== OTL Examples ==
 
== OTL Examples ==
UPDATING...<!--
 
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Boolean Bool1 = false;
 
 
EventHandling.EventSource EventSource1;
 
EventHandling.EventSource EventSource1;
 
EventHandling.Event Event1;
 
EventHandling.Event Event1;
 +
ByteField ByteField1 = &012345;
 +
Boolean Boolean1;
 +
 +
/// Flow
 +
 +
EventSource1 = EventPlus.DeepMonitorChangeEventSource(ByteField1);
  
EventSource1 = EventHandling.MonitorChangeEventSource(Bool1);
 
 
parallel
 
parallel
 
{
 
{
  lane
+
lane
  {
+
{
      Bool1 = true;
+
ShiftRight(ByteField1, 2);
  }
+
}
  lane
+
lane
  {
+
{
      EventHandling.WaitForEvent({EventSource1}, Event1);
+
EventHandling.WaitForEvent({EventSource1}, Event1);
  }
+
Boolean1 = EventPlus.IsDeepMonitorChangeEvent(Event1, ByteField1);
 +
}
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
-->
+
 
  
 
== See also ==
 
== See also ==
 
[[Extensions.EventPlus.DeepMonitorChangeEventSource|DeepMonitorChangeEventSource]] <br/>
 
[[Extensions.EventPlus.DeepMonitorChangeEventSource|DeepMonitorChangeEventSource]] <br/>
 
<!--[[Extensions.EventPlus.IsDeepMonitorChangeEvent|IsDeepMonitorChangeEvent]] <br/>-->
 
<!--[[Extensions.EventPlus.IsDeepMonitorChangeEvent|IsDeepMonitorChangeEvent]] <br/>-->

Revision as of 11:05, 26 September 2018

Classification

Name IsDeepMonitorChangeEvent
Short Description Checks whether the event source is a DeepMonitorChangeEvent or not.
Class Term
Extension OTX EventPlus extension
Group Event source property related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

BooleanTerm = EventPlus.IsDeepMonitorChangeEvent(EventTerm, Variable);

Description

The OTX IsDeepMonitorChangeEvent term accepts an EventTerm yielding an Event object that has been raised by the OTX runtime system, as a result of using a DeepMonitorChangeEventSource in a WaitForEvent action. The term shall return TRUE if and only if the Event originates from such a kind of event source. In case an optional Variable is specified, the term shall return TRUE if and only if the Event was fired because that particular Variable changed. If the given Variable was not the reason for the event, FALSE shall be returned.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
Boolean if the event of a DeepMonitorChangeEventSource.

Properties

Name Data Type Class Default Cardinality Description
event Event Term - [1..1] Represents the Event whose type shall be tested.
Variable - Variable - [0..1] Optionally specifies the variable which shall be tested for being the reason for

the event.


OTL Examples

EventHandling.EventSource EventSource1;
EventHandling.Event Event1;
ByteField ByteField1 = &012345;
Boolean Boolean1;
		
/// Flow

EventSource1 = EventPlus.DeepMonitorChangeEventSource(ByteField1);

parallel
{
	lane
	{
		ShiftRight(ByteField1, 2);
	}
	lane
	{
		EventHandling.WaitForEvent({EventSource1}, Event1);
		Boolean1 = EventPlus.IsDeepMonitorChangeEvent(Event1, ByteField1);
	}
}


See also

DeepMonitorChangeEventSource