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 void 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                 return;
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                 status (        );
00072             } finally {
00073                 _releaseReply ($in);
00074             }
00075   } // status
00076 
00077   public void setRunNumber (int newRun)
00078   {
00079             org.omg.CORBA.portable.InputStream $in = null;
00080             try {
00081                 org.omg.CORBA.portable.OutputStream $out = _request ("setRunNumber", true);
00082                 $out.write_ulong (newRun);
00083                 $in = _invoke ($out);
00084                 return;
00085             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00086                 $in = $ex.getInputStream ();
00087                 String _id = $ex.getId ();
00088                 throw new org.omg.CORBA.MARSHAL (_id);
00089             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00090                 setRunNumber (newRun        );
00091             } finally {
00092                 _releaseReply ($in);
00093             }
00094   } // setRunNumber
00095 
00096   public void setScanNumber (int newScan)
00097   {
00098             org.omg.CORBA.portable.InputStream $in = null;
00099             try {
00100                 org.omg.CORBA.portable.OutputStream $out = _request ("setScanNumber", true);
00101                 $out.write_ulong (newScan);
00102                 $in = _invoke ($out);
00103                 return;
00104             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00105                 $in = $ex.getInputStream ();
00106                 String _id = $ex.getId ();
00107                 throw new org.omg.CORBA.MARSHAL (_id);
00108             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00109                 setScanNumber (newScan        );
00110             } finally {
00111                 _releaseReply ($in);
00112             }
00113   } // setScanNumber
00114 
00115   public int getRunNumber ()
00116   {
00117             org.omg.CORBA.portable.InputStream $in = null;
00118             try {
00119                 org.omg.CORBA.portable.OutputStream $out = _request ("getRunNumber", true);
00120                 $in = _invoke ($out);
00121                 int $result = $in.read_ulong ();
00122                 return $result;
00123             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00124                 $in = $ex.getInputStream ();
00125                 String _id = $ex.getId ();
00126                 throw new org.omg.CORBA.MARSHAL (_id);
00127             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00128                 return getRunNumber (        );
00129             } finally {
00130                 _releaseReply ($in);
00131             }
00132   } // getRunNumber
00133 
00134   public int getScanNumber ()
00135   {
00136             org.omg.CORBA.portable.InputStream $in = null;
00137             try {
00138                 org.omg.CORBA.portable.OutputStream $out = _request ("getScanNumber", true);
00139                 $in = _invoke ($out);
00140                 int $result = $in.read_ulong ();
00141                 return $result;
00142             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00143                 $in = $ex.getInputStream ();
00144                 String _id = $ex.getId ();
00145                 throw new org.omg.CORBA.MARSHAL (_id);
00146             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00147                 return getScanNumber (        );
00148             } finally {
00149                 _releaseReply ($in);
00150             }
00151   } // getScanNumber
00152 
00153   public void standardRegisterDumpAll ()
00154   {
00155             org.omg.CORBA.portable.InputStream $in = null;
00156             try {
00157                 org.omg.CORBA.portable.OutputStream $out = _request ("standardRegisterDumpAll", true);
00158                 $in = _invoke ($out);
00159                 return;
00160             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00161                 $in = $ex.getInputStream ();
00162                 String _id = $ex.getId ();
00163                 throw new org.omg.CORBA.MARSHAL (_id);
00164             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00165                 standardRegisterDumpAll (        );
00166             } finally {
00167                 _releaseReply ($in);
00168             }
00169   } // standardRegisterDumpAll
00170 
00171   public void lasersOff ()
00172   {
00173             org.omg.CORBA.portable.InputStream $in = null;
00174             try {
00175                 org.omg.CORBA.portable.OutputStream $out = _request ("lasersOff", true);
00176                 $in = _invoke ($out);
00177                 return;
00178             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00179                 $in = $ex.getInputStream ();
00180                 String _id = $ex.getId ();
00181                 throw new org.omg.CORBA.MARSHAL (_id);
00182             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00183                 lasersOff (        );
00184             } finally {
00185                 _releaseReply ($in);
00186             }
00187   } // lasersOff
00188 
00189   // Type-specific CORBA::Object operations
00190   private static String[] __ids = {
00191     "IDL:Sct_SctApi/RunControl:1.0"};
00192 
00193   public String[] _ids ()
00194   {
00195     return (String[])__ids.clone ();
00196   }
00197 
00198   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00199   {
00200      String str = s.readUTF ();
00201      String[] args = null;
00202      java.util.Properties props = null;
00203      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00204      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00205      _set_delegate (delegate);
00206   }
00207 
00208   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00209   {
00210      String[] args = null;
00211      java.util.Properties props = null;
00212      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00213      s.writeUTF (str);
00214   }
00215 } // class _RunControlStub

Generated on Fri Sep 16 18:05:52 2005 for SCT DAQ/DCS Software - Java by doxygen 1.3.5