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

_JustCrateMethodsStub.java

00001 package Sct_SctApi;
00002 
00003 
00012 
00013 public class _JustCrateMethodsStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.JustCrateMethods
00014 {
00015 
00016   public Sct_SctApi.Idiosyncrasy getIdiosyncrasy ()
00017   {
00018             org.omg.CORBA.portable.InputStream $in = null;
00019             try {
00020                 org.omg.CORBA.portable.OutputStream $out = _request ("getIdiosyncrasy", true);
00021                 $in = _invoke ($out);
00022                 Sct_SctApi.Idiosyncrasy $result = Sct_SctApi.IdiosyncrasyHelper.read ($in);
00023                 return $result;
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                 return getIdiosyncrasy (        );
00030             } finally {
00031                 _releaseReply ($in);
00032             }
00033   } // getIdiosyncrasy
00034 
00035 
00036   /***************** Direct ROD access (Debug only) ********************/
00037   public short dspBlockDump (int rod, int dspStart, int numWords, int dspNumber)
00038   {
00039             org.omg.CORBA.portable.InputStream $in = null;
00040             try {
00041                 org.omg.CORBA.portable.OutputStream $out = _request ("dspBlockDump", true);
00042                 $out.write_ulong (rod);
00043                 $out.write_long (dspStart);
00044                 $out.write_long (numWords);
00045                 $out.write_long (dspNumber);
00046                 $in = _invoke ($out);
00047                 short $result = $in.read_short ();
00048                 return $result;
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                 return dspBlockDump (rod, dspStart, numWords, dspNumber        );
00055             } finally {
00056                 _releaseReply ($in);
00057             }
00058   } // dspBlockDump
00059 
00060   public int[] dspBlockRead (int rod, int dspStart, int numWords, int dspNumber)
00061   {
00062             org.omg.CORBA.portable.InputStream $in = null;
00063             try {
00064                 org.omg.CORBA.portable.OutputStream $out = _request ("dspBlockRead", true);
00065                 $out.write_ulong (rod);
00066                 $out.write_long (dspStart);
00067                 $out.write_long (numWords);
00068                 $out.write_long (dspNumber);
00069                 $in = _invoke ($out);
00070                 int $result[] = Sct_SctApi.DataBlockHelper.read ($in);
00071                 return $result;
00072             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00073                 $in = $ex.getInputStream ();
00074                 String _id = $ex.getId ();
00075                 throw new org.omg.CORBA.MARSHAL (_id);
00076             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00077                 return dspBlockRead (rod, dspStart, numWords, dspNumber        );
00078             } finally {
00079                 _releaseReply ($in);
00080             }
00081   } // dspBlockRead
00082 
00083   public short dspBlockWrite (int rod, int[] buffer, int dspAddress, int dspNumber)
00084   {
00085             org.omg.CORBA.portable.InputStream $in = null;
00086             try {
00087                 org.omg.CORBA.portable.OutputStream $out = _request ("dspBlockWrite", true);
00088                 $out.write_ulong (rod);
00089                 Sct_SctApi.DataBlockHelper.write ($out, buffer);
00090                 $out.write_ulong (dspAddress);
00091                 $out.write_long (dspNumber);
00092                 $in = _invoke ($out);
00093                 short $result = $in.read_short ();
00094                 return $result;
00095             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00096                 $in = $ex.getInputStream ();
00097                 String _id = $ex.getId ();
00098                 throw new org.omg.CORBA.MARSHAL (_id);
00099             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00100                 return dspBlockWrite (rod, buffer, dspAddress, dspNumber        );
00101             } finally {
00102                 _releaseReply ($in);
00103             }
00104   } // dspBlockWrite
00105 
00106   public int dspSingleRead (int rod, int dspAddr, int dspNumber)
00107   {
00108             org.omg.CORBA.portable.InputStream $in = null;
00109             try {
00110                 org.omg.CORBA.portable.OutputStream $out = _request ("dspSingleRead", true);
00111                 $out.write_ulong (rod);
00112                 $out.write_ulong (dspAddr);
00113                 $out.write_long (dspNumber);
00114                 $in = _invoke ($out);
00115                 int $result = $in.read_ulong ();
00116                 return $result;
00117             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00118                 $in = $ex.getInputStream ();
00119                 String _id = $ex.getId ();
00120                 throw new org.omg.CORBA.MARSHAL (_id);
00121             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00122                 return dspSingleRead (rod, dspAddr, dspNumber        );
00123             } finally {
00124                 _releaseReply ($in);
00125             }
00126   } // dspSingleRead
00127 
00128   public void dspSingleWrite (int rod, int dspAddr, int val, int dspNumber)
00129   {
00130             org.omg.CORBA.portable.InputStream $in = null;
00131             try {
00132                 org.omg.CORBA.portable.OutputStream $out = _request ("dspSingleWrite", true);
00133                 $out.write_ulong (rod);
00134                 $out.write_ulong (dspAddr);
00135                 $out.write_ulong (val);
00136                 $out.write_long (dspNumber);
00137                 $in = _invoke ($out);
00138                 return;
00139             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00140                 $in = $ex.getInputStream ();
00141                 String _id = $ex.getId ();
00142                 throw new org.omg.CORBA.MARSHAL (_id);
00143             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00144                 dspSingleWrite (rod, dspAddr, val, dspNumber        );
00145             } finally {
00146                 _releaseReply ($in);
00147             }
00148   } // dspSingleWrite
00149 
00150   public int[] readSlaveDsp (int rod, short s, int add, int words)
00151   {
00152             org.omg.CORBA.portable.InputStream $in = null;
00153             try {
00154                 org.omg.CORBA.portable.OutputStream $out = _request ("readSlaveDsp", true);
00155                 $out.write_ulong (rod);
00156                 $out.write_short (s);
00157                 $out.write_ulong (add);
00158                 $out.write_ulong (words);
00159                 $in = _invoke ($out);
00160                 int $result[] = Sct_SctApi.DataBlockHelper.read ($in);
00161                 return $result;
00162             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00163                 $in = $ex.getInputStream ();
00164                 String _id = $ex.getId ();
00165                 throw new org.omg.CORBA.MARSHAL (_id);
00166             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00167                 return readSlaveDsp (rod, s, add, words        );
00168             } finally {
00169                 _releaseReply ($in);
00170             }
00171   } // readSlaveDsp
00172 
00173 
00174   //                                      in long regNumber);
00175   public void printBOCSetup (int rod)
00176   {
00177             org.omg.CORBA.portable.InputStream $in = null;
00178             try {
00179                 org.omg.CORBA.portable.OutputStream $out = _request ("printBOCSetup", true);
00180                 $out.write_ulong (rod);
00181                 $in = _invoke ($out);
00182                 return;
00183             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00184                 $in = $ex.getInputStream ();
00185                 String _id = $ex.getId ();
00186                 throw new org.omg.CORBA.MARSHAL (_id);
00187             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00188                 printBOCSetup (rod        );
00189             } finally {
00190                 _releaseReply ($in);
00191             }
00192   } // printBOCSetup
00193 
00194   public sctConf.ABCDModule getABCDModuleRaw (int rod, int slot, Sct_SctApi.BankType bank) throws Sct_SctApi.SctApiException
00195   {
00196             org.omg.CORBA.portable.InputStream $in = null;
00197             try {
00198                 org.omg.CORBA.portable.OutputStream $out = _request ("getABCDModuleRaw", true);
00199                 $out.write_ulong (rod);
00200                 $out.write_ulong (slot);
00201                 Sct_SctApi.BankTypeHelper.write ($out, bank);
00202                 $in = _invoke ($out);
00203                 sctConf.ABCDModule $result = sctConf.ABCDModuleHelper.read ($in);
00204                 return $result;
00205             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00206                 $in = $ex.getInputStream ();
00207                 String _id = $ex.getId ();
00208                 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00209                     throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00210                 else
00211                     throw new org.omg.CORBA.MARSHAL (_id);
00212             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00213                 return getABCDModuleRaw (rod, slot, bank        );
00214             } finally {
00215                 _releaseReply ($in);
00216             }
00217   } // getABCDModuleRaw
00218 
00219   public String[] listEnabledDebugOptions ()
00220   {
00221             org.omg.CORBA.portable.InputStream $in = null;
00222             try {
00223                 org.omg.CORBA.portable.OutputStream $out = _request ("listEnabledDebugOptions", true);
00224                 $in = _invoke ($out);
00225                 String $result[] = Sct_SctApi.DebugOptionListHelper.read ($in);
00226                 return $result;
00227             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00228                 $in = $ex.getInputStream ();
00229                 String _id = $ex.getId ();
00230                 throw new org.omg.CORBA.MARSHAL (_id);
00231             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00232                 return listEnabledDebugOptions (        );
00233             } finally {
00234                 _releaseReply ($in);
00235             }
00236   } // listEnabledDebugOptions
00237 
00238   public void standardRegisterDumpRod (int rod)
00239   {
00240             org.omg.CORBA.portable.InputStream $in = null;
00241             try {
00242                 org.omg.CORBA.portable.OutputStream $out = _request ("standardRegisterDumpRod", true);
00243                 $out.write_ulong (rod);
00244                 $in = _invoke ($out);
00245                 return;
00246             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00247                 $in = $ex.getInputStream ();
00248                 String _id = $ex.getId ();
00249                 throw new org.omg.CORBA.MARSHAL (_id);
00250             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00251                 standardRegisterDumpRod (rod        );
00252             } finally {
00253                 _releaseReply ($in);
00254             }
00255   } // standardRegisterDumpRod
00256 
00257   // Type-specific CORBA::Object operations
00258   private static String[] __ids = {
00259     "IDL:Sct_SctApi/JustCrateMethods:1.0", 
00260     "IDL:Sct_SctApi/DirectRODAccess:1.0", 
00261     "IDL:Sct_SctApi/DebugOptionsJustCrate:1.0"};
00262 
00263   public String[] _ids ()
00264   {
00265     return (String[])__ids.clone ();
00266   }
00267 
00268   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00269   {
00270      String str = s.readUTF ();
00271      String[] args = null;
00272      java.util.Properties props = null;
00273      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00274      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00275      _set_delegate (delegate);
00276   }
00277 
00278   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00279   {
00280      String[] args = null;
00281      java.util.Properties props = null;
00282      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00283      s.writeUTF (str);
00284   }
00285 } // class _JustCrateMethodsStub

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