org.omg.CosTime

Interface TIOOperations

public interface TIOOperations

The TIO represents a time interval and contains operations relevant to time intervals
Method Summary
OverlapTypeoverlaps(TIO interval, TIOHolder overlap)
This operation returns a value of type OverlapType depending on how the interval in the object and interval in the parameter TIO overlap.
OverlapTypespans(UTO time, TIOHolder overlap)
This operation returns a value of type OverlapType depending on how the interval in the object and the time range represented by the parameter UTO overlap.
UTOtime()
Operation time
IntervalTtime_interval()
This attribute returns an IntervalT structure with the value of its fields filled in with the corresponding values from the TIO

Method Detail

overlaps

public OverlapType overlaps(TIO interval, TIOHolder overlap)
This operation returns a value of type OverlapType depending on how the interval in the object and interval in the parameter TIO overlap. The interval in the object is interval A and the interval in the parameter TOI is interval B. If OverlapType is not OTNoOverlap, then the out parameter overlap contains the overlap interval, otherwise the out parameter contains the gap between the two interval. The exception CORBA::BAD_PARAM is raised if the TOI passed in is invalid.

spans

public OverlapType spans(UTO time, TIOHolder overlap)
This operation returns a value of type OverlapType depending on how the interval in the object and the time range represented by the parameter UTO overlap. The interval in the object is interval A and the interval in the parameter UTO is interval B. If OverlapType is not OTNoOverLap, then the out parameter overlap contains the overlap interval, otherwise the out parameter contains the gap between the two intervals. The exception CORBA::BAD_PARAM is raised if the UTO passed in is invalid

time

public UTO time()
Operation time

time_interval

public IntervalT time_interval()
This attribute returns an IntervalT structure with the value of its fields filled in with the corresponding values from the TIO