Extensions.EventHandling.TimerExpiredEventSource

From emotive
Revision as of 09:27, 6 February 2015 by Tl (talk | contribs)
Jump to navigation Jump to search

Classification

Name TimerExpiredEventSource
Short Description Create an event source for timing
Class Term
Extension OTX EventHandling extension
Group Event source related terms
Exceptions OutOfBoundsException
Checker Rules -
Standard Compliant Yes

OTL Syntax

EventSourceTerm = EventHandling.TimerExpiredEventSource(IntergerTerm);

Description

The OTX TimerExpiredEventSource term creates an event source that triggers an event when a specified time has elapsed. If the specified time has elapsed, the timer expiration event is produced and added to the queue of the Event Sources. Event queue immediately begin sobaldder event source is created. Event queue should start immediately as soon as the event source is created.

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
EventSource The EventSource, the timing monitors.

Properties

Name Data Type Class Default Cardinality Description
TimeOut Integer Term - [1] An integer value that is interpreted to wait in milliseconds as a time. When the specified number of milliseconds has elapsed, an event is triggered.

OTL Examples

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

EventSource1 = EventHandling.TimerExpiredEventSource(1000);

parallel
{
   lane
   {
      while (true) : Loop0
      {
         Variable1 = Variable1 + 1;
      }
   }
   lane
   {
      EventHandling.WaitForEvent({EventSource1}, Event1);

      terminate;
   }
}

See also

ThresholdExceededEventSource
WaitForEvent