org.openorb.time
Class TimeServiceImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosTime.TimeServicePOA
          extended by org.openorb.time.TimeServiceImpl
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, TimeServiceOperations

public class TimeServiceImpl
extends TimeServicePOA

Author:
Olivier Modica, Nicolas Charpentier, Joncheng Kuo

Constructor Summary
TimeServiceImpl(org.omg.CORBA.ORB orb, long inaccuracy)
          Constructor of the Time Service implementation.
 
Method Summary
 TIO new_interval(long lower, long upper)
          Operation new_interval
 UTO new_universal_time(long time, long inaccuracy, short tdf)
          Operation new_universal_time
 UTO secure_universal_time()
          Operation secure_universal_time
 UTO universal_time()
          Operation universal_time
 UTO uto_from_utc(UtcT utc)
          Operation uto_from_utc
 
Methods inherited from class org.omg.CosTime.TimeServicePOA
_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

TimeServiceImpl

public TimeServiceImpl(org.omg.CORBA.ORB orb,
                       long inaccuracy)
Constructor of the Time Service implementation.

Parameters:
orb - the ORB for the Time Service
inaccuracy - Inaccuracy in units of 100 nanoseconds
Method Detail

universal_time

public UTO universal_time()
                   throws TimeUnavailable
Operation universal_time

Throws:
TimeUnavailable

secure_universal_time

public UTO secure_universal_time()
                          throws TimeUnavailable
Operation secure_universal_time

Throws:
TimeUnavailable

new_universal_time

public UTO new_universal_time(long time,
                              long inaccuracy,
                              short tdf)
Operation new_universal_time


uto_from_utc

public UTO uto_from_utc(UtcT utc)
Operation uto_from_utc


new_interval

public TIO new_interval(long lower,
                        long upper)
Operation new_interval