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     _methods.put ("getAnalysisAlgorithm", new java.lang.Integer (4));
00030     _methods.put ("setAnalysisAlgorithm", new java.lang.Integer (5));
00031     _methods.put ("getFitAlgorithm", new java.lang.Integer (6));
00032     _methods.put ("setFitAlgorithm", new java.lang.Integer (7));
00033   }
00034 
00035   public org.omg.CORBA.portable.OutputStream _invoke (String $method,
00036                                 org.omg.CORBA.portable.InputStream in,
00037                                 org.omg.CORBA.portable.ResponseHandler $rh)
00038   {
00039     org.omg.CORBA.portable.OutputStream out = null;
00040     java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
00041     if (__method == null)
00042       throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00043 
00044     switch (__method.intValue ())
00045     {
00046 
00053        case 0:  // Sct_CalibrationController/TestRequest/startTest
00054        {
00055          Sct_SctApi.SctApiIPC api = Sct_SctApi.SctApiIPCHelper.read (in);
00056          org.omg.CORBA.StringHolder name = new org.omg.CORBA.StringHolder ();
00057          org.omg.CORBA.ShortHolder testVariable = new org.omg.CORBA.ShortHolder ();
00058          org.omg.CORBA.IntHolder nScans = new org.omg.CORBA.IntHolder ();
00059          Sct_CalibrationController.TestPointsHolder testPointsData = new Sct_CalibrationController.TestPointsHolder ();
00060          this.startTest (api, name, testVariable, nScans, testPointsData);
00061          out = $rh.createReply();
00062          out.write_string (name.value);
00063          out.write_ushort (testVariable.value);
00064          out.write_ulong (nScans.value);
00065          Sct_CalibrationController.TestPointsHelper.write (out, testPointsData.value);
00066          break;
00067        }
00068 
00069 
00074        case 1:  // Sct_CalibrationController/TestRequest/getNextScan
00075        {
00076          int index = in.read_ulong ();
00077          Sct_CalibrationController.ScanRequest $result = null;
00078          $result = this.getNextScan (index);
00079          out = $rh.createReply();
00080          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00081          break;
00082        }
00083 
00084 
00089        case 2:  // Sct_CalibrationController/TestRequest/canFeedback
00090        {
00091          boolean $result = false;
00092          $result = this.canFeedback ();
00093          out = $rh.createReply();
00094          out.write_boolean ($result);
00095          break;
00096        }
00097 
00098 
00102        case 3:  // Sct_CalibrationController/TestRequest/endTest
00103        {
00104          this.endTest ();
00105          out = $rh.createReply();
00106          break;
00107        }
00108 
00109 
00113        case 4:  // Sct_CalibrationController/TestRequest/getAnalysisAlgorithm
00114        {
00115          String $result = null;
00116          $result = this.getAnalysisAlgorithm ();
00117          out = $rh.createReply();
00118          out.write_string ($result);
00119          break;
00120        }
00121 
00122 
00126        case 5:  // Sct_CalibrationController/TestRequest/setAnalysisAlgorithm
00127        {
00128          String name = in.read_string ();
00129          this.setAnalysisAlgorithm (name);
00130          out = $rh.createReply();
00131          break;
00132        }
00133 
00134 
00138        case 6:  // Sct_CalibrationController/TestRequest/getFitAlgorithm
00139        {
00140          String $result = null;
00141          $result = this.getFitAlgorithm ();
00142          out = $rh.createReply();
00143          out.write_string ($result);
00144          break;
00145        }
00146 
00147 
00151        case 7:  // Sct_CalibrationController/TestRequest/setFitAlgorithm
00152        {
00153          String name = in.read_string ();
00154          this.setFitAlgorithm (name);
00155          out = $rh.createReply();
00156          break;
00157        }
00158 
00159        default:
00160          throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00161     }
00162 
00163     return out;
00164   } // _invoke
00165 
00166   // Type-specific CORBA::Object operations
00167   private static String[] __ids = {
00168     "IDL:Sct_CalibrationController/TestRequest:1.0"};
00169 
00170   public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00171   {
00172     return (String[])__ids.clone ();
00173   }
00174 
00175   public TestRequest _this() 
00176   {
00177     return TestRequestHelper.narrow(
00178     super._this_object());
00179   }
00180 
00181   public TestRequest _this(org.omg.CORBA.ORB orb) 
00182   {
00183     return TestRequestHelper.narrow(
00184     super._this_object(orb));
00185   }
00186 
00187 
00188 } // class TestRequestPOA

Generated on Mon Feb 6 14:12:20 2006 for SCT DAQ/DCS Software - Java by  doxygen 1.4.6