1CosTime_UTO(3)             Erlang Module Definition             CosTime_UTO(3)
2
3
4

NAME

6       CosTime_UTO - This module implements the OMG CosTime::UTO interface.
7

DESCRIPTION

9       To get access to the record definitions for the structures use:
10       -include_lib("cosTime/include/*.hrl").
11

EXPORTS

13       '_get_time'(UTO) -> ulonglong()
14
15              Types:
16
17                 UTO = #objref
18
19              This  operation  returns  the  time  associated  with the target
20              object.
21
22       '_get_inaccuracy'(UTO) -> ulonglong()
23
24              Types:
25
26                 UTO = #objref
27
28              This operation returns the inaccuracy associated with the target
29              object.
30
31       '_get_tdf'(UTO) -> short()
32
33              Types:
34
35                 UTO = #objref
36
37              This  operation  returns the time displacement factor associated
38              with the target object.
39
40       '_get_utc_time'(UTO) -> UtcT
41
42              Types:
43
44                 UTO = #objref
45                 Utc = #'TimeBase_UtcT'{time, inacclo, inacchi, tdf}
46                 time = ulonglong()
47                 inacclo = ulong()
48                 inacchi = ushort()
49                 tdf = short()
50
51              This operation returns  the  data  associated  with  the  target
52              object in Utc form.
53
54       absolute_time(UTO) -> OtherUTO
55
56              Types:
57
58                 UTO = OtherUTO = #objref
59
60              This  operation create a new UTO object representing the time in
61              the target object added to current time (UTC). The time base  is
62              15 october 1582 00:00. Comparing two time objects which use dif‐
63              ferent time base  is,  by  obvious  reasons,  pointless.  Raises
64              DATA_CONVERSION  if  causes  an overflow. This operation is only
65              useful if the target object represents a relative time.
66
67       compare_time(UTO, ComparisonType, OtherUTO) -> Reply
68
69              Types:
70
71                 UTO = OtherUTO = #objref
72                 ComparisonType = 'IntervalC' | 'MidC'
73                 Reply = 'TCEqualTo' | 'TCLessThan' | 'TCGreaterThan' | 'TCIn‐
74                 determinate'
75
76              This  operation  compares  the  time  associated with the target
77              object and the given UTO object.  The  different  ComparisonType
78              are:
79
80                * 'MidC'  -  only compare the time represented by each object.
81                  Furthermore, the target object is always used as  the  first
82                  parameter  in  the  comparison, i.e., if the target object's
83                  time is larger 'TCGreaterThan' will be returned.
84
85                * 'IntervalC' - also takes the inaccuracy into  consideration,
86                  i.e., if the two objects interval overlaps 'TCIndeterminate'
87                  is returned, otherwise the as for 'MidC'.
88
89       time_to_interval(UTO, OtherUTO) -> TIO
90
91              Types:
92
93                 UTO = OtherUTO = TIO = #objref
94
95              This operation returns a TIO representing the  interval  between
96              the  target object and the given UTO midpoint times. The inaccu‐
97              racy in the objects are not taken into consideration.
98
99       interval(UTO) -> TIO
100
101              Types:
102
103                 UTO = TIO = #objref
104
105              This operation creates  a  TIO  object  representing  the  error
106              interval around the time value represented by the target object,
107              i.e.,    TIO.upper_bound    =    UTO.time+UTO.inaccuracy     and
108              TIO.lower_bound = UTO.time-UTO.inaccuracy.
109
110
111
112Ericsson AB                      cosTime 4.5.2                  CosTime_UTO(3)
Impressum