ScanLibraryPOA.java

00001 package Sct_CalibrationController;
00002 
00003 
00011 public abstract class ScanLibraryPOA extends org.omg.PortableServer.Servant
00012  implements Sct_CalibrationController.ScanLibraryOperations, 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 ("thresholdScan", new java.lang.Integer (0));
00021     _methods.put ("thresholdScanfC", new java.lang.Integer (1));
00022     _methods.put ("thresholdScanfCOffset", new java.lang.Integer (2));
00023     _methods.put ("noiseOccupancyScan", new java.lang.Integer (3));
00024     _methods.put ("strobeDelayScan", new java.lang.Integer (4));
00025     _methods.put ("nmaskScan", new java.lang.Integer (5));
00026     _methods.put ("tokenScan", new java.lang.Integer (6));
00027     _methods.put ("rawScan", new java.lang.Integer (7));
00028     _methods.put ("defaultScan", new java.lang.Integer (8));
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        case 0:  // Sct_CalibrationController/ScanLibrary/thresholdScan
00043        {
00044          int nTrigs = in.read_ulong ();
00045          Sct_CalibrationController.ScanRequest $result = null;
00046          $result = this.thresholdScan (nTrigs);
00047          out = $rh.createReply();
00048          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00049          break;
00050        }
00051 
00052        case 1:  // Sct_CalibrationController/ScanLibrary/thresholdScanfC
00053        {
00054          int nTrigs = in.read_ulong ();
00055          double calCharge = in.read_double ();
00056          Sct_CalibrationController.ScanRequest $result = null;
00057          $result = this.thresholdScanfC (nTrigs, calCharge);
00058          out = $rh.createReply();
00059          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00060          break;
00061        }
00062 
00063        case 2:  // Sct_CalibrationController/ScanLibrary/thresholdScanfCOffset
00064        {
00065          int nTrigs = in.read_ulong ();
00066          double calCharge = in.read_double ();
00067          double offset = in.read_double ();
00068          Sct_CalibrationController.ScanRequest $result = null;
00069          $result = this.thresholdScanfCOffset (nTrigs, calCharge, offset);
00070          out = $rh.createReply();
00071          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00072          break;
00073        }
00074 
00075        case 3:  // Sct_CalibrationController/ScanLibrary/noiseOccupancyScan
00076        {
00077          Sct_CalibrationController.ScanRequest $result = null;
00078          $result = this.noiseOccupancyScan ();
00079          out = $rh.createReply();
00080          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00081          break;
00082        }
00083 
00084        case 4:  // Sct_CalibrationController/ScanLibrary/strobeDelayScan
00085        {
00086          int nTrigs = in.read_ulong ();
00087          Sct_CalibrationController.ScanRequest $result = null;
00088          $result = this.strobeDelayScan (nTrigs);
00089          out = $rh.createReply();
00090          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00091          break;
00092        }
00093 
00094        case 5:  // Sct_CalibrationController/ScanLibrary/nmaskScan
00095        {
00096          int nTrigs = in.read_ulong ();
00097          Sct_CalibrationController.ScanRequest $result = null;
00098          $result = this.nmaskScan (nTrigs);
00099          out = $rh.createReply();
00100          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00101          break;
00102        }
00103 
00104        case 6:  // Sct_CalibrationController/ScanLibrary/tokenScan
00105        {
00106          Sct_CalibrationController.ScanRequest $result = null;
00107          $result = this.tokenScan ();
00108          out = $rh.createReply();
00109          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00110          break;
00111        }
00112 
00113        case 7:  // Sct_CalibrationController/ScanLibrary/rawScan
00114        {
00115          int nTrigs = in.read_ulong ();
00116          boolean issueSoftReset = in.read_boolean ();
00117          Sct_CalibrationController.ScanRequest $result = null;
00118          $result = this.rawScan (nTrigs, issueSoftReset);
00119          out = $rh.createReply();
00120          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00121          break;
00122        }
00123 
00124        case 8:  // Sct_CalibrationController/ScanLibrary/defaultScan
00125        {
00126          Sct_CalibrationController.ScanRequest $result = null;
00127          $result = this.defaultScan ();
00128          out = $rh.createReply();
00129          Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00130          break;
00131        }
00132 
00133        default:
00134          throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00135     }
00136 
00137     return out;
00138   } // _invoke
00139 
00140   // Type-specific CORBA::Object operations
00141   private static String[] __ids = {
00142     "IDL:Sct_CalibrationController/ScanLibrary:1.0"};
00143 
00144   public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00145   {
00146     return (String[])__ids.clone ();
00147   }
00148 
00149   public ScanLibrary _this() 
00150   {
00151     return ScanLibraryHelper.narrow(
00152     super._this_object());
00153   }
00154 
00155   public ScanLibrary _this(org.omg.CORBA.ORB orb) 
00156   {
00157     return ScanLibraryHelper.narrow(
00158     super._this_object(orb));
00159   }
00160 
00161 
00162 } // class ScanLibraryPOA

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