00001 package Sct_CalibrationController;
00002
00003
00011 public class _CalibrationControllerStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_CalibrationController.CalibrationController
00012 {
00013
00014
00016 public Sct_CalibrationController.ScanLibrary getScanLibrary ()
00017 {
00018 org.omg.CORBA.portable.InputStream $in = null;
00019 try {
00020 org.omg.CORBA.portable.OutputStream $out = _request ("getScanLibrary", true);
00021 $in = _invoke ($out);
00022 Sct_CalibrationController.ScanLibrary $result = Sct_CalibrationController.ScanLibraryHelper.read ($in);
00023 return $result;
00024 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00025 $in = $ex.getInputStream ();
00026 String _id = $ex.getId ();
00027 throw new org.omg.CORBA.MARSHAL (_id);
00028 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00029 return getScanLibrary ( );
00030 } finally {
00031 _releaseReply ($in);
00032 }
00033 }
00034
00035
00037 public Sct_CalibrationController.TestLibrary getTestLibrary ()
00038 {
00039 org.omg.CORBA.portable.InputStream $in = null;
00040 try {
00041 org.omg.CORBA.portable.OutputStream $out = _request ("getTestLibrary", true);
00042 $in = _invoke ($out);
00043 Sct_CalibrationController.TestLibrary $result = Sct_CalibrationController.TestLibraryHelper.read ($in);
00044 return $result;
00045 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00046 $in = $ex.getInputStream ();
00047 String _id = $ex.getId ();
00048 throw new org.omg.CORBA.MARSHAL (_id);
00049 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00050 return getTestLibrary ( );
00051 } finally {
00052 _releaseReply ($in);
00053 }
00054 }
00055
00056
00058 public Sct_CalibrationController.SequenceLibrary getSequenceLibrary ()
00059 {
00060 org.omg.CORBA.portable.InputStream $in = null;
00061 try {
00062 org.omg.CORBA.portable.OutputStream $out = _request ("getSequenceLibrary", true);
00063 $in = _invoke ($out);
00064 Sct_CalibrationController.SequenceLibrary $result = Sct_CalibrationController.SequenceLibraryHelper.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 getSequenceLibrary ( );
00072 } finally {
00073 _releaseReply ($in);
00074 }
00075 }
00076
00077
00079 public void doScan (Sct_CalibrationController.ScanRequest s)
00080 {
00081 org.omg.CORBA.portable.InputStream $in = null;
00082 try {
00083 org.omg.CORBA.portable.OutputStream $out = _request ("doScan", false);
00084 Sct_CalibrationController.ScanRequestHelper.write ($out, s);
00085 $in = _invoke ($out);
00086 return;
00087 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00088 $in = $ex.getInputStream ();
00089 String _id = $ex.getId ();
00090 throw new org.omg.CORBA.MARSHAL (_id);
00091 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00092 doScan (s );
00093 } finally {
00094 _releaseReply ($in);
00095 }
00096 }
00097
00098
00100 public void doTest (Sct_CalibrationController.TestRequest t)
00101 {
00102 org.omg.CORBA.portable.InputStream $in = null;
00103 try {
00104 org.omg.CORBA.portable.OutputStream $out = _request ("doTest", false);
00105 Sct_CalibrationController.TestRequestHelper.write ($out, t);
00106 $in = _invoke ($out);
00107 return;
00108 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00109 $in = $ex.getInputStream ();
00110 String _id = $ex.getId ();
00111 throw new org.omg.CORBA.MARSHAL (_id);
00112 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00113 doTest (t );
00114 } finally {
00115 _releaseReply ($in);
00116 }
00117 }
00118
00119
00121 public void doSequence (Sct_CalibrationController.SequenceRequest r)
00122 {
00123 org.omg.CORBA.portable.InputStream $in = null;
00124 try {
00125 org.omg.CORBA.portable.OutputStream $out = _request ("doSequence", false);
00126 Sct_CalibrationController.SequenceRequestHelper.write ($out, r);
00127 $in = _invoke ($out);
00128 return;
00129 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00130 $in = $ex.getInputStream ();
00131 String _id = $ex.getId ();
00132 throw new org.omg.CORBA.MARSHAL (_id);
00133 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00134 doSequence (r );
00135 } finally {
00136 _releaseReply ($in);
00137 }
00138 }
00139
00140
00142 public void abort ()
00143 {
00144 org.omg.CORBA.portable.InputStream $in = null;
00145 try {
00146 org.omg.CORBA.portable.OutputStream $out = _request ("abort", false);
00147 $in = _invoke ($out);
00148 return;
00149 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00150 $in = $ex.getInputStream ();
00151 String _id = $ex.getId ();
00152 throw new org.omg.CORBA.MARSHAL (_id);
00153 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00154 abort ( );
00155 } finally {
00156 _releaseReply ($in);
00157 }
00158 }
00159
00160
00162 public void setUpdateOption (Sct_CalibrationController.CalibrationControllerPackage.UpdateOption opt)
00163 {
00164 org.omg.CORBA.portable.InputStream $in = null;
00165 try {
00166 org.omg.CORBA.portable.OutputStream $out = _request ("setUpdateOption", false);
00167 Sct_CalibrationController.CalibrationControllerPackage.UpdateOptionHelper.write ($out, opt);
00168 $in = _invoke ($out);
00169 return;
00170 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00171 $in = $ex.getInputStream ();
00172 String _id = $ex.getId ();
00173 throw new org.omg.CORBA.MARSHAL (_id);
00174 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00175 setUpdateOption (opt );
00176 } finally {
00177 _releaseReply ($in);
00178 }
00179 }
00180
00181
00183 public Sct_SctApi.Scan getScan (int runNumber, int scanNumber)
00184 {
00185 org.omg.CORBA.portable.InputStream $in = null;
00186 try {
00187 org.omg.CORBA.portable.OutputStream $out = _request ("getScan", true);
00188 $out.write_ulong (runNumber);
00189 $out.write_ulong (scanNumber);
00190 $in = _invoke ($out);
00191 Sct_SctApi.Scan $result = Sct_SctApi.ScanHelper.read ($in);
00192 return $result;
00193 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00194 $in = $ex.getInputStream ();
00195 String _id = $ex.getId ();
00196 throw new org.omg.CORBA.MARSHAL (_id);
00197 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00198 return getScan (runNumber, scanNumber );
00199 } finally {
00200 _releaseReply ($in);
00201 }
00202 }
00203
00204
00206 public void updateWith (String testResultInIs, boolean force)
00207 {
00208 org.omg.CORBA.portable.InputStream $in = null;
00209 try {
00210 org.omg.CORBA.portable.OutputStream $out = _request ("updateWith", false);
00211 $out.write_string (testResultInIs);
00212 $out.write_boolean (force);
00213 $in = _invoke ($out);
00214 return;
00215 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00216 $in = $ex.getInputStream ();
00217 String _id = $ex.getId ();
00218 throw new org.omg.CORBA.MARSHAL (_id);
00219 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00220 updateWith (testResultInIs, force );
00221 } finally {
00222 _releaseReply ($in);
00223 }
00224 }
00225
00226 public void get_info (ipc.InfoHolder inf)
00227 {
00228 org.omg.CORBA.portable.InputStream $in = null;
00229 try {
00230 org.omg.CORBA.portable.OutputStream $out = _request ("get_info", true);
00231 $in = _invoke ($out);
00232 inf.value = ipc.InfoHelper.read ($in);
00233 return;
00234 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00235 $in = $ex.getInputStream ();
00236 String _id = $ex.getId ();
00237 throw new org.omg.CORBA.MARSHAL (_id);
00238 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00239 get_info (inf );
00240 } finally {
00241 _releaseReply ($in);
00242 }
00243 }
00244
00245 public void destroy ()
00246 {
00247 org.omg.CORBA.portable.InputStream $in = null;
00248 try {
00249 org.omg.CORBA.portable.OutputStream $out = _request ("destroy", false);
00250 $in = _invoke ($out);
00251 return;
00252 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00253 $in = $ex.getInputStream ();
00254 String _id = $ex.getId ();
00255 throw new org.omg.CORBA.MARSHAL (_id);
00256 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00257 destroy ( );
00258 } finally {
00259 _releaseReply ($in);
00260 }
00261 }
00262
00263
00264 private static String[] __ids = {
00265 "IDL:Sct_CalibrationController/CalibrationController:1.0",
00266 "IDL:ipc/freeable:1.0"};
00267
00268 public String[] _ids ()
00269 {
00270 return (String[])__ids.clone ();
00271 }
00272
00273 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00274 {
00275 String str = s.readUTF ();
00276 String[] args = null;
00277 java.util.Properties props = null;
00278 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00279 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00280 _set_delegate (delegate);
00281 }
00282
00283 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00284 {
00285 String[] args = null;
00286 java.util.Properties props = null;
00287 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00288 s.writeUTF (str);
00289 }
00290 }