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