00001 package Sct_CalibrationController;
00002
00003
00011 public class _ScanLibraryStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_CalibrationController.ScanLibrary
00012 {
00013
00014 public Sct_CalibrationController.ScanRequest thresholdScan (int nTrigs)
00015 {
00016 org.omg.CORBA.portable.InputStream $in = null;
00017 try {
00018 org.omg.CORBA.portable.OutputStream $out = _request ("thresholdScan", true);
00019 $out.write_ulong (nTrigs);
00020 $in = _invoke ($out);
00021 Sct_CalibrationController.ScanRequest $result = Sct_CalibrationController.ScanRequestHelper.read ($in);
00022 return $result;
00023 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00024 $in = $ex.getInputStream ();
00025 String _id = $ex.getId ();
00026 throw new org.omg.CORBA.MARSHAL (_id);
00027 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00028 return thresholdScan (nTrigs );
00029 } finally {
00030 _releaseReply ($in);
00031 }
00032 }
00033
00034 public Sct_CalibrationController.ScanRequest thresholdScanfC (int nTrigs, double calCharge)
00035 {
00036 org.omg.CORBA.portable.InputStream $in = null;
00037 try {
00038 org.omg.CORBA.portable.OutputStream $out = _request ("thresholdScanfC", true);
00039 $out.write_ulong (nTrigs);
00040 $out.write_double (calCharge);
00041 $in = _invoke ($out);
00042 Sct_CalibrationController.ScanRequest $result = Sct_CalibrationController.ScanRequestHelper.read ($in);
00043 return $result;
00044 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00045 $in = $ex.getInputStream ();
00046 String _id = $ex.getId ();
00047 throw new org.omg.CORBA.MARSHAL (_id);
00048 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00049 return thresholdScanfC (nTrigs, calCharge );
00050 } finally {
00051 _releaseReply ($in);
00052 }
00053 }
00054
00055 public Sct_CalibrationController.ScanRequest thresholdScanfCOffset (int nTrigs, double calCharge, double offset)
00056 {
00057 org.omg.CORBA.portable.InputStream $in = null;
00058 try {
00059 org.omg.CORBA.portable.OutputStream $out = _request ("thresholdScanfCOffset", true);
00060 $out.write_ulong (nTrigs);
00061 $out.write_double (calCharge);
00062 $out.write_double (offset);
00063 $in = _invoke ($out);
00064 Sct_CalibrationController.ScanRequest $result = Sct_CalibrationController.ScanRequestHelper.read ($in);
00065 return $result;
00066 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00067 $in = $ex.getInputStream ();
00068 String _id = $ex.getId ();
00069 throw new org.omg.CORBA.MARSHAL (_id);
00070 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00071 return thresholdScanfCOffset (nTrigs, calCharge, offset );
00072 } finally {
00073 _releaseReply ($in);
00074 }
00075 }
00076
00077 public Sct_CalibrationController.ScanRequest noiseOccupancyScan ()
00078 {
00079 org.omg.CORBA.portable.InputStream $in = null;
00080 try {
00081 org.omg.CORBA.portable.OutputStream $out = _request ("noiseOccupancyScan", true);
00082 $in = _invoke ($out);
00083 Sct_CalibrationController.ScanRequest $result = Sct_CalibrationController.ScanRequestHelper.read ($in);
00084 return $result;
00085 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00086 $in = $ex.getInputStream ();
00087 String _id = $ex.getId ();
00088 throw new org.omg.CORBA.MARSHAL (_id);
00089 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00090 return noiseOccupancyScan ( );
00091 } finally {
00092 _releaseReply ($in);
00093 }
00094 }
00095
00096 public Sct_CalibrationController.ScanRequest strobeDelayScan (int nTrigs)
00097 {
00098 org.omg.CORBA.portable.InputStream $in = null;
00099 try {
00100 org.omg.CORBA.portable.OutputStream $out = _request ("strobeDelayScan", true);
00101 $out.write_ulong (nTrigs);
00102 $in = _invoke ($out);
00103 Sct_CalibrationController.ScanRequest $result = Sct_CalibrationController.ScanRequestHelper.read ($in);
00104 return $result;
00105 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00106 $in = $ex.getInputStream ();
00107 String _id = $ex.getId ();
00108 throw new org.omg.CORBA.MARSHAL (_id);
00109 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00110 return strobeDelayScan (nTrigs );
00111 } finally {
00112 _releaseReply ($in);
00113 }
00114 }
00115
00116 public Sct_CalibrationController.ScanRequest nmaskScan (int nTrigs)
00117 {
00118 org.omg.CORBA.portable.InputStream $in = null;
00119 try {
00120 org.omg.CORBA.portable.OutputStream $out = _request ("nmaskScan", true);
00121 $out.write_ulong (nTrigs);
00122 $in = _invoke ($out);
00123 Sct_CalibrationController.ScanRequest $result = Sct_CalibrationController.ScanRequestHelper.read ($in);
00124 return $result;
00125 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00126 $in = $ex.getInputStream ();
00127 String _id = $ex.getId ();
00128 throw new org.omg.CORBA.MARSHAL (_id);
00129 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00130 return nmaskScan (nTrigs );
00131 } finally {
00132 _releaseReply ($in);
00133 }
00134 }
00135
00136 public Sct_CalibrationController.ScanRequest tokenScan ()
00137 {
00138 org.omg.CORBA.portable.InputStream $in = null;
00139 try {
00140 org.omg.CORBA.portable.OutputStream $out = _request ("tokenScan", true);
00141 $in = _invoke ($out);
00142 Sct_CalibrationController.ScanRequest $result = Sct_CalibrationController.ScanRequestHelper.read ($in);
00143 return $result;
00144 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00145 $in = $ex.getInputStream ();
00146 String _id = $ex.getId ();
00147 throw new org.omg.CORBA.MARSHAL (_id);
00148 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00149 return tokenScan ( );
00150 } finally {
00151 _releaseReply ($in);
00152 }
00153 }
00154
00155 public Sct_CalibrationController.ScanRequest rawScan (int nTrigs, boolean issueSoftReset)
00156 {
00157 org.omg.CORBA.portable.InputStream $in = null;
00158 try {
00159 org.omg.CORBA.portable.OutputStream $out = _request ("rawScan", true);
00160 $out.write_ulong (nTrigs);
00161 $out.write_boolean (issueSoftReset);
00162 $in = _invoke ($out);
00163 Sct_CalibrationController.ScanRequest $result = Sct_CalibrationController.ScanRequestHelper.read ($in);
00164 return $result;
00165 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00166 $in = $ex.getInputStream ();
00167 String _id = $ex.getId ();
00168 throw new org.omg.CORBA.MARSHAL (_id);
00169 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00170 return rawScan (nTrigs, issueSoftReset );
00171 } finally {
00172 _releaseReply ($in);
00173 }
00174 }
00175
00176 public Sct_CalibrationController.ScanRequest defaultScan ()
00177 {
00178 org.omg.CORBA.portable.InputStream $in = null;
00179 try {
00180 org.omg.CORBA.portable.OutputStream $out = _request ("defaultScan", true);
00181 $in = _invoke ($out);
00182 Sct_CalibrationController.ScanRequest $result = Sct_CalibrationController.ScanRequestHelper.read ($in);
00183 return $result;
00184 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00185 $in = $ex.getInputStream ();
00186 String _id = $ex.getId ();
00187 throw new org.omg.CORBA.MARSHAL (_id);
00188 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00189 return defaultScan ( );
00190 } finally {
00191 _releaseReply ($in);
00192 }
00193 }
00194
00195
00196 private static String[] __ids = {
00197 "IDL:Sct_CalibrationController/ScanLibrary:1.0"};
00198
00199 public String[] _ids ()
00200 {
00201 return (String[])__ids.clone ();
00202 }
00203
00204 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00205 {
00206 String str = s.readUTF ();
00207 String[] args = null;
00208 java.util.Properties props = null;
00209 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00210 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00211 _set_delegate (delegate);
00212 }
00213
00214 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00215 {
00216 String[] args = null;
00217 java.util.Properties props = null;
00218 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00219 s.writeUTF (str);
00220 }
00221 }