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

CalibrationControllerPOA.java

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   // Constructors
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 ("get_info", new java.lang.Integer (10));
00031     _methods.put ("destroy", new java.lang.Integer (11));
00032   }
00033 
00034   public org.omg.CORBA.portable.OutputStream _invoke (String $method,
00035                                 org.omg.CORBA.portable.InputStream in,
00036                                 org.omg.CORBA.portable.ResponseHandler $rh)
00037   {
00038     org.omg.CORBA.portable.OutputStream out = null;
00039     java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
00040     if (__method == null)
00041       throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00042 
00043     switch (__method.intValue ())
00044     {
00045 
00047        case 0:  // Sct_CalibrationController/CalibrationController/getScanLibrary
00048        {
00049          Sct_CalibrationController.ScanLibrary $result = null;
00050          $result = this.getScanLibrary ();
00051          out = $rh.createReply();
00052          Sct_CalibrationController.ScanLibraryHelper.write (out, $result);
00053          break;
00054        }
00055 
00056 
00058        case 1:  // Sct_CalibrationController/CalibrationController/getTestLibrary
00059        {
00060          Sct_CalibrationController.TestLibrary $result = null;
00061          $result = this.getTestLibrary ();
00062          out = $rh.createReply();
00063          Sct_CalibrationController.TestLibraryHelper.write (out, $result);
00064          break;
00065        }
00066 
00067 
00069        case 2:  // Sct_CalibrationController/CalibrationController/getSequenceLibrary
00070        {
00071          Sct_CalibrationController.SequenceLibrary $result = null;
00072          $result = this.getSequenceLibrary ();
00073          out = $rh.createReply();
00074          Sct_CalibrationController.SequenceLibraryHelper.write (out, $result);
00075          break;
00076        }
00077 
00078 
00080        case 3:  // Sct_CalibrationController/CalibrationController/doScan
00081        {
00082          Sct_CalibrationController.ScanRequest s = Sct_CalibrationController.ScanRequestHelper.read (in);
00083          this.doScan (s);
00084          out = $rh.createReply();
00085          break;
00086        }
00087 
00088 
00090        case 4:  // Sct_CalibrationController/CalibrationController/doTest
00091        {
00092          Sct_CalibrationController.TestRequest t = Sct_CalibrationController.TestRequestHelper.read (in);
00093          this.doTest (t);
00094          out = $rh.createReply();
00095          break;
00096        }
00097 
00098 
00100        case 5:  // Sct_CalibrationController/CalibrationController/doSequence
00101        {
00102          Sct_CalibrationController.SequenceRequest r = Sct_CalibrationController.SequenceRequestHelper.read (in);
00103          this.doSequence (r);
00104          out = $rh.createReply();
00105          break;
00106        }
00107 
00108 
00110        case 6:  // Sct_CalibrationController/CalibrationController/abort
00111        {
00112          this.abort ();
00113          out = $rh.createReply();
00114          break;
00115        }
00116 
00117 
00119        case 7:  // Sct_CalibrationController/CalibrationController/setUpdateOption
00120        {
00121          Sct_CalibrationController.CalibrationControllerPackage.UpdateOption opt = Sct_CalibrationController.CalibrationControllerPackage.UpdateOptionHelper.read (in);
00122          this.setUpdateOption (opt);
00123          out = $rh.createReply();
00124          break;
00125        }
00126 
00127 
00129        case 8:  // Sct_CalibrationController/CalibrationController/getScan
00130        {
00131          int runNumber = in.read_ulong ();
00132          int scanNumber = in.read_ulong ();
00133          Sct_SctApi.Scan $result = null;
00134          $result = this.getScan (runNumber, scanNumber);
00135          out = $rh.createReply();
00136          Sct_SctApi.ScanHelper.write (out, $result);
00137          break;
00138        }
00139 
00140 
00142        case 9:  // Sct_CalibrationController/CalibrationController/updateWith
00143        {
00144          String testResultInIs = in.read_string ();
00145          this.updateWith (testResultInIs);
00146          out = $rh.createReply();
00147          break;
00148        }
00149 
00150        case 10:  // ipc/freeable/get_info
00151        {
00152          ipc.InfoHolder inf = new ipc.InfoHolder ();
00153          this.get_info (inf);
00154          out = $rh.createReply();
00155          ipc.InfoHelper.write (out, inf.value);
00156          break;
00157        }
00158 
00159        case 11:  // ipc/freeable/destroy
00160        {
00161          this.destroy ();
00162          out = $rh.createReply();
00163          break;
00164        }
00165 
00166        default:
00167          throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00168     }
00169 
00170     return out;
00171   } // _invoke
00172 
00173   // Type-specific CORBA::Object operations
00174   private static String[] __ids = {
00175     "IDL:Sct_CalibrationController/CalibrationController:1.0", 
00176     "IDL:ipc/freeable:1.0"};
00177 
00178   public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00179   {
00180     return (String[])__ids.clone ();
00181   }
00182 
00183   public CalibrationController _this() 
00184   {
00185     return CalibrationControllerHelper.narrow(
00186     super._this_object());
00187   }
00188 
00189   public CalibrationController _this(org.omg.CORBA.ORB orb) 
00190   {
00191     return CalibrationControllerHelper.narrow(
00192     super._this_object(orb));
00193   }
00194 
00195 
00196 } // class CalibrationControllerPOA

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