00001 package Sct_SctApi;
00002
00003
00012
00013 public class _DoScanMethodsStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.DoScanMethods
00014 {
00015
00016
00017
00018 public void doScan (Sct_SctApi.Scan thisScan) throws Sct_SctApi.SctApiException
00019 {
00020 org.omg.CORBA.portable.InputStream $in = null;
00021 try {
00022 org.omg.CORBA.portable.OutputStream $out = _request ("doScan", true);
00023 Sct_SctApi.ScanHelper.write ($out, thisScan);
00024 $in = _invoke ($out);
00025 return;
00026 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00027 $in = $ex.getInputStream ();
00028 String _id = $ex.getId ();
00029 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00030 throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00031 else
00032 throw new org.omg.CORBA.MARSHAL (_id);
00033 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00034 doScan (thisScan );
00035 } finally {
00036 _releaseReply ($in);
00037 }
00038 }
00039
00040 public void doRawScan (Sct_SctApi.Scan thisScan, int delay, int width, boolean configure, boolean clockByTwo) throws Sct_SctApi.SctApiException
00041 {
00042 org.omg.CORBA.portable.InputStream $in = null;
00043 try {
00044 org.omg.CORBA.portable.OutputStream $out = _request ("doRawScan", true);
00045 Sct_SctApi.ScanHelper.write ($out, thisScan);
00046 $out.write_long (delay);
00047 $out.write_long (width);
00048 $out.write_boolean (configure);
00049 $out.write_boolean (clockByTwo);
00050 $in = _invoke ($out);
00051 return;
00052 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00053 $in = $ex.getInputStream ();
00054 String _id = $ex.getId ();
00055 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00056 throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00057 else
00058 throw new org.omg.CORBA.MARSHAL (_id);
00059 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00060 doRawScan (thisScan, delay, width, configure, clockByTwo );
00061 } finally {
00062 _releaseReply ($in);
00063 }
00064 }
00065
00066 public Sct_SctApi.ScanMonitor startAsyncScan (Sct_SctApi.Scan thisScan) throws Sct_SctApi.SctApiException
00067 {
00068 org.omg.CORBA.portable.InputStream $in = null;
00069 try {
00070 org.omg.CORBA.portable.OutputStream $out = _request ("startAsyncScan", true);
00071 Sct_SctApi.ScanHelper.write ($out, thisScan);
00072 $in = _invoke ($out);
00073 Sct_SctApi.ScanMonitor $result = Sct_SctApi.ScanMonitorHelper.read ($in);
00074 return $result;
00075 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00076 $in = $ex.getInputStream ();
00077 String _id = $ex.getId ();
00078 if (_id.equals ("IDL:Sct_SctApi/SctApiException:1.0"))
00079 throw Sct_SctApi.SctApiExceptionHelper.read ($in);
00080 else
00081 throw new org.omg.CORBA.MARSHAL (_id);
00082 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00083 return startAsyncScan (thisScan );
00084 } finally {
00085 _releaseReply ($in);
00086 }
00087 }
00088
00089 public void abortScan ()
00090 {
00091 org.omg.CORBA.portable.InputStream $in = null;
00092 try {
00093 org.omg.CORBA.portable.OutputStream $out = _request ("abortScan", true);
00094 $in = _invoke ($out);
00095 return;
00096 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00097 $in = $ex.getInputStream ();
00098 String _id = $ex.getId ();
00099 throw new org.omg.CORBA.MARSHAL (_id);
00100 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00101 abortScan ( );
00102 } finally {
00103 _releaseReply ($in);
00104 }
00105 }
00106
00107
00108
00109 public boolean hasFinishedScanning ()
00110 {
00111 org.omg.CORBA.portable.InputStream $in = null;
00112 try {
00113 org.omg.CORBA.portable.OutputStream $out = _request ("hasFinishedScanning", true);
00114 $in = _invoke ($out);
00115 boolean $result = $in.read_boolean ();
00116 return $result;
00117 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00118 $in = $ex.getInputStream ();
00119 String _id = $ex.getId ();
00120 throw new org.omg.CORBA.MARSHAL (_id);
00121 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00122 return hasFinishedScanning ( );
00123 } finally {
00124 _releaseReply ($in);
00125 }
00126 }
00127
00128
00129 private static String[] __ids = {
00130 "IDL:Sct_SctApi/DoScanMethods:1.0"};
00131
00132 public String[] _ids ()
00133 {
00134 return (String[])__ids.clone ();
00135 }
00136
00137 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00138 {
00139 String str = s.readUTF ();
00140 String[] args = null;
00141 java.util.Properties props = null;
00142 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00143 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00144 _set_delegate (delegate);
00145 }
00146
00147 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00148 {
00149 String[] args = null;
00150 java.util.Properties props = null;
00151 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00152 s.writeUTF (str);
00153 }
00154 }