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