Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

TestRequestPOA.java

00001 package Sct_CalibrationController;
00002 
00003 
00016 public abstract class TestRequestPOA extends org.omg.PortableServer.Servant
00017  implements Sct_CalibrationController.TestRequestOperations, org.omg.CORBA.portable.InvokeHandler
00018 {
00019 
00020   // Constructors
00021 
00022   private static java.util.Hashtable _methods = new java.util.Hashtable ();
00023   static
00024   {
00025     _methods.put ("startTest", new java.lang.Integer (0));
00026     _methods.put ("getNextScan", new java.lang.Integer (1));
00027     _methods.put ("canFeedback", new java.lang.Integer (2));
00028     _methods.put ("endTest", new java.lang.Integer (3));
00029   }
00030 
00031   public org.omg.CORBA.portable.OutputStream _invoke (String $method,
00032                                 org.omg.CORBA.portable.InputStream in,
00033                                 org.omg.CORBA.portable.ResponseHandler $rh)
00034   {
00035     org.omg.CORBA.portable.OutputStream out = null;
00036     java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
00037     if (__method == null)
00038       throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00039 
00040     switch (__method.intValue ())
00041     {
00042 
00049        case 0:  // Sct_CalibrationController/TestRequest/startTest
00050        {
00051          Sct_SctApi.SctApi api = Sct_SctApi.SctApiHelper.read (in);
00052          org.omg.CORBA.StringHolder name = new org.omg.CORBA.StringHolder ();
00053          org.omg.CORBA.ShortHolder testVariable = new org.omg.CORBA.ShortHolder ();
00054          org.omg.CORBA.IntHolder nScans = new org.omg.CORBA.IntHolder ();
00055          Sct_CalibrationController.TestPointsHolder testPointsData = new Sct_CalibrationController.TestPointsHolder ();
00056          this.startTest (api, name, testVariable, nScans, testPointsData);
00057          out = $rh.createReply();
00058          out.write_string (name.value);
00059          out.write_ushort (testVariable.value);
00060          out.write_ulong (nScans.value);
00061          Sct_CalibrationController.TestPointsHelper.write (out, testPointsData.value);
00062          break;
00063        }
00064 
00065 
00070        case 1:  // Sct_CalibrationController/TestRequest/getNextScan
00071        {
00072          int index = in.read_ulong ();
00073          Sct_CalibrationController.ScanRequest $result = null;
00074          $result = this.getNextScan (index);
00075          out = $rh.createReply();
00076          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00077          break;
00078        }
00079 
00080 
00085        case 2:  // Sct_CalibrationController/TestRequest/canFeedback
00086        {
00087          boolean $result = false;
00088          $result = this.canFeedback ();
00089          out = $rh.createReply();
00090          out.write_boolean ($result);
00091          break;
00092        }
00093 
00094 
00098        case 3:  // Sct_CalibrationController/TestRequest/endTest
00099        {
00100          this.endTest ();
00101          out = $rh.createReply();
00102          break;
00103        }
00104 
00105        default:
00106          throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00107     }
00108 
00109     return out;
00110   } // _invoke
00111 
00112   // Type-specific CORBA::Object operations
00113   private static String[] __ids = {
00114     "IDL:Sct_CalibrationController/TestRequest:1.0"};
00115 
00116   public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00117   {
00118     return (String[])__ids.clone ();
00119   }
00120 
00121   public TestRequest _this() 
00122   {
00123     return TestRequestHelper.narrow(
00124     super._this_object());
00125   }
00126 
00127   public TestRequest _this(org.omg.CORBA.ORB orb) 
00128   {
00129     return TestRequestHelper.narrow(
00130     super._this_object(orb));
00131   }
00132 
00133 
00134 } // class TestRequestPOA

Generated on Thu Jul 15 09:55:50 2004 for SCT DAQ/DCS Software - Java by doxygen 1.3.5