User's Guide
Reference Manual
Release Notes
PDF
Top

cosTime
Reference Manual
Version 1.2

Expand All
Contract All

Table of Contents

- cosTime
  - Top of manual page
  - install_time/0
  - uninstall_time/0
  - install_timerevent/0
  - uninstall_timerevent/0
  - start/0
  - stop/0
  - start_time_service/2
  - stop_time_service/1
  - start_timerevent_service/1
  - stop_timerevent_service/1
- CosTime_TIO
  - Top of manual page
  - '_get_time_interval'/1
  - spans/2
  - overlaps/2
  - time/1
- CosTime_TimeService
  - Top of manual page
  - universal_time/1
  - new_universal_time/4
  - uto_from_utc/2
  - new_interval/3
- CosTime_UTO
  - Top of manual page
  - '_get_time'/1
  - '_get_inaccuracy'/1
  - '_get_tdf'/1
  - '_get_utc_time'/1
  - absolute_time/1
  - compare_time/3
  - time_to_interval/2
  - interval/1
- CosTimerEvent_TimerEventHandler
  - Top of manual page
  - '_get_status'/1
  - time_set/1
  - set_timer/3
  - cancel_timer/1
  - set_data/2
- CosTimerEvent_TimerEventService
  - Top of manual page
  - register/3
  - unregister/2
  - event_time/2

# CosTime_TIO

### MODULE

CosTime_TIO

### MODULE SUMMARY

This module implements the OMG CosTime::TIO interface.

### DESCRIPTION

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

### EXPORTS

'_get_time_interval'(TIO) -> TimeInterval

Types:

TIO = #objref
TimeInterval = #'TimeBase_IntervalT{lower_bound, upper_bound}
lower_bound = upper_bound = ulonglong

This operation returns the interval associated with the target object.

spans(TIO, UTO) -> Reply

Types:

TIO = UTO = OtherTIO = #objref
Reply = {OverlapType, OtherTIO}
OverlapType = 'OTContainer' | 'OTContained' | 'OTOverlap' | 'OTNoOverlap'

This operation returns a OverlapType depending on how the interval in the target object and the timerange represented by the UTO object overlap. If the OverlapType is 'OTNoOverlap' the out parameter represents the gap between the two intervals. If OverlapType is one of the others, the out parameter represents the overlap interval. The definitions of the OverlapType's are:

- 'OTContainer' - target objects lower and upper limits are, respectively, less or equal to and greater or equal to given object's.
- 'OTContained' - target objects lower and upper limits are, respectively, greater or equal to and less or equal to given object's.
- 'OTOverlap' - target objects interval overlap given object's.
- 'OTNoOverlap' - target objects interval do not overlap given object's.

overlaps(TIO, OtherTIO) -> Reply

Types:

TIO = OtherTIO = AnotherTIO = #objref
Reply = {OverlapType, AnotherTIO}
OverlapType = 'OTContainer' | 'OTContained' | 'OTOverlap' | 'OTNoOverlap'

This operation returns a OverlapType depending on how the interval in the target object and the timerange represented by the TIO object overlap. The OverlapType's are described under spans/2.

time(TIO) -> UTO

Types:

TIO = UTO = #objref

This operation returns a UTO in which the interval equals the time interval in the target object and time value is the midpoint of the interval.