package CosTime; /** * CosTime/_UTOStub.java . * Generated by the IDL-to-Java compiler (portable), version "3.1" * from time.idl * Freitag, 18. April 2003 11.06 Uhr CEST */ public class _UTOStub extends org.omg.CORBA.portable.ObjectImpl implements CosTime.UTO { public long time () { org.omg.CORBA.portable.InputStream $in = null; try { org.omg.CORBA.portable.OutputStream $out = _request ("_get_time", true); $in = _invoke ($out); long $result = TimeBase.TimeTHelper.read ($in); return $result; } catch (org.omg.CORBA.portable.ApplicationException $ex) { $in = $ex.getInputStream (); String _id = $ex.getId (); throw new org.omg.CORBA.MARSHAL (_id); } catch (org.omg.CORBA.portable.RemarshalException $rm) { return time ( ); } finally { _releaseReply ($in); } } // time public long inaccuracy () { org.omg.CORBA.portable.InputStream $in = null; try { org.omg.CORBA.portable.OutputStream $out = _request ("_get_inaccuracy", true); $in = _invoke ($out); long $result = TimeBase.InaccuracyTHelper.read ($in); return $result; } catch (org.omg.CORBA.portable.ApplicationException $ex) { $in = $ex.getInputStream (); String _id = $ex.getId (); throw new org.omg.CORBA.MARSHAL (_id); } catch (org.omg.CORBA.portable.RemarshalException $rm) { return inaccuracy ( ); } finally { _releaseReply ($in); } } // inaccuracy public TimeBase.UtcT utc_time () { org.omg.CORBA.portable.InputStream $in = null; try { org.omg.CORBA.portable.OutputStream $out = _request ("_get_utc_time", true); $in = _invoke ($out); TimeBase.UtcT $result = TimeBase.UtcTHelper.read ($in); return $result; } catch (org.omg.CORBA.portable.ApplicationException $ex) { $in = $ex.getInputStream (); String _id = $ex.getId (); throw new org.omg.CORBA.MARSHAL (_id); } catch (org.omg.CORBA.portable.RemarshalException $rm) { return utc_time ( ); } finally { _releaseReply ($in); } } // utc_time public CosTime.UTO absolute_time () { org.omg.CORBA.portable.InputStream $in = null; try { org.omg.CORBA.portable.OutputStream $out = _request ("absolute_time", true); $in = _invoke ($out); CosTime.UTO $result = CosTime.UTOHelper.read ($in); return $result; } catch (org.omg.CORBA.portable.ApplicationException $ex) { $in = $ex.getInputStream (); String _id = $ex.getId (); throw new org.omg.CORBA.MARSHAL (_id); } catch (org.omg.CORBA.portable.RemarshalException $rm) { return absolute_time ( ); } finally { _releaseReply ($in); } } // absolute_time public CosTime.TimeComparison compare_time (CosTime.ComparisonType comparison_type, CosTime.UTO uto) { org.omg.CORBA.portable.InputStream $in = null; try { org.omg.CORBA.portable.OutputStream $out = _request ("compare_time", true); CosTime.ComparisonTypeHelper.write ($out, comparison_type); CosTime.UTOHelper.write ($out, uto); $in = _invoke ($out); CosTime.TimeComparison $result = CosTime.TimeComparisonHelper.read ($in); return $result; } catch (org.omg.CORBA.portable.ApplicationException $ex) { $in = $ex.getInputStream (); String _id = $ex.getId (); throw new org.omg.CORBA.MARSHAL (_id); } catch (org.omg.CORBA.portable.RemarshalException $rm) { return compare_time (comparison_type, uto ); } finally { _releaseReply ($in); } } // compare_time // Type-specific CORBA::Object operations private static String[] __ids = { "IDL:hpi.uni-potsdam.de/CosTime/UTO:1.0"}; public String[] _ids () { return (String[])__ids.clone (); } private void readObject (java.io.ObjectInputStream s) throws java.io.IOException { String str = s.readUTF (); String[] args = null; java.util.Properties props = null; org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); _set_delegate (delegate); } private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException { String[] args = null; java.util.Properties props = null; String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); s.writeUTF (str); } } // class _UTOStub