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

_JustTopLevelTemporaryStub.java

00001 package Sct_SctApi;
00002 
00003 
00011 public class _JustTopLevelTemporaryStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.JustTopLevelTemporary
00012 {
00013 
00014   public Sct_SctApi.Scan createScan ()
00015   {
00016             org.omg.CORBA.portable.InputStream $in = null;
00017             try {
00018                 org.omg.CORBA.portable.OutputStream $out = _request ("createScan", true);
00019                 $in = _invoke ($out);
00020                 Sct_SctApi.Scan $result = Sct_SctApi.ScanHelper.read ($in);
00021                 return $result;
00022             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00023                 $in = $ex.getInputStream ();
00024                 String _id = $ex.getId ();
00025                 throw new org.omg.CORBA.MARSHAL (_id);
00026             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00027                 return createScan (        );
00028             } finally {
00029                 _releaseReply ($in);
00030             }
00031   } // createScan
00032 
00033   public Sct_SctApi.Scan getDefaultScan ()
00034   {
00035             org.omg.CORBA.portable.InputStream $in = null;
00036             try {
00037                 org.omg.CORBA.portable.OutputStream $out = _request ("getDefaultScan", true);
00038                 $in = _invoke ($out);
00039                 Sct_SctApi.Scan $result = Sct_SctApi.ScanHelper.read ($in);
00040                 return $result;
00041             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00042                 $in = $ex.getInputStream ();
00043                 String _id = $ex.getId ();
00044                 throw new org.omg.CORBA.MARSHAL (_id);
00045             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00046                 return getDefaultScan (        );
00047             } finally {
00048                 _releaseReply ($in);
00049             }
00050   } // getDefaultScan
00051 
00052 
00053   // Nobody seems to use these two:
00054   public Sct_SctApi.Trigger createTrigger ()
00055   {
00056             org.omg.CORBA.portable.InputStream $in = null;
00057             try {
00058                 org.omg.CORBA.portable.OutputStream $out = _request ("createTrigger", true);
00059                 $in = _invoke ($out);
00060                 Sct_SctApi.Trigger $result = Sct_SctApi.TriggerHelper.read ($in);
00061                 return $result;
00062             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00063                 $in = $ex.getInputStream ();
00064                 String _id = $ex.getId ();
00065                 throw new org.omg.CORBA.MARSHAL (_id);
00066             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00067                 return createTrigger (        );
00068             } finally {
00069                 _releaseReply ($in);
00070             }
00071   } // createTrigger
00072 
00073 
00074   // Trigger getDefaultTrigger();
00075   public Sct_SctApi.Scan[] knownScans ()
00076   {
00077             org.omg.CORBA.portable.InputStream $in = null;
00078             try {
00079                 org.omg.CORBA.portable.OutputStream $out = _request ("knownScans", true);
00080                 $in = _invoke ($out);
00081                 Sct_SctApi.Scan $result[] = Sct_SctApi.ScanListHelper.read ($in);
00082                 return $result;
00083             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00084                 $in = $ex.getInputStream ();
00085                 String _id = $ex.getId ();
00086                 throw new org.omg.CORBA.MARSHAL (_id);
00087             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00088                 return knownScans (        );
00089             } finally {
00090                 _releaseReply ($in);
00091             }
00092   } // knownScans
00093 
00094 
00095   // Translation
00096   public int findModuleSerial (String sn)
00097   {
00098             org.omg.CORBA.portable.InputStream $in = null;
00099             try {
00100                 org.omg.CORBA.portable.OutputStream $out = _request ("findModuleSerial", true);
00101                 $out.write_string (sn);
00102                 $in = _invoke ($out);
00103                 int $result = $in.read_ulong ();
00104                 return $result;
00105             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00106                 $in = $ex.getInputStream ();
00107                 String _id = $ex.getId ();
00108                 throw new org.omg.CORBA.MARSHAL (_id);
00109             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00110                 return findModuleSerial (sn        );
00111             } finally {
00112                 _releaseReply ($in);
00113             }
00114   } // findModuleSerial
00115 
00116   public String convertToString (int mid)
00117   {
00118             org.omg.CORBA.portable.InputStream $in = null;
00119             try {
00120                 org.omg.CORBA.portable.OutputStream $out = _request ("convertToString", true);
00121                 $out.write_ulong (mid);
00122                 $in = _invoke ($out);
00123                 String $result = $in.read_string ();
00124                 return $result;
00125             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00126                 $in = $ex.getInputStream ();
00127                 String _id = $ex.getId ();
00128                 throw new org.omg.CORBA.MARSHAL (_id);
00129             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00130                 return convertToString (mid        );
00131             } finally {
00132                 _releaseReply ($in);
00133             }
00134   } // convertToString
00135 
00136   public int findModule (short mur, short number)
00137   {
00138             org.omg.CORBA.portable.InputStream $in = null;
00139             try {
00140                 org.omg.CORBA.portable.OutputStream $out = _request ("findModule", true);
00141                 $out.write_ushort (mur);
00142                 $out.write_ushort (number);
00143                 $in = _invoke ($out);
00144                 int $result = $in.read_ulong ();
00145                 return $result;
00146             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00147                 $in = $ex.getInputStream ();
00148                 String _id = $ex.getId ();
00149                 throw new org.omg.CORBA.MARSHAL (_id);
00150             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00151                 return findModule (mur, number        );
00152             } finally {
00153                 _releaseReply ($in);
00154             }
00155   } // findModule
00156 
00157   public int findModuleRod (int partition, int crate, int rod, int channel)
00158   {
00159             org.omg.CORBA.portable.InputStream $in = null;
00160             try {
00161                 org.omg.CORBA.portable.OutputStream $out = _request ("findModuleRod", true);
00162                 $out.write_ulong (partition);
00163                 $out.write_ulong (crate);
00164                 $out.write_ulong (rod);
00165                 $out.write_ulong (channel);
00166                 $in = _invoke ($out);
00167                 int $result = $in.read_ulong ();
00168                 return $result;
00169             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00170                 $in = $ex.getInputStream ();
00171                 String _id = $ex.getId ();
00172                 throw new org.omg.CORBA.MARSHAL (_id);
00173             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00174                 return findModuleRod (partition, crate, rod, channel        );
00175             } finally {
00176                 _releaseReply ($in);
00177             }
00178   } // findModuleRod
00179 
00180 
00181   //  pair<INT32, INT32> convertToMUR(in unsigned long mid);
00182   public int findBarrelModule (int barrel, int row, short number)
00183   {
00184             org.omg.CORBA.portable.InputStream $in = null;
00185             try {
00186                 org.omg.CORBA.portable.OutputStream $out = _request ("findBarrelModule", true);
00187                 $out.write_ulong (barrel);
00188                 $out.write_ulong (row);
00189                 $out.write_short (number);
00190                 $in = _invoke ($out);
00191                 int $result = $in.read_ulong ();
00192                 return $result;
00193             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00194                 $in = $ex.getInputStream ();
00195                 String _id = $ex.getId ();
00196                 throw new org.omg.CORBA.MARSHAL (_id);
00197             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00198                 return findBarrelModule (barrel, row, number        );
00199             } finally {
00200                 _releaseReply ($in);
00201             }
00202   } // findBarrelModule
00203 
00204   public void convertToBarrelModule (int mid, org.omg.CORBA.IntHolder barrel, org.omg.CORBA.IntHolder row, org.omg.CORBA.ShortHolder number)
00205   {
00206             org.omg.CORBA.portable.InputStream $in = null;
00207             try {
00208                 org.omg.CORBA.portable.OutputStream $out = _request ("convertToBarrelModule", true);
00209                 $out.write_ulong (mid);
00210                 $in = _invoke ($out);
00211                 barrel.value = $in.read_ulong ();
00212                 row.value = $in.read_ulong ();
00213                 number.value = $in.read_short ();
00214                 return;
00215             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00216                 $in = $ex.getInputStream ();
00217                 String _id = $ex.getId ();
00218                 throw new org.omg.CORBA.MARSHAL (_id);
00219             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00220                 convertToBarrelModule (mid, barrel, row, number        );
00221             } finally {
00222                 _releaseReply ($in);
00223             }
00224   } // convertToBarrelModule
00225 
00226   public int findEndcapModule (int disk, int ring, int number)
00227   {
00228             org.omg.CORBA.portable.InputStream $in = null;
00229             try {
00230                 org.omg.CORBA.portable.OutputStream $out = _request ("findEndcapModule", true);
00231                 $out.write_long (disk);
00232                 $out.write_long (ring);
00233                 $out.write_long (number);
00234                 $in = _invoke ($out);
00235                 int $result = $in.read_ulong ();
00236                 return $result;
00237             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00238                 $in = $ex.getInputStream ();
00239                 String _id = $ex.getId ();
00240                 throw new org.omg.CORBA.MARSHAL (_id);
00241             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00242                 return findEndcapModule (disk, ring, number        );
00243             } finally {
00244                 _releaseReply ($in);
00245             }
00246   } // findEndcapModule
00247 
00248   public void convertToEndcapModule (int mid, org.omg.CORBA.IntHolder disk, org.omg.CORBA.IntHolder ring, org.omg.CORBA.IntHolder number)
00249   {
00250             org.omg.CORBA.portable.InputStream $in = null;
00251             try {
00252                 org.omg.CORBA.portable.OutputStream $out = _request ("convertToEndcapModule", true);
00253                 $out.write_ulong (mid);
00254                 $in = _invoke ($out);
00255                 disk.value = $in.read_long ();
00256                 ring.value = $in.read_ulong ();
00257                 number.value = $in.read_ulong ();
00258                 return;
00259             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00260                 $in = $ex.getInputStream ();
00261                 String _id = $ex.getId ();
00262                 throw new org.omg.CORBA.MARSHAL (_id);
00263             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00264                 convertToEndcapModule (mid, disk, ring, number        );
00265             } finally {
00266                 _releaseReply ($in);
00267             }
00268   } // convertToEndcapModule
00269 
00270   // Type-specific CORBA::Object operations
00271   private static String[] __ids = {
00272     "IDL:Sct_SctApi/JustTopLevelTemporary:1.0", 
00273     "IDL:Sct_SctApi/ScanMethods:1.0", 
00274     "IDL:Sct_SctApi/TranslationMethods:1.0"};
00275 
00276   public String[] _ids ()
00277   {
00278     return (String[])__ids.clone ();
00279   }
00280 
00281   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00282   {
00283      String str = s.readUTF ();
00284      String[] args = null;
00285      java.util.Properties props = null;
00286      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00287      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00288      _set_delegate (delegate);
00289   }
00290 
00291   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00292   {
00293      String[] args = null;
00294      java.util.Properties props = null;
00295      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00296      s.writeUTF (str);
00297   }
00298 } // class _JustTopLevelTemporaryStub

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