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