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
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:
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:
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:
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:
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:
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:
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:
00101 {
00102 int nTrigs = in.read_ulong ();
00103 Sct_CalibrationController.ScanRequest $result = null;
00104 $result = this.rawScan (nTrigs);
00105 out = $rh.createReply();
00106 Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00107 break;
00108 }
00109
00110 case 7:
00111 {
00112 Sct_CalibrationController.ScanRequest $result = null;
00113 $result = this.defaultScan ();
00114 out = $rh.createReply();
00115 Sct_CalibrationController.ScanRequestHelper.write (out, $result);
00116 break;
00117 }
00118
00119 default:
00120 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00121 }
00122
00123 return out;
00124 }
00125
00126
00127 private static String[] __ids = {
00128 "IDL:Sct_CalibrationController/ScanLibrary:1.0"};
00129
00130 public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00131 {
00132 return (String[])__ids.clone ();
00133 }
00134
00135 public ScanLibrary _this()
00136 {
00137 return ScanLibraryHelper.narrow(
00138 super._this_object());
00139 }
00140
00141 public ScanLibrary _this(org.omg.CORBA.ORB orb)
00142 {
00143 return ScanLibraryHelper.narrow(
00144 super._this_object(orb));
00145 }
00146
00147
00148 }