~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/cosTime/doc/src/CosTimerEvent_TimerEventHandler.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="latin1" ?>
 
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
 
3
 
 
4
<erlref>
 
5
  <header>
 
6
    <copyright>
 
7
      <year>2000</year>
 
8
      <year>2007</year>
 
9
      <holder>Ericsson AB, All Rights Reserved</holder>
 
10
    </copyright>
 
11
    <legalnotice>
 
12
  The contents of this file are subject to the Erlang Public License,
 
13
  Version 1.1, (the "License"); you may not use this file except in
 
14
  compliance with the License. You should have received a copy of the
 
15
  Erlang Public License along with this software. If not, it can be
 
16
  retrieved online at http://www.erlang.org/.
 
17
 
 
18
  Software distributed under the License is distributed on an "AS IS"
 
19
  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
20
  the License for the specific language governing rights and limitations
 
21
  under the License.
 
22
 
 
23
  The Initial Developer of the Original Code is Ericsson AB.
 
24
    </legalnotice>
 
25
 
 
26
    <title>CosTimerEvent_&shy;TimerEventHandler</title>
 
27
    <shorttitle>..._TimerEventHandler</shorttitle>
 
28
    <prepared>Niclas Eklund</prepared>
 
29
    <responsible>Niclas Eklund</responsible>
 
30
    <docno></docno>
 
31
    <approved>Niclas Eklund</approved>
 
32
    <checked></checked>
 
33
    <date>2000-02-01</date>
 
34
    <rev>1.0</rev>
 
35
  </header>
 
36
  <module>CosTimerEvent_TimerEventHandler</module>
 
37
  <modulesummary>This module implements the OMG  CosTimerEvent::TimerEventHandler interface.</modulesummary>
 
38
  <description>
 
39
    <p>To get access to the record definitions for the structures use:      <br></br>
 
40
<c>-include_lib("cosTime/include/*.hrl").</c></p>
 
41
  </description>
 
42
  <funcs>
 
43
    <func>
 
44
      <name>'_get_status'(TimerEventHandler) -> Reply</name>
 
45
      <fsummary>Return the status of the target object</fsummary>
 
46
      <type>
 
47
        <v>TimerEventHandler = #objref</v>
 
48
        <v>Reply = 'ESTimeSet' | 'ESTimeCleared' | 'ESTriggered' | 'ESFailedTrigger'</v>
 
49
      </type>
 
50
      <desc>
 
51
        <p>This operation returns the status of the target object. </p>
 
52
        <list type="bulleted">
 
53
          <item>'ESTimeSet' - timer is set to trigger event(s).</item>
 
54
          <item>'ESTimeCleared' - no time set or the timer have been reset.</item>
 
55
          <item>'ESTriggered' - event has already been sent.</item>
 
56
          <item>'ESFailedTrigger' - tried to, but failed, sending the event.</item>
 
57
        </list>
 
58
        <p>If the target object is of type 'TTPeriodic' the status value 
 
59
          'ESTriggered' is not valid.</p>
 
60
      </desc>
 
61
    </func>
 
62
    <func>
 
63
      <name>time_set(TimerEventHandler) -> Reply</name>
 
64
      <fsummary>Return <c>true</c>if the time has been set for an event that is yet to be triggered, <c>false</c>otherwise. The outparameter represents the current time value of the target object</fsummary>
 
65
      <type>
 
66
        <v>TimerEventHandler = #objref</v>
 
67
        <v>Reply = {boolean(), UTO}</v>
 
68
        <v>UTO = #objref</v>
 
69
      </type>
 
70
      <desc>
 
71
        <p>This operation returns <c>true</c> if the time has been set for an event that
 
72
          is yet to be triggered, <c>false</c> otherwise. The outparameter represents
 
73
          the current time value of the target object.</p>
 
74
      </desc>
 
75
    </func>
 
76
    <func>
 
77
      <name>set_timer(TimerEventHandler, TimeType, TriggerTime) -> void()</name>
 
78
      <fsummary>Terminate terminate any previous set trigger, and set a new trigger specified by the <c>TimeType</c>and <c>UTO</c>objects</fsummary>
 
79
      <type>
 
80
        <v>TimerEventHandler = #objref</v>
 
81
        <v>TimeType = 'TTAbsolute' | 'TTRelative' | 'TTPeriodic'</v>
 
82
        <v>TriggerTime = UTO</v>
 
83
        <v>UTO = #objref</v>
 
84
      </type>
 
85
      <desc>
 
86
        <p>This operation terminates any previous set trigger, and set a new trigger
 
87
          specified by the <c>TimeType</c> and <c>UTO</c> objects.</p>
 
88
        <p>The relation between the UTO object and the TimeTypes are:</p>
 
89
        <list type="bulleted">
 
90
          <item>'TTAbsolute' - the UTO object must represent absolute time, i.e.,
 
91
           number of 100 nanoseconds passed since 15 october 
 
92
           1582 00:00.</item>
 
93
          <item>'TTRelative' - the UTO object must represent the from now until when
 
94
           the event should be triggered, e.g., within 30*10^7 nanoseconds.</item>
 
95
          <item>'TTPeriodic' - the same as for 'TTRelative', but this option
 
96
           will trigger an event periodically until timer cancelled.</item>
 
97
        </list>
 
98
      </desc>
 
99
    </func>
 
100
    <func>
 
101
      <name>cancel_timer(TimerEventHandler) -> boolean()</name>
 
102
      <fsummary>Cancel, if possible, triggering of event(s). Return<c>true</c>if an event is actually cancelled, <c>false</c>otherwise</fsummary>
 
103
      <type>
 
104
        <v>TimerEventHandler = #objref</v>
 
105
      </type>
 
106
      <desc>
 
107
        <p>This operation cancel, if possible, the triggering of event(s). Returns
 
108
          <c>true</c> if an event is actually cancelled, <c>false</c> otherwise.</p>
 
109
      </desc>
 
110
    </func>
 
111
    <func>
 
112
      <name>set_data(TimerEventHandler, EventData) -> ok</name>
 
113
      <fsummary>Change the event data sent when triggered</fsummary>
 
114
      <type>
 
115
        <v>TimerEventHandler = #objref</v>
 
116
        <v>EventData = #any</v>
 
117
      </type>
 
118
      <desc>
 
119
        <p>This operation changes the event data sent when triggered.</p>
 
120
      </desc>
 
121
    </func>
 
122
  </funcs>
 
123
  
 
124
</erlref>
 
125