00001 package Sct_CalibrationController;
00002
00003
00016 public class _TestRequestStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_CalibrationController.TestRequest
00017 {
00018
00019
00026 public void startTest (Sct_SctApi.SctApi api, org.omg.CORBA.StringHolder name, org.omg.CORBA.ShortHolder testVariable, org.omg.CORBA.IntHolder nScans, Sct_CalibrationController.TestPointsHolder testPointsData)
00027 {
00028 org.omg.CORBA.portable.InputStream $in = null;
00029 try {
00030 org.omg.CORBA.portable.OutputStream $out = _request ("startTest", true);
00031 Sct_SctApi.SctApiHelper.write ($out, api);
00032 $in = _invoke ($out);
00033 name.value = $in.read_string ();
00034 testVariable.value = $in.read_ushort ();
00035 nScans.value = $in.read_ulong ();
00036 testPointsData.value = Sct_CalibrationController.TestPointsHelper.read ($in);
00037 return;
00038 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00039 $in = $ex.getInputStream ();
00040 String _id = $ex.getId ();
00041 throw new org.omg.CORBA.MARSHAL (_id);
00042 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00043 startTest (api, name, testVariable, nScans, testPointsData );
00044 } finally {
00045 _releaseReply ($in);
00046 }
00047 }
00048
00049
00054 public Sct_CalibrationController.ScanRequest getNextScan (int index)
00055 {
00056 org.omg.CORBA.portable.InputStream $in = null;
00057 try {
00058 org.omg.CORBA.portable.OutputStream $out = _request ("getNextScan", true);
00059 $out.write_ulong (index);
00060 $in = _invoke ($out);
00061 Sct_CalibrationController.ScanRequest $result = Sct_CalibrationController.ScanRequestHelper.read ($in);
00062 return $result;
00063 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00064 $in = $ex.getInputStream ();
00065 String _id = $ex.getId ();
00066 throw new org.omg.CORBA.MARSHAL (_id);
00067 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00068 return getNextScan (index );
00069 } finally {
00070 _releaseReply ($in);
00071 }
00072 }
00073
00074
00079 public boolean canFeedback ()
00080 {
00081 org.omg.CORBA.portable.InputStream $in = null;
00082 try {
00083 org.omg.CORBA.portable.OutputStream $out = _request ("canFeedback", true);
00084 $in = _invoke ($out);
00085 boolean $result = $in.read_boolean ();
00086 return $result;
00087 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00088 $in = $ex.getInputStream ();
00089 String _id = $ex.getId ();
00090 throw new org.omg.CORBA.MARSHAL (_id);
00091 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00092 return canFeedback ( );
00093 } finally {
00094 _releaseReply ($in);
00095 }
00096 }
00097
00098
00102 public void endTest ()
00103 {
00104 org.omg.CORBA.portable.InputStream $in = null;
00105 try {
00106 org.omg.CORBA.portable.OutputStream $out = _request ("endTest", true);
00107 $in = _invoke ($out);
00108 return;
00109 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00110 $in = $ex.getInputStream ();
00111 String _id = $ex.getId ();
00112 throw new org.omg.CORBA.MARSHAL (_id);
00113 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00114 endTest ( );
00115 } finally {
00116 _releaseReply ($in);
00117 }
00118 }
00119
00120
00121 private static String[] __ids = {
00122 "IDL:Sct_CalibrationController/TestRequest:1.0"};
00123
00124 public String[] _ids ()
00125 {
00126 return (String[])__ids.clone ();
00127 }
00128
00129 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00130 {
00131 String str = s.readUTF ();
00132 String[] args = null;
00133 java.util.Properties props = null;
00134 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00135 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00136 _set_delegate (delegate);
00137 }
00138
00139 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00140 {
00141 String[] args = null;
00142 java.util.Properties props = null;
00143 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00144 s.writeUTF (str);
00145 }
00146 }