Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

_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 void shutdownAll () throws Sct_SctApi.SctApiException
00039   {
00040             org.omg.CORBA.portable.InputStream $in = null;
00041             try {
00042                 org.omg.CORBA.portable.OutputStream $out = _request ("shutdownAll", true);
00043                 $in = _invoke ($out);
00044                 return;
00045             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00046                 $in = $ex.getInputStream ();
00047                 String _id = $ex.getId ();
00048                 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00049                     throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00050                 else
00051                     throw new org.omg.CORBA.MARSHAL (_id);
00052             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00053                 shutdownAll (        );
00054             } finally {
00055                 _releaseReply ($in);
00056             }
00057   } // shutdownAll
00058 
00059   public String status ()
00060   {
00061             org.omg.CORBA.portable.InputStream $in = null;
00062             try {
00063                 org.omg.CORBA.portable.OutputStream $out = _request ("status", true);
00064                 $in = _invoke ($out);
00065                 String $result = $in.read_string ();
00066                 return $result;
00067             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00068                 $in = $ex.getInputStream ();
00069                 String _id = $ex.getId ();
00070                 throw new org.omg.CORBA.MARSHAL (_id);
00071             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00072                 return status (        );
00073             } finally {
00074                 _releaseReply ($in);
00075             }
00076   } // status
00077 
00078   public void setRunNumber (int newRun)
00079   {
00080             org.omg.CORBA.portable.InputStream $in = null;
00081             try {
00082                 org.omg.CORBA.portable.OutputStream $out = _request ("setRunNumber", true);
00083                 $out.write_ulong (newRun);
00084                 $in = _invoke ($out);
00085                 return;
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                 setRunNumber (newRun        );
00092             } finally {
00093                 _releaseReply ($in);
00094             }
00095   } // setRunNumber
00096 
00097   public void setScanNumber (int newScan)
00098   {
00099             org.omg.CORBA.portable.InputStream $in = null;
00100             try {
00101                 org.omg.CORBA.portable.OutputStream $out = _request ("setScanNumber", true);
00102                 $out.write_ulong (newScan);
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                 setScanNumber (newScan        );
00111             } finally {
00112                 _releaseReply ($in);
00113             }
00114   } // setScanNumber
00115 
00116   public int getRunNumber ()
00117   {
00118             org.omg.CORBA.portable.InputStream $in = null;
00119             try {
00120                 org.omg.CORBA.portable.OutputStream $out = _request ("getRunNumber", true);
00121                 $in = _invoke ($out);
00122                 int $result = $in.read_ulong ();
00123                 return $result;
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                 return getRunNumber (        );
00130             } finally {
00131                 _releaseReply ($in);
00132             }
00133   } // getRunNumber
00134 
00135   public int getScanNumber ()
00136   {
00137             org.omg.CORBA.portable.InputStream $in = null;
00138             try {
00139                 org.omg.CORBA.portable.OutputStream $out = _request ("getScanNumber", 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 getScanNumber (        );
00149             } finally {
00150                 _releaseReply ($in);
00151             }
00152   } // getScanNumber
00153 
00154   public boolean changeRunMode (Sct_SctApi.RunType mode)
00155   {
00156             org.omg.CORBA.portable.InputStream $in = null;
00157             try {
00158                 org.omg.CORBA.portable.OutputStream $out = _request ("changeRunMode", true);
00159                 Sct_SctApi.RunTypeHelper.write ($out, mode);
00160                 $in = _invoke ($out);
00161                 boolean $result = $in.read_boolean ();
00162                 return $result;
00163             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00164                 $in = $ex.getInputStream ();
00165                 String _id = $ex.getId ();
00166                 throw new org.omg.CORBA.MARSHAL (_id);
00167             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00168                 return changeRunMode (mode        );
00169             } finally {
00170                 _releaseReply ($in);
00171             }
00172   } // changeRunMode
00173 
00174   public boolean changeEventFormat (Sct_SctApi.EventFormatType format)
00175   {
00176             org.omg.CORBA.portable.InputStream $in = null;
00177             try {
00178                 org.omg.CORBA.portable.OutputStream $out = _request ("changeEventFormat", true);
00179                 Sct_SctApi.EventFormatTypeHelper.write ($out, format);
00180                 $in = _invoke ($out);
00181                 boolean $result = $in.read_boolean ();
00182                 return $result;
00183             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00184                 $in = $ex.getInputStream ();
00185                 String _id = $ex.getId ();
00186                 throw new org.omg.CORBA.MARSHAL (_id);
00187             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00188                 return changeEventFormat (format        );
00189             } finally {
00190                 _releaseReply ($in);
00191             }
00192   } // changeEventFormat
00193 
00194   public void standardRegisterDumpAll ()
00195   {
00196             org.omg.CORBA.portable.InputStream $in = null;
00197             try {
00198                 org.omg.CORBA.portable.OutputStream $out = _request ("standardRegisterDumpAll", true);
00199                 $in = _invoke ($out);
00200                 return;
00201             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00202                 $in = $ex.getInputStream ();
00203                 String _id = $ex.getId ();
00204                 throw new org.omg.CORBA.MARSHAL (_id);
00205             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00206                 standardRegisterDumpAll (        );
00207             } finally {
00208                 _releaseReply ($in);
00209             }
00210   } // standardRegisterDumpAll
00211 
00212   public void lasersOff ()
00213   {
00214             org.omg.CORBA.portable.InputStream $in = null;
00215             try {
00216                 org.omg.CORBA.portable.OutputStream $out = _request ("lasersOff", true);
00217                 $in = _invoke ($out);
00218                 return;
00219             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00220                 $in = $ex.getInputStream ();
00221                 String _id = $ex.getId ();
00222                 throw new org.omg.CORBA.MARSHAL (_id);
00223             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00224                 lasersOff (        );
00225             } finally {
00226                 _releaseReply ($in);
00227             }
00228   } // lasersOff
00229 
00230   // Type-specific CORBA::Object operations
00231   private static String[] __ids = {
00232     "IDL:Sct_SctApi/RunControl:1.0"};
00233 
00234   public String[] _ids ()
00235   {
00236     return (String[])__ids.clone ();
00237   }
00238 
00239   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00240   {
00241      String str = s.readUTF ();
00242      String[] args = null;
00243      java.util.Properties props = null;
00244      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00245      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00246      _set_delegate (delegate);
00247   }
00248 
00249   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00250   {
00251      String[] args = null;
00252      java.util.Properties props = null;
00253      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00254      s.writeUTF (str);
00255   }
00256 } // class _RunControlStub

Generated on Fri Dec 16 19:46:13 2005 for SCT DAQ/DCS Software - Java by doxygen 1.3.5