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

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