00001 package Sct_CalibrationController;
00002
00003
00011 public abstract class CalibrationControllerPOA extends org.omg.PortableServer.Servant
00012 implements Sct_CalibrationController.CalibrationControllerOperations, org.omg.CORBA.portable.InvokeHandler
00013 {
00014
00015
00016
00017 private static java.util.Hashtable _methods = new java.util.Hashtable ();
00018 static
00019 {
00020 _methods.put ("getScanLibrary", new java.lang.Integer (0));
00021 _methods.put ("getTestLibrary", new java.lang.Integer (1));
00022 _methods.put ("getSequenceLibrary", new java.lang.Integer (2));
00023 _methods.put ("doScan", new java.lang.Integer (3));
00024 _methods.put ("doTest", new java.lang.Integer (4));
00025 _methods.put ("doSequence", new java.lang.Integer (5));
00026 _methods.put ("abort", new java.lang.Integer (6));
00027 _methods.put ("setUpdateOption", new java.lang.Integer (7));
00028 _methods.put ("getScan", new java.lang.Integer (8));
00029 _methods.put ("updateWith", new java.lang.Integer (9));
00030 _methods.put ("getApi", new java.lang.Integer (10));
00031 _methods.put ("_get_information", new java.lang.Integer (11));
00032 _methods.put ("shutdown", new java.lang.Integer (12));
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
00048 case 0:
00049 {
00050 Sct_CalibrationController.ScanLibrary $result = null;
00051 $result = this.getScanLibrary ();
00052 out = $rh.createReply();
00053 Sct_CalibrationController.ScanLibraryHelper.write (out, $result);
00054 break;
00055 }
00056
00057
00059 case 1:
00060 {
00061 Sct_CalibrationController.TestLibrary $result = null;
00062 $result = this.getTestLibrary ();
00063 out = $rh.createReply();
00064 Sct_CalibrationController.TestLibraryHelper.write (out, $result);
00065 break;
00066 }
00067
00068
00070 case 2:
00071 {
00072 Sct_CalibrationController.SequenceLibrary $result = null;
00073 $result = this.getSequenceLibrary ();
00074 out = $rh.createReply();
00075 Sct_CalibrationController.SequenceLibraryHelper.write (out, $result);
00076 break;
00077 }
00078
00079
00081 case 3:
00082 {
00083 Sct_CalibrationController.ScanRequest s = Sct_CalibrationController.ScanRequestHelper.read (in);
00084 this.doScan (s);
00085 out = $rh.createReply();
00086 break;
00087 }
00088
00089
00091 case 4:
00092 {
00093 Sct_CalibrationController.TestRequest t = Sct_CalibrationController.TestRequestHelper.read (in);
00094 this.doTest (t);
00095 out = $rh.createReply();
00096 break;
00097 }
00098
00099
00101 case 5:
00102 {
00103 Sct_CalibrationController.SequenceRequest r = Sct_CalibrationController.SequenceRequestHelper.read (in);
00104 this.doSequence (r);
00105 out = $rh.createReply();
00106 break;
00107 }
00108
00109
00111 case 6:
00112 {
00113 this.abort ();
00114 out = $rh.createReply();
00115 break;
00116 }
00117
00118
00120 case 7:
00121 {
00122 Sct_CalibrationController.CalibrationControllerPackage.UpdateOption opt = Sct_CalibrationController.CalibrationControllerPackage.UpdateOptionHelper.read (in);
00123 this.setUpdateOption (opt);
00124 out = $rh.createReply();
00125 break;
00126 }
00127
00128
00130 case 8:
00131 {
00132 int runNumber = in.read_ulong ();
00133 int scanNumber = in.read_ulong ();
00134 Sct_SctApi.Scan $result = null;
00135 $result = this.getScan (runNumber, scanNumber);
00136 out = $rh.createReply();
00137 Sct_SctApi.ScanHelper.write (out, $result);
00138 break;
00139 }
00140
00141
00143 case 9:
00144 {
00145 String testResultInIs = in.read_string ();
00146 boolean force = in.read_boolean ();
00147 this.updateWith (testResultInIs, force);
00148 out = $rh.createReply();
00149 break;
00150 }
00151
00152 case 10:
00153 {
00154 Sct_SctApi.SctApiIPC $result = null;
00155 $result = this.getApi ();
00156 out = $rh.createReply();
00157 Sct_SctApi.SctApiIPCHelper.write (out, $result);
00158 break;
00159 }
00160
00161 case 11:
00162 {
00163 ipc.servantPackage.info $result = null;
00164 $result = this.information ();
00165 out = $rh.createReply();
00166 ipc.servantPackage.infoHelper.write (out, $result);
00167 break;
00168 }
00169
00170 case 12:
00171 {
00172 this.shutdown ();
00173 out = $rh.createReply();
00174 break;
00175 }
00176
00177 default:
00178 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00179 }
00180
00181 return out;
00182 }
00183
00184
00185 private static String[] __ids = {
00186 "IDL:Sct_CalibrationController/CalibrationController:1.0",
00187 "IDL:ipc/servant:1.0"};
00188
00189 public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00190 {
00191 return (String[])__ids.clone ();
00192 }
00193
00194 public CalibrationController _this()
00195 {
00196 return CalibrationControllerHelper.narrow(
00197 super._this_object());
00198 }
00199
00200 public CalibrationController _this(org.omg.CORBA.ORB orb)
00201 {
00202 return CalibrationControllerHelper.narrow(
00203 super._this_object(orb));
00204 }
00205
00206
00207 }