_ProbeMethodsStub.java

00001 package Sct_SctApi;
00002 
00003 
00012 // one ROD, but could be extended to multiple RODs/crates?
00013 public class _ProbeMethodsStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.ProbeMethods
00014 {
00015 
00016   public short[] probe (int partition, int crate, int rod)
00017   {
00018             org.omg.CORBA.portable.InputStream $in = null;
00019             try {
00020                 org.omg.CORBA.portable.OutputStream $out = _request ("probe", true);
00021                 $out.write_ulong (partition);
00022                 $out.write_ulong (crate);
00023                 $out.write_ulong (rod);
00024                 $in = _invoke ($out);
00025                 short $result[] = Sct_SctApi.CharBlockHelper.read ($in);
00026                 return $result;
00027             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00028                 $in = $ex.getInputStream ();
00029                 String _id = $ex.getId ();
00030                 throw new org.omg.CORBA.MARSHAL (_id);
00031             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00032                 return probe (partition, crate, rod        );
00033             } finally {
00034                 _releaseReply ($in);
00035             }
00036   } // probe
00037 
00038   public short[] probeHarness (int partition, int crate, int rod, int harness)
00039   {
00040             org.omg.CORBA.portable.InputStream $in = null;
00041             try {
00042                 org.omg.CORBA.portable.OutputStream $out = _request ("probeHarness", true);
00043                 $out.write_ulong (partition);
00044                 $out.write_ulong (crate);
00045                 $out.write_ulong (rod);
00046                 $out.write_ulong (harness);
00047                 $in = _invoke ($out);
00048                 short $result[] = Sct_SctApi.CharBlockHelper.read ($in);
00049                 return $result;
00050             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00051                 $in = $ex.getInputStream ();
00052                 String _id = $ex.getId ();
00053                 throw new org.omg.CORBA.MARSHAL (_id);
00054             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00055                 return probeHarness (partition, crate, rod, harness        );
00056             } finally {
00057                 _releaseReply ($in);
00058             }
00059   } // probeHarness
00060 
00061   public short[] probeWithTrigger (int partition, int crate, int rod, Sct_SctApi.Trigger trig)
00062   {
00063             org.omg.CORBA.portable.InputStream $in = null;
00064             try {
00065                 org.omg.CORBA.portable.OutputStream $out = _request ("probeWithTrigger", true);
00066                 $out.write_ulong (partition);
00067                 $out.write_ulong (crate);
00068                 $out.write_ulong (rod);
00069                 Sct_SctApi.TriggerHelper.write ($out, trig);
00070                 $in = _invoke ($out);
00071                 short $result[] = Sct_SctApi.CharBlockHelper.read ($in);
00072                 return $result;
00073             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00074                 $in = $ex.getInputStream ();
00075                 String _id = $ex.getId ();
00076                 throw new org.omg.CORBA.MARSHAL (_id);
00077             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00078                 return probeWithTrigger (partition, crate, rod, trig        );
00079             } finally {
00080                 _releaseReply ($in);
00081             }
00082   } // probeWithTrigger
00083 
00084   public short[] probeHarnessWithTrigger (int partition, int crate, int rod, Sct_SctApi.Trigger trig, int harness)
00085   {
00086             org.omg.CORBA.portable.InputStream $in = null;
00087             try {
00088                 org.omg.CORBA.portable.OutputStream $out = _request ("probeHarnessWithTrigger", true);
00089                 $out.write_ulong (partition);
00090                 $out.write_ulong (crate);
00091                 $out.write_ulong (rod);
00092                 Sct_SctApi.TriggerHelper.write ($out, trig);
00093                 $out.write_ulong (harness);
00094                 $in = _invoke ($out);
00095                 short $result[] = Sct_SctApi.CharBlockHelper.read ($in);
00096                 return $result;
00097             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00098                 $in = $ex.getInputStream ();
00099                 String _id = $ex.getId ();
00100                 throw new org.omg.CORBA.MARSHAL (_id);
00101             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00102                 return probeHarnessWithTrigger (partition, crate, rod, trig, harness        );
00103             } finally {
00104                 _releaseReply ($in);
00105             }
00106   } // probeHarnessWithTrigger
00107 
00108   public short[][] probeScanHarnessWithTrigger (int partition, int crate, int rod, Sct_SctApi.Scan trig, int harness)
00109   {
00110             org.omg.CORBA.portable.InputStream $in = null;
00111             try {
00112                 org.omg.CORBA.portable.OutputStream $out = _request ("probeScanHarnessWithTrigger", true);
00113                 $out.write_ulong (partition);
00114                 $out.write_ulong (crate);
00115                 $out.write_ulong (rod);
00116                 Sct_SctApi.ScanHelper.write ($out, trig);
00117                 $out.write_ulong (harness);
00118                 $in = _invoke ($out);
00119                 short $result[][] = Sct_SctApi.CharMatrixHelper.read ($in);
00120                 return $result;
00121             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00122                 $in = $ex.getInputStream ();
00123                 String _id = $ex.getId ();
00124                 throw new org.omg.CORBA.MARSHAL (_id);
00125             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00126                 return probeScanHarnessWithTrigger (partition, crate, rod, trig, harness        );
00127             } finally {
00128                 _releaseReply ($in);
00129             }
00130   } // probeScanHarnessWithTrigger
00131 
00132   // Type-specific CORBA::Object operations
00133   private static String[] __ids = {
00134     "IDL:Sct_SctApi/ProbeMethods:1.0"};
00135 
00136   public String[] _ids ()
00137   {
00138     return (String[])__ids.clone ();
00139   }
00140 
00141   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00142   {
00143      String str = s.readUTF ();
00144      String[] args = null;
00145      java.util.Properties props = null;
00146      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00147      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00148      _set_delegate (delegate);
00149   }
00150 
00151   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00152   {
00153      String[] args = null;
00154      java.util.Properties props = null;
00155      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00156      s.writeUTF (str);
00157   }
00158 } // class _ProbeMethodsStub

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