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 void abortScan ()
00067 {
00068 org.omg.CORBA.portable.InputStream $in = null;
00069 try {
00070 org.omg.CORBA.portable.OutputStream $out = _request ("abortScan", true);
00071 $in = _invoke ($out);
00072 return;
00073 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00074 $in = $ex.getInputStream ();
00075 String _id = $ex.getId ();
00076 throw new org.omg.CORBA.MARSHAL (_id);
00077 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00078 abortScan ( );
00079 } finally {
00080 _releaseReply ($in);
00081 }
00082 }
00083
00084
00085
00086 public boolean hasFinishedScanning ()
00087 {
00088 org.omg.CORBA.portable.InputStream $in = null;
00089 try {
00090 org.omg.CORBA.portable.OutputStream $out = _request ("hasFinishedScanning", true);
00091 $in = _invoke ($out);
00092 boolean $result = $in.read_boolean ();
00093 return $result;
00094 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00095 $in = $ex.getInputStream ();
00096 String _id = $ex.getId ();
00097 throw new org.omg.CORBA.MARSHAL (_id);
00098 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00099 return hasFinishedScanning ( );
00100 } finally {
00101 _releaseReply ($in);
00102 }
00103 }
00104
00105
00106 private static String[] __ids = {
00107 "IDL:Sct_SctApi/DoScanMethods:1.0"};
00108
00109 public String[] _ids ()
00110 {
00111 return (String[])__ids.clone ();
00112 }
00113
00114 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00115 {
00116 String str = s.readUTF ();
00117 String[] args = null;
00118 java.util.Properties props = null;
00119 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00120 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00121 _set_delegate (delegate);
00122 }
00123
00124 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00125 {
00126 String[] args = null;
00127 java.util.Properties props = null;
00128 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00129 s.writeUTF (str);
00130 }
00131 }