package CosTime; /** * CosTime/UTOPOA.java . * Generated by the IDL-to-Java compiler (portable), version "3.1" * from time.idl * Freitag, 18. April 2003 11.06 Uhr CEST */ public abstract class UTOPOA extends org.omg.PortableServer.Servant implements CosTime.UTOOperations, org.omg.CORBA.portable.InvokeHandler { // Constructors private static java.util.Hashtable _methods = new java.util.Hashtable (); static { _methods.put ("_get_time", new java.lang.Integer (0)); _methods.put ("_get_inaccuracy", new java.lang.Integer (1)); _methods.put ("_get_utc_time", new java.lang.Integer (2)); _methods.put ("absolute_time", new java.lang.Integer (3)); _methods.put ("compare_time", new java.lang.Integer (4)); } public org.omg.CORBA.portable.OutputStream _invoke (String $method, org.omg.CORBA.portable.InputStream in, org.omg.CORBA.portable.ResponseHandler $rh) { org.omg.CORBA.portable.OutputStream out = null; java.lang.Integer __method = (java.lang.Integer)_methods.get ($method); if (__method == null) throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); switch (__method.intValue ()) { case 0: // CosTime/UTO/_get_time { long $result = (long)0; $result = this.time (); out = $rh.createReply(); out.write_ulonglong ($result); break; } case 1: // CosTime/UTO/_get_inaccuracy { long $result = (long)0; $result = this.inaccuracy (); out = $rh.createReply(); out.write_ulonglong ($result); break; } case 2: // CosTime/UTO/_get_utc_time { TimeBase.UtcT $result = null; $result = this.utc_time (); out = $rh.createReply(); TimeBase.UtcTHelper.write (out, $result); break; } case 3: // CosTime/UTO/absolute_time { CosTime.UTO $result = null; $result = this.absolute_time (); out = $rh.createReply(); CosTime.UTOHelper.write (out, $result); break; } case 4: // CosTime/UTO/compare_time { CosTime.ComparisonType comparison_type = CosTime.ComparisonTypeHelper.read (in); CosTime.UTO uto = CosTime.UTOHelper.read (in); CosTime.TimeComparison $result = null; $result = this.compare_time (comparison_type, uto); out = $rh.createReply(); CosTime.TimeComparisonHelper.write (out, $result); break; } default: throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } return out; } // _invoke // Type-specific CORBA::Object operations private static String[] __ids = { "IDL:hpi.uni-potsdam.de/CosTime/UTO:1.0"}; public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) { return (String[])__ids.clone (); } public UTO _this() { return UTOHelper.narrow( super._this_object()); } public UTO _this(org.omg.CORBA.ORB orb) { return UTOHelper.narrow( super._this_object(orb)); } } // class UTOPOA