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)
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 $in = _invoke ($out);
00213 return;
00214 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00215 $in = $ex.getInputStream ();
00216 String _id = $ex.getId ();
00217 throw new org.omg.CORBA.MARSHAL (_id);
00218 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00219 updateWith (testResultInIs );
00220 } finally {
00221 _releaseReply ($in);
00222 }
00223 }
00224
00225 public void get_info (ipc.InfoHolder inf)
00226 {
00227 org.omg.CORBA.portable.InputStream $in = null;
00228 try {
00229 org.omg.CORBA.portable.OutputStream $out = _request ("get_info", true);
00230 $in = _invoke ($out);
00231 inf.value = ipc.InfoHelper.read ($in);
00232 return;
00233 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00234 $in = $ex.getInputStream ();
00235 String _id = $ex.getId ();
00236 throw new org.omg.CORBA.MARSHAL (_id);
00237 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00238 get_info (inf );
00239 } finally {
00240 _releaseReply ($in);
00241 }
00242 }
00243
00244 public void destroy ()
00245 {
00246 org.omg.CORBA.portable.InputStream $in = null;
00247 try {
00248 org.omg.CORBA.portable.OutputStream $out = _request ("destroy", false);
00249 $in = _invoke ($out);
00250 return;
00251 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00252 $in = $ex.getInputStream ();
00253 String _id = $ex.getId ();
00254 throw new org.omg.CORBA.MARSHAL (_id);
00255 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00256 destroy ( );
00257 } finally {
00258 _releaseReply ($in);
00259 }
00260 }
00261
00262
00263 private static String[] __ids = {
00264 "IDL:Sct_CalibrationController/CalibrationController:1.0",
00265 "IDL:ipc/freeable:1.0"};
00266
00267 public String[] _ids ()
00268 {
00269 return (String[])__ids.clone ();
00270 }
00271
00272 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00273 {
00274 String str = s.readUTF ();
00275 String[] args = null;
00276 java.util.Properties props = null;
00277 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00278 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00279 _set_delegate (delegate);
00280 }
00281
00282 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00283 {
00284 String[] args = null;
00285 java.util.Properties props = null;
00286 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00287 s.writeUTF (str);
00288 }
00289 }