00001 package SctTestApi;
00002
00003
00015 public class _ConfigurationStub extends org.omg.CORBA.portable.ObjectImpl implements SctTestApi.Configuration
00016 {
00017
00018
00020 public void setDataFile (String file) throws SctTestApi.NoSuchFileException
00021 {
00022 org.omg.CORBA.portable.InputStream $in = null;
00023 try {
00024 org.omg.CORBA.portable.OutputStream $out = _request ("setDataFile", true);
00025 $out.write_string (file);
00026 $in = _invoke ($out);
00027 return;
00028 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00029 $in = $ex.getInputStream ();
00030 String _id = $ex.getId ();
00031 if (_id.equals ("IDL:SctTestApi/NoSuchFileException:1.0"))
00032 throw SctTestApi.NoSuchFileExceptionHelper.read ($in);
00033 else
00034 throw new org.omg.CORBA.MARSHAL (_id);
00035 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00036 setDataFile (file );
00037 } finally {
00038 _releaseReply ($in);
00039 }
00040 }
00041
00042
00044 public String getDataFile ()
00045 {
00046 org.omg.CORBA.portable.InputStream $in = null;
00047 try {
00048 org.omg.CORBA.portable.OutputStream $out = _request ("getDataFile", true);
00049 $in = _invoke ($out);
00050 String $result = $in.read_string ();
00051 return $result;
00052 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00053 $in = $ex.getInputStream ();
00054 String _id = $ex.getId ();
00055 throw new org.omg.CORBA.MARSHAL (_id);
00056 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00057 return getDataFile ( );
00058 } finally {
00059 _releaseReply ($in);
00060 }
00061 }
00062
00063
00065 public void setFastTimes ()
00066 {
00067 org.omg.CORBA.portable.InputStream $in = null;
00068 try {
00069 org.omg.CORBA.portable.OutputStream $out = _request ("setFastTimes", true);
00070 $in = _invoke ($out);
00071 return;
00072 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00073 $in = $ex.getInputStream ();
00074 String _id = $ex.getId ();
00075 throw new org.omg.CORBA.MARSHAL (_id);
00076 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00077 setFastTimes ( );
00078 } finally {
00079 _releaseReply ($in);
00080 }
00081 }
00082
00083
00085 public void setRealisticTimes ()
00086 {
00087 org.omg.CORBA.portable.InputStream $in = null;
00088 try {
00089 org.omg.CORBA.portable.OutputStream $out = _request ("setRealisticTimes", true);
00090 $in = _invoke ($out);
00091 return;
00092 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00093 $in = $ex.getInputStream ();
00094 String _id = $ex.getId ();
00095 throw new org.omg.CORBA.MARSHAL (_id);
00096 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00097 setRealisticTimes ( );
00098 } finally {
00099 _releaseReply ($in);
00100 }
00101 }
00102
00103
00105 public void setScanTime (int time)
00106 {
00107 org.omg.CORBA.portable.InputStream $in = null;
00108 try {
00109 org.omg.CORBA.portable.OutputStream $out = _request ("setScanTime", true);
00110 $out.write_long (time);
00111 $in = _invoke ($out);
00112 return;
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 setScanTime (time );
00119 } finally {
00120 _releaseReply ($in);
00121 }
00122 }
00123
00124
00126 public int getScanTime ()
00127 {
00128 org.omg.CORBA.portable.InputStream $in = null;
00129 try {
00130 org.omg.CORBA.portable.OutputStream $out = _request ("getScanTime", true);
00131 $in = _invoke ($out);
00132 int $result = $in.read_long ();
00133 return $result;
00134 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00135 $in = $ex.getInputStream ();
00136 String _id = $ex.getId ();
00137 throw new org.omg.CORBA.MARSHAL (_id);
00138 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00139 return getScanTime ( );
00140 } finally {
00141 _releaseReply ($in);
00142 }
00143 }
00144
00145
00147 public void setMultiDspEfficiency (double efficiency)
00148 {
00149 org.omg.CORBA.portable.InputStream $in = null;
00150 try {
00151 org.omg.CORBA.portable.OutputStream $out = _request ("setMultiDspEfficiency", true);
00152 $out.write_double (efficiency);
00153 $in = _invoke ($out);
00154 return;
00155 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00156 $in = $ex.getInputStream ();
00157 String _id = $ex.getId ();
00158 throw new org.omg.CORBA.MARSHAL (_id);
00159 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00160 setMultiDspEfficiency (efficiency );
00161 } finally {
00162 _releaseReply ($in);
00163 }
00164 }
00165
00166
00168 public double getMultiDspEfficiency ()
00169 {
00170 org.omg.CORBA.portable.InputStream $in = null;
00171 try {
00172 org.omg.CORBA.portable.OutputStream $out = _request ("getMultiDspEfficiency", true);
00173 $in = _invoke ($out);
00174 double $result = $in.read_double ();
00175 return $result;
00176 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00177 $in = $ex.getInputStream ();
00178 String _id = $ex.getId ();
00179 throw new org.omg.CORBA.MARSHAL (_id);
00180 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00181 return getMultiDspEfficiency ( );
00182 } finally {
00183 _releaseReply ($in);
00184 }
00185 }
00186
00187
00189 public void setReadoutTime (int time)
00190 {
00191 org.omg.CORBA.portable.InputStream $in = null;
00192 try {
00193 org.omg.CORBA.portable.OutputStream $out = _request ("setReadoutTime", true);
00194 $out.write_long (time);
00195 $in = _invoke ($out);
00196 return;
00197 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00198 $in = $ex.getInputStream ();
00199 String _id = $ex.getId ();
00200 throw new org.omg.CORBA.MARSHAL (_id);
00201 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00202 setReadoutTime (time );
00203 } finally {
00204 _releaseReply ($in);
00205 }
00206 }
00207
00208
00210 public int getReadoutTime ()
00211 {
00212 org.omg.CORBA.portable.InputStream $in = null;
00213 try {
00214 org.omg.CORBA.portable.OutputStream $out = _request ("getReadoutTime", true);
00215 $in = _invoke ($out);
00216 int $result = $in.read_long ();
00217 return $result;
00218 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00219 $in = $ex.getInputStream ();
00220 String _id = $ex.getId ();
00221 throw new org.omg.CORBA.MARSHAL (_id);
00222 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00223 return getReadoutTime ( );
00224 } finally {
00225 _releaseReply ($in);
00226 }
00227 }
00228
00229 public void get_info (ipc.InfoHolder inf)
00230 {
00231 org.omg.CORBA.portable.InputStream $in = null;
00232 try {
00233 org.omg.CORBA.portable.OutputStream $out = _request ("get_info", true);
00234 $in = _invoke ($out);
00235 inf.value = ipc.InfoHelper.read ($in);
00236 return;
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 get_info (inf );
00243 } finally {
00244 _releaseReply ($in);
00245 }
00246 }
00247
00248 public void destroy ()
00249 {
00250 org.omg.CORBA.portable.InputStream $in = null;
00251 try {
00252 org.omg.CORBA.portable.OutputStream $out = _request ("destroy", false);
00253 $in = _invoke ($out);
00254 return;
00255 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00256 $in = $ex.getInputStream ();
00257 String _id = $ex.getId ();
00258 throw new org.omg.CORBA.MARSHAL (_id);
00259 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00260 destroy ( );
00261 } finally {
00262 _releaseReply ($in);
00263 }
00264 }
00265
00266
00267 private static String[] __ids = {
00268 "IDL:SctTestApi/Configuration:1.0",
00269 "IDL:ipc/freeable:1.0"};
00270
00271 public String[] _ids ()
00272 {
00273 return (String[])__ids.clone ();
00274 }
00275
00276 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00277 {
00278 String str = s.readUTF ();
00279 String[] args = null;
00280 java.util.Properties props = null;
00281 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00282 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00283 _set_delegate (delegate);
00284 }
00285
00286 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00287 {
00288 String[] args = null;
00289 java.util.Properties props = null;
00290 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00291 s.writeUTF (str);
00292 }
00293 }