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

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

Generated on Fri Jan 14 12:49:56 2005 for SCT DAQ/DCS Software - Java by doxygen 1.3.5