Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

CosTime::TIO Interface Reference

An instance of the TIO interface represents an interval in time, consisting of an upper and a lower bound. More...

import "CosTime.idl";

List of all members.

Public Methods

OverlapType spans (in UTO time, out TIO overlap)
 Calculates the overlap between this TIO and a UTO. More...

OverlapType overlaps (in TIO interval, out TIO overlap)
 Calculates the overlap between two TIOs. More...

UTO time ()
 Converts this TIO into a UTO. More...


Public Attributes

readonly attribute TimeBase::IntervalT time_interval
 Specifies the interval represented by this TIO. More...


Detailed Description

An instance of the TIO interface represents an interval in time, consisting of an upper and a lower bound.


Member Function Documentation

OverlapType CosTime::TIO::overlaps in TIO    interval,
out TIO    overlap
 

Calculates the overlap between two TIOs.

m interval - the TIO to compare to this one.
m overlap - set to the intersection of the two TIOs if there is
overlap.
Returns:
OTContainer if 'interval' falls entirely within this TIO, OTContained if this TIO falls entirely within 'interval', OTOverlap if there is partial overlap or OTNoOverlap if there is none.

OverlapType CosTime::TIO::spans in UTO    time,
out TIO    overlap
 

Calculates the overlap between this TIO and a UTO.

m time - the UTO to compare with this interval.
m overlap - set to the intersection of this interval and 'time',
if there is overlap.
Returns:
OTContainer if the UTO falls entirely within this TIO, OTContained if this TIO falls entirely within the UTO, OTOverlap if there is partial overlap or OTNoOverlap if there is none.

UTO CosTime::TIO::time  
 

Converts this TIO into a UTO.

Returns:
A UTO, with the time set to the midpoint of the interval, the error set so that it includes the range of the interval and the timezone set to the local timezone.


Member Data Documentation

readonly attribute TimeBase::IntervalT CosTime::TIO::time_interval
 

Specifies the interval represented by this TIO.