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

_PrimitiveAccessLowLevelStub.java

00001 package Sct_SctApi;
00002 
00003 
00012 // Low-level primitive access:
00013 public class _PrimitiveAccessLowLevelStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.PrimitiveAccessLowLevel
00014 {
00015 
00016   public void awaitResponse (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 ("awaitResponse", true);
00021                 $out.write_ulong (partition);
00022                 $out.write_ulong (crate);
00023                 $out.write_ulong (rod);
00024                 $in = _invoke ($out);
00025                 return;
00026             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00027                 $in = $ex.getInputStream ();
00028                 String _id = $ex.getId ();
00029                 throw new org.omg.CORBA.MARSHAL (_id);
00030             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00031                 awaitResponse (partition, crate, rod        );
00032             } finally {
00033                 _releaseReply ($in);
00034             }
00035   } // awaitResponse
00036 
00037   public int[] getResponse (int partition, int crate, int rod)
00038   {
00039             org.omg.CORBA.portable.InputStream $in = null;
00040             try {
00041                 org.omg.CORBA.portable.OutputStream $out = _request ("getResponse", true);
00042                 $out.write_ulong (partition);
00043                 $out.write_ulong (crate);
00044                 $out.write_ulong (rod);
00045                 $in = _invoke ($out);
00046                 int $result[] = Sct_SctApi.DataBlockHelper.read ($in);
00047                 return $result;
00048             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00049                 $in = $ex.getInputStream ();
00050                 String _id = $ex.getId ();
00051                 throw new org.omg.CORBA.MARSHAL (_id);
00052             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00053                 return getResponse (partition, crate, rod        );
00054             } finally {
00055                 _releaseReply ($in);
00056             }
00057   } // getResponse
00058 
00059   public void createDebugPrimList () throws Sct_SctApi.SctApiException
00060   {
00061             org.omg.CORBA.portable.InputStream $in = null;
00062             try {
00063                 org.omg.CORBA.portable.OutputStream $out = _request ("createDebugPrimList", 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                 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00070                     throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00071                 else
00072                     throw new org.omg.CORBA.MARSHAL (_id);
00073             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00074                 createDebugPrimList (        );
00075             } finally {
00076                 _releaseReply ($in);
00077             }
00078   } // createDebugPrimList
00079 
00080   public void addDebugPrimList (int index, int id, int version, int[] body) throws Sct_SctApi.SctApiException
00081   {
00082             org.omg.CORBA.portable.InputStream $in = null;
00083             try {
00084                 org.omg.CORBA.portable.OutputStream $out = _request ("addDebugPrimList", true);
00085                 $out.write_long (index);
00086                 $out.write_long (id);
00087                 $out.write_long (version);
00088                 Sct_SctApi.DataBlockHelper.write ($out, body);
00089                 $in = _invoke ($out);
00090                 return;
00091             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00092                 $in = $ex.getInputStream ();
00093                 String _id = $ex.getId ();
00094                 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00095                     throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00096                 else
00097                     throw new org.omg.CORBA.MARSHAL (_id);
00098             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00099                 addDebugPrimList (index, id, version, body        );
00100             } finally {
00101                 _releaseReply ($in);
00102             }
00103   } // addDebugPrimList
00104 
00105   public void sendDebugPrimList (int partition, int crate, int rod) throws Sct_SctApi.SctApiException
00106   {
00107             org.omg.CORBA.portable.InputStream $in = null;
00108             try {
00109                 org.omg.CORBA.portable.OutputStream $out = _request ("sendDebugPrimList", true);
00110                 $out.write_ulong (partition);
00111                 $out.write_ulong (crate);
00112                 $out.write_ulong (rod);
00113                 $in = _invoke ($out);
00114                 return;
00115             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00116                 $in = $ex.getInputStream ();
00117                 String _id = $ex.getId ();
00118                 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00119                     throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00120                 else
00121                     throw new org.omg.CORBA.MARSHAL (_id);
00122             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00123                 sendDebugPrimList (partition, crate, rod        );
00124             } finally {
00125                 _releaseReply ($in);
00126             }
00127   } // sendDebugPrimList
00128 
00129   public void sendDebugSlavePrimList (int partition, int crate, int rod, int slave, boolean await, boolean response) throws Sct_SctApi.SctApiException
00130   {
00131             org.omg.CORBA.portable.InputStream $in = null;
00132             try {
00133                 org.omg.CORBA.portable.OutputStream $out = _request ("sendDebugSlavePrimList", true);
00134                 $out.write_ulong (partition);
00135                 $out.write_ulong (crate);
00136                 $out.write_ulong (rod);
00137                 $out.write_ulong (slave);
00138                 $out.write_boolean (await);
00139                 $out.write_boolean (response);
00140                 $in = _invoke ($out);
00141                 return;
00142             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00143                 $in = $ex.getInputStream ();
00144                 String _id = $ex.getId ();
00145                 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00146                     throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00147                 else
00148                     throw new org.omg.CORBA.MARSHAL (_id);
00149             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00150                 sendDebugSlavePrimList (partition, crate, rod, slave, await, response        );
00151             } finally {
00152                 _releaseReply ($in);
00153             }
00154   } // sendDebugSlavePrimList
00155 
00156   public void flashLED (int partition, int crate, int rod, short slaveNumber, int period, int flashes) throws Sct_SctApi.SctApiException
00157   {
00158             org.omg.CORBA.portable.InputStream $in = null;
00159             try {
00160                 org.omg.CORBA.portable.OutputStream $out = _request ("flashLED", true);
00161                 $out.write_ulong (partition);
00162                 $out.write_ulong (crate);
00163                 $out.write_ulong (rod);
00164                 $out.write_ushort (slaveNumber);
00165                 $out.write_ulong (period);
00166                 $out.write_ulong (flashes);
00167                 $in = _invoke ($out);
00168                 return;
00169             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00170                 $in = $ex.getInputStream ();
00171                 String _id = $ex.getId ();
00172                 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00173                     throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00174                 else
00175                     throw new org.omg.CORBA.MARSHAL (_id);
00176             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00177                 flashLED (partition, crate, rod, slaveNumber, period, flashes        );
00178             } finally {
00179                 _releaseReply ($in);
00180             }
00181   } // flashLED
00182 
00183   public void echo (int partition, int crate, int rod, int[] data) throws Sct_SctApi.SctApiException
00184   {
00185             org.omg.CORBA.portable.InputStream $in = null;
00186             try {
00187                 org.omg.CORBA.portable.OutputStream $out = _request ("echo", true);
00188                 $out.write_ulong (partition);
00189                 $out.write_ulong (crate);
00190                 $out.write_ulong (rod);
00191                 Sct_SctApi.DataBlockHelper.write ($out, data);
00192                 $in = _invoke ($out);
00193                 return;
00194             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00195                 $in = $ex.getInputStream ();
00196                 String _id = $ex.getId ();
00197                 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00198                     throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00199                 else
00200                     throw new org.omg.CORBA.MARSHAL (_id);
00201             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00202                 echo (partition, crate, rod, data        );
00203             } finally {
00204                 _releaseReply ($in);
00205             }
00206   } // echo
00207 
00208   // Type-specific CORBA::Object operations
00209   private static String[] __ids = {
00210     "IDL:Sct_SctApi/PrimitiveAccessLowLevel:1.0"};
00211 
00212   public String[] _ids ()
00213   {
00214     return (String[])__ids.clone ();
00215   }
00216 
00217   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00218   {
00219      String str = s.readUTF ();
00220      String[] args = null;
00221      java.util.Properties props = null;
00222      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00223      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00224      _set_delegate (delegate);
00225   }
00226 
00227   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00228   {
00229      String[] args = null;
00230      java.util.Properties props = null;
00231      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00232      s.writeUTF (str);
00233   }
00234 } // class _PrimitiveAccessLowLevelStub

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