_OtherCrateLevelStub.java

00001 package Sct_SctApi;
00002 
00003 
00012 // Others: Only used by SctApiGUI (I think).
00013 public class _OtherCrateLevelStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.OtherCrateLevel
00014 {
00015 
00016   public int getRodSlot (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 ("getRodSlot", true);
00021                 $out.write_ulong (partition);
00022                 $out.write_ulong (crate);
00023                 $out.write_ulong (rod);
00024                 $in = _invoke ($out);
00025                 int $result = $in.read_ulong ();
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 getRodSlot (partition, crate, rod        );
00033             } finally {
00034                 _releaseReply ($in);
00035             }
00036   } // getRodSlot
00037 
00038   public void testLinkOutSelect (int partition, int crate, int rod, int link)
00039   {
00040             org.omg.CORBA.portable.InputStream $in = null;
00041             try {
00042                 org.omg.CORBA.portable.OutputStream $out = _request ("testLinkOutSelect", true);
00043                 $out.write_ulong (partition);
00044                 $out.write_ulong (crate);
00045                 $out.write_ulong (rod);
00046                 $out.write_ulong (link);
00047                 $in = _invoke ($out);
00048                 return;
00049             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00050                 $in = $ex.getInputStream ();
00051                 String _id = $ex.getId ();
00052                 throw new org.omg.CORBA.MARSHAL (_id);
00053             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00054                 testLinkOutSelect (partition, crate, rod, link        );
00055             } finally {
00056                 _releaseReply ($in);
00057             }
00058   } // testLinkOutSelect
00059 
00060   public int testLinkOutRetrieve (int partition, int crate, int rod)
00061   {
00062             org.omg.CORBA.portable.InputStream $in = null;
00063             try {
00064                 org.omg.CORBA.portable.OutputStream $out = _request ("testLinkOutRetrieve", true);
00065                 $out.write_ulong (partition);
00066                 $out.write_ulong (crate);
00067                 $out.write_ulong (rod);
00068                 $in = _invoke ($out);
00069                 int $result = $in.read_ulong ();
00070                 return $result;
00071             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00072                 $in = $ex.getInputStream ();
00073                 String _id = $ex.getId ();
00074                 throw new org.omg.CORBA.MARSHAL (_id);
00075             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00076                 return testLinkOutRetrieve (partition, crate, rod        );
00077             } finally {
00078                 _releaseReply ($in);
00079             }
00080   } // testLinkOutRetrieve
00081 
00082   public boolean isRODPresent (int partition, int crate, int rod)
00083   {
00084             org.omg.CORBA.portable.InputStream $in = null;
00085             try {
00086                 org.omg.CORBA.portable.OutputStream $out = _request ("isRODPresent", true);
00087                 $out.write_ulong (partition);
00088                 $out.write_ulong (crate);
00089                 $out.write_ulong (rod);
00090                 $in = _invoke ($out);
00091                 boolean $result = $in.read_boolean ();
00092                 return $result;
00093             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00094                 $in = $ex.getInputStream ();
00095                 String _id = $ex.getId ();
00096                 throw new org.omg.CORBA.MARSHAL (_id);
00097             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00098                 return isRODPresent (partition, crate, rod        );
00099             } finally {
00100                 _releaseReply ($in);
00101             }
00102   } // isRODPresent
00103 
00104   // Type-specific CORBA::Object operations
00105   private static String[] __ids = {
00106     "IDL:Sct_SctApi/OtherCrateLevel:1.0"};
00107 
00108   public String[] _ids ()
00109   {
00110     return (String[])__ids.clone ();
00111   }
00112 
00113   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00114   {
00115      String str = s.readUTF ();
00116      String[] args = null;
00117      java.util.Properties props = null;
00118      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00119      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00120      _set_delegate (delegate);
00121   }
00122 
00123   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00124   {
00125      String[] args = null;
00126      java.util.Properties props = null;
00127      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00128      s.writeUTF (str);
00129   }
00130 } // class _OtherCrateLevelStub

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