From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- .../doc/src/CosTimerEvent_TimerEventHandler.xml | 125 +++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 lib/cosTime/doc/src/CosTimerEvent_TimerEventHandler.xml (limited to 'lib/cosTime/doc/src/CosTimerEvent_TimerEventHandler.xml') diff --git a/lib/cosTime/doc/src/CosTimerEvent_TimerEventHandler.xml b/lib/cosTime/doc/src/CosTimerEvent_TimerEventHandler.xml new file mode 100644 index 0000000000..bc1ef39132 --- /dev/null +++ b/lib/cosTime/doc/src/CosTimerEvent_TimerEventHandler.xml @@ -0,0 +1,125 @@ + + + + +
+ + 2000 + 2007 + Ericsson AB, All Rights Reserved + + + The contents of this file are subject to the Erlang Public License, + Version 1.1, (the "License"); you may not use this file except in + compliance with the License. You should have received a copy of the + Erlang Public License along with this software. If not, it can be + retrieved online at http://www.erlang.org/. + + Software distributed under the License is distributed on an "AS IS" + basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + the License for the specific language governing rights and limitations + under the License. + + The Initial Developer of the Original Code is Ericsson AB. + + + CosTimerEvent_­TimerEventHandler + ..._TimerEventHandler + Niclas Eklund + Niclas Eklund + + Niclas Eklund + + 2000-02-01 + 1.0 +
+ CosTimerEvent_TimerEventHandler + This module implements the OMG CosTimerEvent::TimerEventHandler interface. + +

To get access to the record definitions for the structures use:

+-include_lib("cosTime/include/*.hrl").

+
+ + + '_get_status'(TimerEventHandler) -> Reply + Return the status of the target object + + TimerEventHandler = #objref + Reply = 'ESTimeSet' | 'ESTimeCleared' | 'ESTriggered' | 'ESFailedTrigger' + + +

This operation returns the status of the target object.

+ + 'ESTimeSet' - timer is set to trigger event(s). + 'ESTimeCleared' - no time set or the timer have been reset. + 'ESTriggered' - event has already been sent. + 'ESFailedTrigger' - tried to, but failed, sending the event. + +

If the target object is of type 'TTPeriodic' the status value + 'ESTriggered' is not valid.

+
+
+ + time_set(TimerEventHandler) -> Reply + Return trueif the time has been set for an event that is yet to be triggered, falseotherwise. The outparameter represents the current time value of the target object + + TimerEventHandler = #objref + Reply = {boolean(), UTO} + UTO = #objref + + +

This operation returns true if the time has been set for an event that + is yet to be triggered, false otherwise. The outparameter represents + the current time value of the target object.

+
+
+ + set_timer(TimerEventHandler, TimeType, TriggerTime) -> void() + Terminate terminate any previous set trigger, and set a new trigger specified by the TimeTypeand UTOobjects + + TimerEventHandler = #objref + TimeType = 'TTAbsolute' | 'TTRelative' | 'TTPeriodic' + TriggerTime = UTO + UTO = #objref + + +

This operation terminates any previous set trigger, and set a new trigger + specified by the TimeType and UTO objects.

+

The relation between the UTO object and the TimeTypes are:

+ + 'TTAbsolute' - the UTO object must represent absolute time, i.e., + number of 100 nanoseconds passed since 15 october + 1582 00:00. + 'TTRelative' - the UTO object must represent the from now until when + the event should be triggered, e.g., within 30*10^7 nanoseconds. + 'TTPeriodic' - the same as for 'TTRelative', but this option + will trigger an event periodically until timer cancelled. + +
+
+ + cancel_timer(TimerEventHandler) -> boolean() + Cancel, if possible, triggering of event(s). Returntrueif an event is actually cancelled, falseotherwise + + TimerEventHandler = #objref + + +

This operation cancel, if possible, the triggering of event(s). Returns + true if an event is actually cancelled, false otherwise.

+
+
+ + set_data(TimerEventHandler, EventData) -> ok + Change the event data sent when triggered + + TimerEventHandler = #objref + EventData = #any + + +

This operation changes the event data sent when triggered.

+
+
+
+ +
+ -- cgit v1.2.3