Difference between revisions of "Extensions.EventHandling.EventSource"

From emotive
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:Data Type '''EventSource'''}}[[Category:DataType]][[Category:EventHandling]]
 
{{DISPLAYTITLE:Data Type '''EventSource'''}}[[Category:DataType]][[Category:EventHandling]]
 
== Classification ==
 
== Classification ==
{{ClassificationDataType | EventSource | Event source that generates events | [[Complex Data Type]] | - }}
+
{{ClassificationDataType | EventSource | Event source that generates events | [[Core.DataTypes.ComplexDataType|Complex Data Type]] | [[Core.DataTypes.ComplexDataType.ComplexType|ComplexType]] }}
  
 
== Description ==
 
== Description ==
 
The event source data type identifies in OTX an event source, which generates events.
 
The event source data type identifies in OTX an event source, which generates events.
  
As soon as an event source is created, see Event Source Terms, begins to register certain events immediately. These events can then successively repeated calls to the [[WaitForEvent]] be read and removed activity.
+
As soon as an event source is created, see Event Source Terms, begins to register certain events immediately. These events can then successively repeated calls to the [[Extensions.EventHandling.WaitForEvent|WaitForEvent]] be read and removed activity.
  
About the [[CloseEventSource]] activity the event registration can be terminated immediately.
+
About the [[Extensions.EventHandling.CloseEventSource|CloseEventSource]] activity the event registration can be terminated immediately.
  
Event sources, the On-The-Fly within a [[WaitForEvent]] generated activity will be terminated automatically when you exit the activity.
+
Event sources, the On-The-Fly within a [[Extensions.EventHandling.WaitForEvent|WaitForEvent]] generated activity will be terminated automatically when you exit the activity.
  
 
{{Note|Variables of type Event Source can not be initialized. It can no constants of type EventSource be declared.}}
 
{{Note|Variables of type Event Source can not be initialized. It can no constants of type EventSource be declared.}}
Line 18: Line 18:
 
String=Returns the term of the event source generated | StringSample=<tt> EventSource eventSource = TimerExpiredEventSource(100); String s = ToString(eventSource); // Returns "TimerExpiredEventSource(100)"</tt>
 
String=Returns the term of the event source generated | StringSample=<tt> EventSource eventSource = TimerExpiredEventSource(100); String s = ToString(eventSource); // Returns "TimerExpiredEventSource(100)"</tt>
 
}}
 
}}
 +
 +
==Sample==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
EventHandling.EventSource EventSourceVariable;
 +
</syntaxhighlight>

Latest revision as of 09:15, 22 October 2018

Classification

Name EventSource
Short Description Event source that generates events
Class Complex Data Type
Base Data Type ComplexType
Default Value Empty
Provide a Literal No
SpecifiedBy ISO 13209-3
Standard Compliant Yes

Description

The event source data type identifies in OTX an event source, which generates events.

As soon as an event source is created, see Event Source Terms, begins to register certain events immediately. These events can then successively repeated calls to the WaitForEvent be read and removed activity.

About the CloseEventSource activity the event registration can be terminated immediately.

Event sources, the On-The-Fly within a WaitForEvent generated activity will be terminated automatically when you exit the activity.

Icons Note.png Variables of type Event Source can not be initialized. It can no constants of type EventSource be declared.
Icons Note.png Other libraries can define other event sources, eg HMI: Screen Event Source.

Core Conversion

The following table shows the rules for conversion to another data type:

Conversion Result Sample
ToBoolean Undefined (should not be used)
ToInteger Undefined (should not be used)
ToFloat Undefined (should not be used)
ToString Returns the term of the event source generated EventSource eventSource = TimerExpiredEventSource(100); String s = ToString(eventSource); // Returns "TimerExpiredEventSource(100)"
ToByteField Undefined (should not be used)

Sample

EventHandling.EventSource EventSourceVariable;