_RunControlStub.java

00001 package Sct_SctApi;
00002 
00003 
00012 // Again, not much intelligence needs to be at high-level, just distribution.
00013 public class _RunControlStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.RunControl
00014 {
00015 
00016   public void initialiseAll (int runNumber) throws Sct_SctApi.SctApiException
00017   {
00018             org.omg.CORBA.portable.InputStream $in = null;
00019             try {
00020                 org.omg.CORBA.portable.OutputStream $out = _request ("initialiseAll", true);
00021                 $out.write_ulong (runNumber);
00022                 $in = _invoke ($out);
00023                 return;
00024             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00025                 $in = $ex.getInputStream ();
00026                 String _id = $ex.getId ();
00027                 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00028                     throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00029                 else
00030                     throw new org.omg.CORBA.MARSHAL (_id);
00031             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00032                 initialiseAll (runNumber        );
00033             } finally {
00034                 _releaseReply ($in);
00035             }
00036   } // initialiseAll
00037 
00038   public boolean isInitialised ()
00039   {
00040             org.omg.CORBA.portable.InputStream $in = null;
00041             try {
00042                 org.omg.CORBA.portable.OutputStream $out = _request ("isInitialised", true);
00043                 $in = _invoke ($out);
00044                 boolean $result = $in.read_boolean ();
00045                 return $result;
00046             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00047                 $in = $ex.getInputStream ();
00048                 String _id = $ex.getId ();
00049                 throw new org.omg.CORBA.MARSHAL (_id);
00050             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00051                 return isInitialised (        );
00052             } finally {
00053                 _releaseReply ($in);
00054             }
00055   } // isInitialised
00056 
00057   public void shutdownAll () throws Sct_SctApi.SctApiException
00058   {
00059             org.omg.CORBA.portable.InputStream $in = null;
00060             try {
00061                 org.omg.CORBA.portable.OutputStream $out = _request ("shutdownAll", true);
00062                 $in = _invoke ($out);
00063                 return;
00064             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00065                 $in = $ex.getInputStream ();
00066                 String _id = $ex.getId ();
00067                 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00068                     throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00069                 else
00070                     throw new org.omg.CORBA.MARSHAL (_id);
00071             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00072                 shutdownAll (        );
00073             } finally {
00074                 _releaseReply ($in);
00075             }
00076   } // shutdownAll
00077 
00078   public String status ()
00079   {
00080             org.omg.CORBA.portable.InputStream $in = null;
00081             try {
00082                 org.omg.CORBA.portable.OutputStream $out = _request ("status", true);
00083                 $in = _invoke ($out);
00084                 String $result = $in.read_string ();
00085                 return $result;
00086             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00087                 $in = $ex.getInputStream ();
00088                 String _id = $ex.getId ();
00089                 throw new org.omg.CORBA.MARSHAL (_id);
00090             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00091                 return status (        );
00092             } finally {
00093                 _releaseReply ($in);
00094             }
00095   } // status
00096 
00097   public void setRunNumber (int newRun)
00098   {
00099             org.omg.CORBA.portable.InputStream $in = null;
00100             try {
00101                 org.omg.CORBA.portable.OutputStream $out = _request ("setRunNumber", true);
00102                 $out.write_ulong (newRun);
00103                 $in = _invoke ($out);
00104                 return;
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                 setRunNumber (newRun        );
00111             } finally {
00112                 _releaseReply ($in);
00113             }
00114   } // setRunNumber
00115 
00116   public void setScanNumber (int newScan)
00117   {
00118             org.omg.CORBA.portable.InputStream $in = null;
00119             try {
00120                 org.omg.CORBA.portable.OutputStream $out = _request ("setScanNumber", true);
00121                 $out.write_ulong (newScan);
00122                 $in = _invoke ($out);
00123                 return;
00124             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00125                 $in = $ex.getInputStream ();
00126                 String _id = $ex.getId ();
00127                 throw new org.omg.CORBA.MARSHAL (_id);
00128             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00129                 setScanNumber (newScan        );
00130             } finally {
00131                 _releaseReply ($in);
00132             }
00133   } // setScanNumber
00134 
00135   public int getRunNumber ()
00136   {
00137             org.omg.CORBA.portable.InputStream $in = null;
00138             try {
00139                 org.omg.CORBA.portable.OutputStream $out = _request ("getRunNumber", true);
00140                 $in = _invoke ($out);
00141                 int $result = $in.read_ulong ();
00142                 return $result;
00143             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00144                 $in = $ex.getInputStream ();
00145                 String _id = $ex.getId ();
00146                 throw new org.omg.CORBA.MARSHAL (_id);
00147             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00148                 return getRunNumber (        );
00149             } finally {
00150                 _releaseReply ($in);
00151             }
00152   } // getRunNumber
00153 
00154   public int getScanNumber ()
00155   {
00156             org.omg.CORBA.portable.InputStream $in = null;
00157             try {
00158                 org.omg.CORBA.portable.OutputStream $out = _request ("getScanNumber", true);
00159                 $in = _invoke ($out);
00160                 int $result = $in.read_ulong ();
00161                 return $result;
00162             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00163                 $in = $ex.getInputStream ();
00164                 String _id = $ex.getId ();
00165                 throw new org.omg.CORBA.MARSHAL (_id);
00166             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00167                 return getScanNumber (        );
00168             } finally {
00169                 _releaseReply ($in);
00170             }
00171   } // getScanNumber
00172 
00173   public boolean changeRunMode (Sct_SctApi.RunType mode)
00174   {
00175             org.omg.CORBA.portable.InputStream $in = null;
00176             try {
00177                 org.omg.CORBA.portable.OutputStream $out = _request ("changeRunMode", true);
00178                 Sct_SctApi.RunTypeHelper.write ($out, mode);
00179                 $in = _invoke ($out);
00180                 boolean $result = $in.read_boolean ();
00181                 return $result;
00182             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00183                 $in = $ex.getInputStream ();
00184                 String _id = $ex.getId ();
00185                 throw new org.omg.CORBA.MARSHAL (_id);
00186             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00187                 return changeRunMode (mode        );
00188             } finally {
00189                 _releaseReply ($in);
00190             }
00191   } // changeRunMode
00192 
00193   public boolean changeEventFormat (Sct_SctApi.EventFormatType format)
00194   {
00195             org.omg.CORBA.portable.InputStream $in = null;
00196             try {
00197                 org.omg.CORBA.portable.OutputStream $out = _request ("changeEventFormat", true);
00198                 Sct_SctApi.EventFormatTypeHelper.write ($out, format);
00199                 $in = _invoke ($out);
00200                 boolean $result = $in.read_boolean ();
00201                 return $result;
00202             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00203                 $in = $ex.getInputStream ();
00204                 String _id = $ex.getId ();
00205                 throw new org.omg.CORBA.MARSHAL (_id);
00206             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00207                 return changeEventFormat (format        );
00208             } finally {
00209                 _releaseReply ($in);
00210             }
00211   } // changeEventFormat
00212 
00213   public void standardRegisterDumpAll ()
00214   {
00215             org.omg.CORBA.portable.InputStream $in = null;
00216             try {
00217                 org.omg.CORBA.portable.OutputStream $out = _request ("standardRegisterDumpAll", true);
00218                 $in = _invoke ($out);
00219                 return;
00220             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00221                 $in = $ex.getInputStream ();
00222                 String _id = $ex.getId ();
00223                 throw new org.omg.CORBA.MARSHAL (_id);
00224             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00225                 standardRegisterDumpAll (        );
00226             } finally {
00227                 _releaseReply ($in);
00228             }
00229   } // standardRegisterDumpAll
00230 
00231   public void lasersOff ()
00232   {
00233             org.omg.CORBA.portable.InputStream $in = null;
00234             try {
00235                 org.omg.CORBA.portable.OutputStream $out = _request ("lasersOff", true);
00236                 $in = _invoke ($out);
00237                 return;
00238             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00239                 $in = $ex.getInputStream ();
00240                 String _id = $ex.getId ();
00241                 throw new org.omg.CORBA.MARSHAL (_id);
00242             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00243                 lasersOff (        );
00244             } finally {
00245                 _releaseReply ($in);
00246             }
00247   } // lasersOff
00248 
00249   // Type-specific CORBA::Object operations
00250   private static String[] __ids = {
00251     "IDL:Sct_SctApi/RunControl:1.0"};
00252 
00253   public String[] _ids ()
00254   {
00255     return (String[])__ids.clone ();
00256   }
00257 
00258   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00259   {
00260      String str = s.readUTF ();
00261      String[] args = null;
00262      java.util.Properties props = null;
00263      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00264      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00265      _set_delegate (delegate);
00266   }
00267 
00268   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00269   {
00270      String[] args = null;
00271      java.util.Properties props = null;
00272      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00273      s.writeUTF (str);
00274   }
00275 } // class _RunControlStub

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