org.openorb.time
Class UTOImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosTime.UTOPOA
          extended by org.openorb.time.UTOImpl
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, UTOOperations

public class UTOImpl
extends UTOPOA

Author:
Olivier Modica, Nicolas Charpentier, Joncheng Kuo

Constructor Summary
UTOImpl(org.omg.CORBA.ORB orb)
          Default CTOR
UTOImpl(org.omg.CORBA.ORB orb, long utoTime, long utoInaccuracy, short tdf)
          CTOR with initialization
UTOImpl(org.omg.CORBA.ORB orb, UtcT utc)
           
 
Method Summary
 UTO absolute_time()
          This operation returns a UTO containing the absolute time corresponding to the relative time in object.
 TimeComparison compare_time(ComparisonType comparison_type, UTO uto)
          Operation compare_time
 long inaccuracy()
          inaccuracy read attribute
 TIO interval()
          Operation interval
 short tdf()
          tdf read attribute
 TIO time_to_interval(UTO uto)
          Operation time_to_interval
 long time()
          time read attribute
 UtcT utc_time()
          utc_time read attribute
 
Methods inherited from class org.omg.CosTime.UTOPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTOImpl

public UTOImpl(org.omg.CORBA.ORB orb)
Default CTOR


UTOImpl

public UTOImpl(org.omg.CORBA.ORB orb,
               UtcT utc)

UTOImpl

public UTOImpl(org.omg.CORBA.ORB orb,
               long utoTime,
               long utoInaccuracy,
               short tdf)
CTOR with initialization

Method Detail

time

public long time()
time read attribute

Returns:
the attribute value

inaccuracy

public long inaccuracy()
inaccuracy read attribute

Returns:
the attribute value

tdf

public short tdf()
tdf read attribute

Returns:
the attribute value

utc_time

public UtcT utc_time()
utc_time read attribute

Returns:
the attribute value

absolute_time

public UTO absolute_time()
This operation returns a UTO containing the absolute time corresponding to the relative time in object. Absolute time = current time + time in the object.

Throws:
org.omg.CORBA.DATA_CONVERSION - if the attempt to obtain absolute time causes an overflow.

compare_time

public TimeComparison compare_time(ComparisonType comparison_type,
                                   UTO uto)
Operation compare_time


time_to_interval

public TIO time_to_interval(UTO uto)
Operation time_to_interval


interval

public TIO interval()
Operation interval