Difference between revisions of "Extensions.EventHandling.CloseEventSource"

From emotive
Jump to navigation Jump to search
(Created page with "Category:EventHandling == Classification == {{ClassificationActivity | CloseEventSource | Stops the event processing all specified sources | Action| DiagCom|OTX Diag...")
 
Line 3: Line 3:
 
{{ClassificationActivity | CloseEventSource | Stops the event processing all specified sources | [[Action]]| [[DiagCom|OTX DiagCom extension]] | [[EventHandling related actions]] | - | - }}
 
{{ClassificationActivity | CloseEventSource | Stops the event processing all specified sources | [[Action]]| [[DiagCom|OTX DiagCom extension]] | [[EventHandling related actions]] | - | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
CloseEventSource(EventSource source);
+
EventHandling.CloseEventSource(EventSource source);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 17: Line 17:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
CloseEventSource(eventSource);
+
Integer Variable1 = 0;
 +
EventHandling.Event Event1;
 +
EventHandling.EventSource EventSource1;
 +
 
 +
EventSource1 = EventHandling.MonitorChangeEventSource(Variable1);
 +
Variable1 = Variable1 + 1;
 +
EventHandling.WaitForEvent({EventSource1}, Event1);
 +
EventHandling.CloseEventSource({EventSource1});
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
 
[[WaitForEvent]]
 
[[WaitForEvent]]

Revision as of 08:56, 6 February 2015

Classification

Name CloseEventSource
Short Description Stops the event processing all specified sources
Class Action
Extension OTX DiagCom extension
Group EventHandling related actions
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

EventHandling.CloseEventSource(EventSource source);

Description

The OTX CloseEventSource activity stops the event processing all specified sources.

Properties

Name Data Type Class Default Cardinality Description
Source EventSource Term - [1] One or more event sources to be terminated. The order is insignificant.

OTL Examples

Integer Variable1 = 0;
EventHandling.Event Event1;
EventHandling.EventSource EventSource1;

EventSource1 = EventHandling.MonitorChangeEventSource(Variable1);
Variable1 = Variable1 + 1;
EventHandling.WaitForEvent({EventSource1}, Event1);
EventHandling.CloseEventSource({EventSource1});

See also

WaitForEvent