_CalibrationControllerStub.java

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   } // getScanLibrary
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   } // getTestLibrary
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   } // getSequenceLibrary
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   } // doScan
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   } // doTest
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   } // doSequence
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   } // abort
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   } // setUpdateOption
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   } // getScan
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   } // updateWith
00225 
00226   public Sct_SctApi.SctApiIPC getApi ()
00227   {
00228             org.omg.CORBA.portable.InputStream $in = null;
00229             try {
00230                 org.omg.CORBA.portable.OutputStream $out = _request ("getApi", true);
00231                 $in = _invoke ($out);
00232                 Sct_SctApi.SctApiIPC $result = Sct_SctApi.SctApiIPCHelper.read ($in);
00233                 return $result;
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                 return getApi (        );
00240             } finally {
00241                 _releaseReply ($in);
00242             }
00243   } // getApi
00244 
00245   public ipc.servantPackage.info information ()
00246   {
00247             org.omg.CORBA.portable.InputStream $in = null;
00248             try {
00249                 org.omg.CORBA.portable.OutputStream $out = _request ("_get_information", true);
00250                 $in = _invoke ($out);
00251                 ipc.servantPackage.info $result = ipc.servantPackage.infoHelper.read ($in);
00252                 return $result;
00253             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00254                 $in = $ex.getInputStream ();
00255                 String _id = $ex.getId ();
00256                 throw new org.omg.CORBA.MARSHAL (_id);
00257             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00258                 return information (        );
00259             } finally {
00260                 _releaseReply ($in);
00261             }
00262   } // information
00263 
00264   public void shutdown ()
00265   {
00266             org.omg.CORBA.portable.InputStream $in = null;
00267             try {
00268                 org.omg.CORBA.portable.OutputStream $out = _request ("shutdown", true);
00269                 $in = _invoke ($out);
00270                 return;
00271             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00272                 $in = $ex.getInputStream ();
00273                 String _id = $ex.getId ();
00274                 throw new org.omg.CORBA.MARSHAL (_id);
00275             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00276                 shutdown (        );
00277             } finally {
00278                 _releaseReply ($in);
00279             }
00280   } // shutdown
00281 
00282   // Type-specific CORBA::Object operations
00283   private static String[] __ids = {
00284     "IDL:Sct_CalibrationController/CalibrationController:1.0", 
00285     "IDL:ipc/servant:1.0"};
00286 
00287   public String[] _ids ()
00288   {
00289     return (String[])__ids.clone ();
00290   }
00291 
00292   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00293   {
00294      String str = s.readUTF ();
00295      String[] args = null;
00296      java.util.Properties props = null;
00297      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00298      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00299      _set_delegate (delegate);
00300   }
00301 
00302   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00303   {
00304      String[] args = null;
00305      java.util.Properties props = null;
00306      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00307      s.writeUTF (str);
00308   }
00309 } // class _CalibrationControllerStub

Generated on Mon Feb 6 14:12:03 2006 for SCT DAQ/DCS Software - Java by  doxygen 1.4.6