00001 package Sct_SctApi;
00002
00003
00011 public class _JustTopLevelTemporaryStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.JustTopLevelTemporary
00012 {
00013
00014
00015
00016 public int findModuleSerial (String sn)
00017 {
00018 org.omg.CORBA.portable.InputStream $in = null;
00019 try {
00020 org.omg.CORBA.portable.OutputStream $out = _request ("findModuleSerial", true);
00021 $out.write_string (sn);
00022 $in = _invoke ($out);
00023 int $result = $in.read_ulong ();
00024 return $result;
00025 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00026 $in = $ex.getInputStream ();
00027 String _id = $ex.getId ();
00028 throw new org.omg.CORBA.MARSHAL (_id);
00029 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00030 return findModuleSerial (sn );
00031 } finally {
00032 _releaseReply ($in);
00033 }
00034 }
00035
00036 public String convertToString (int mid)
00037 {
00038 org.omg.CORBA.portable.InputStream $in = null;
00039 try {
00040 org.omg.CORBA.portable.OutputStream $out = _request ("convertToString", true);
00041 $out.write_ulong (mid);
00042 $in = _invoke ($out);
00043 String $result = $in.read_string ();
00044 return $result;
00045 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00046 $in = $ex.getInputStream ();
00047 String _id = $ex.getId ();
00048 throw new org.omg.CORBA.MARSHAL (_id);
00049 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00050 return convertToString (mid );
00051 } finally {
00052 _releaseReply ($in);
00053 }
00054 }
00055
00056 public int findModule (short mur, short number)
00057 {
00058 org.omg.CORBA.portable.InputStream $in = null;
00059 try {
00060 org.omg.CORBA.portable.OutputStream $out = _request ("findModule", true);
00061 $out.write_ushort (mur);
00062 $out.write_ushort (number);
00063 $in = _invoke ($out);
00064 int $result = $in.read_ulong ();
00065 return $result;
00066 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00067 $in = $ex.getInputStream ();
00068 String _id = $ex.getId ();
00069 throw new org.omg.CORBA.MARSHAL (_id);
00070 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00071 return findModule (mur, number );
00072 } finally {
00073 _releaseReply ($in);
00074 }
00075 }
00076
00077 public int findModuleRod (int partition, int crate, int rod, int channel)
00078 {
00079 org.omg.CORBA.portable.InputStream $in = null;
00080 try {
00081 org.omg.CORBA.portable.OutputStream $out = _request ("findModuleRod", true);
00082 $out.write_ulong (partition);
00083 $out.write_ulong (crate);
00084 $out.write_ulong (rod);
00085 $out.write_ulong (channel);
00086 $in = _invoke ($out);
00087 int $result = $in.read_ulong ();
00088 return $result;
00089 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00090 $in = $ex.getInputStream ();
00091 String _id = $ex.getId ();
00092 throw new org.omg.CORBA.MARSHAL (_id);
00093 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00094 return findModuleRod (partition, crate, rod, channel );
00095 } finally {
00096 _releaseReply ($in);
00097 }
00098 }
00099
00100
00101
00102 public int findBarrelModule (int barrel, int row, short number)
00103 {
00104 org.omg.CORBA.portable.InputStream $in = null;
00105 try {
00106 org.omg.CORBA.portable.OutputStream $out = _request ("findBarrelModule", true);
00107 $out.write_ulong (barrel);
00108 $out.write_ulong (row);
00109 $out.write_short (number);
00110 $in = _invoke ($out);
00111 int $result = $in.read_ulong ();
00112 return $result;
00113 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00114 $in = $ex.getInputStream ();
00115 String _id = $ex.getId ();
00116 throw new org.omg.CORBA.MARSHAL (_id);
00117 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00118 return findBarrelModule (barrel, row, number );
00119 } finally {
00120 _releaseReply ($in);
00121 }
00122 }
00123
00124 public void convertToBarrelModule (int mid, org.omg.CORBA.IntHolder barrel, org.omg.CORBA.IntHolder row, org.omg.CORBA.ShortHolder number)
00125 {
00126 org.omg.CORBA.portable.InputStream $in = null;
00127 try {
00128 org.omg.CORBA.portable.OutputStream $out = _request ("convertToBarrelModule", true);
00129 $out.write_ulong (mid);
00130 $in = _invoke ($out);
00131 barrel.value = $in.read_ulong ();
00132 row.value = $in.read_ulong ();
00133 number.value = $in.read_short ();
00134 return;
00135 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00136 $in = $ex.getInputStream ();
00137 String _id = $ex.getId ();
00138 throw new org.omg.CORBA.MARSHAL (_id);
00139 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00140 convertToBarrelModule (mid, barrel, row, number );
00141 } finally {
00142 _releaseReply ($in);
00143 }
00144 }
00145
00146 public int findEndcapModule (int disk, int ring, int number)
00147 {
00148 org.omg.CORBA.portable.InputStream $in = null;
00149 try {
00150 org.omg.CORBA.portable.OutputStream $out = _request ("findEndcapModule", true);
00151 $out.write_long (disk);
00152 $out.write_long (ring);
00153 $out.write_long (number);
00154 $in = _invoke ($out);
00155 int $result = $in.read_ulong ();
00156 return $result;
00157 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00158 $in = $ex.getInputStream ();
00159 String _id = $ex.getId ();
00160 throw new org.omg.CORBA.MARSHAL (_id);
00161 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00162 return findEndcapModule (disk, ring, number );
00163 } finally {
00164 _releaseReply ($in);
00165 }
00166 }
00167
00168 public void convertToEndcapModule (int mid, org.omg.CORBA.IntHolder disk, org.omg.CORBA.IntHolder ring, org.omg.CORBA.IntHolder number)
00169 {
00170 org.omg.CORBA.portable.InputStream $in = null;
00171 try {
00172 org.omg.CORBA.portable.OutputStream $out = _request ("convertToEndcapModule", true);
00173 $out.write_ulong (mid);
00174 $in = _invoke ($out);
00175 disk.value = $in.read_long ();
00176 ring.value = $in.read_ulong ();
00177 number.value = $in.read_ulong ();
00178 return;
00179 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00180 $in = $ex.getInputStream ();
00181 String _id = $ex.getId ();
00182 throw new org.omg.CORBA.MARSHAL (_id);
00183 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00184 convertToEndcapModule (mid, disk, ring, number );
00185 } finally {
00186 _releaseReply ($in);
00187 }
00188 }
00189
00190
00191 private static String[] __ids = {
00192 "IDL:Sct_SctApi/JustTopLevelTemporary:1.0",
00193 "IDL:Sct_SctApi/TranslationMethods:1.0"};
00194
00195 public String[] _ids ()
00196 {
00197 return (String[])__ids.clone ();
00198 }
00199
00200 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00201 {
00202 String str = s.readUTF ();
00203 String[] args = null;
00204 java.util.Properties props = null;
00205 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00206 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00207 _set_delegate (delegate);
00208 }
00209
00210 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00211 {
00212 String[] args = null;
00213 java.util.Properties props = null;
00214 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00215 s.writeUTF (str);
00216 }
00217 }