_TestRequestStub.java

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.SctApiIPC 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.SctApiIPCHelper.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   } // startTest
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   } // getNextScan
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   } // canFeedback
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   } // endTest
00119 
00120 
00124   public String getAnalysisAlgorithm ()
00125   {
00126             org.omg.CORBA.portable.InputStream $in = null;
00127             try {
00128                 org.omg.CORBA.portable.OutputStream $out = _request ("getAnalysisAlgorithm", true);
00129                 $in = _invoke ($out);
00130                 String $result = $in.read_string ();
00131                 return $result;
00132             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00133                 $in = $ex.getInputStream ();
00134                 String _id = $ex.getId ();
00135                 throw new org.omg.CORBA.MARSHAL (_id);
00136             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00137                 return getAnalysisAlgorithm (        );
00138             } finally {
00139                 _releaseReply ($in);
00140             }
00141   } // getAnalysisAlgorithm
00142 
00143 
00147   public void setAnalysisAlgorithm (String name)
00148   {
00149             org.omg.CORBA.portable.InputStream $in = null;
00150             try {
00151                 org.omg.CORBA.portable.OutputStream $out = _request ("setAnalysisAlgorithm", true);
00152                 $out.write_string (name);
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                 setAnalysisAlgorithm (name        );
00161             } finally {
00162                 _releaseReply ($in);
00163             }
00164   } // setAnalysisAlgorithm
00165 
00166 
00170   public String getFitAlgorithm ()
00171   {
00172             org.omg.CORBA.portable.InputStream $in = null;
00173             try {
00174                 org.omg.CORBA.portable.OutputStream $out = _request ("getFitAlgorithm", true);
00175                 $in = _invoke ($out);
00176                 String $result = $in.read_string ();
00177                 return $result;
00178             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00179                 $in = $ex.getInputStream ();
00180                 String _id = $ex.getId ();
00181                 throw new org.omg.CORBA.MARSHAL (_id);
00182             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00183                 return getFitAlgorithm (        );
00184             } finally {
00185                 _releaseReply ($in);
00186             }
00187   } // getFitAlgorithm
00188 
00189 
00193   public void setFitAlgorithm (String name)
00194   {
00195             org.omg.CORBA.portable.InputStream $in = null;
00196             try {
00197                 org.omg.CORBA.portable.OutputStream $out = _request ("setFitAlgorithm", true);
00198                 $out.write_string (name);
00199                 $in = _invoke ($out);
00200                 return;
00201             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00202                 $in = $ex.getInputStream ();
00203                 String _id = $ex.getId ();
00204                 throw new org.omg.CORBA.MARSHAL (_id);
00205             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00206                 setFitAlgorithm (name        );
00207             } finally {
00208                 _releaseReply ($in);
00209             }
00210   } // setFitAlgorithm
00211 
00212   // Type-specific CORBA::Object operations
00213   private static String[] __ids = {
00214     "IDL:Sct_CalibrationController/TestRequest:1.0"};
00215 
00216   public String[] _ids ()
00217   {
00218     return (String[])__ids.clone ();
00219   }
00220 
00221   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00222   {
00223      String str = s.readUTF ();
00224      String[] args = null;
00225      java.util.Properties props = null;
00226      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00227      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00228      _set_delegate (delegate);
00229   }
00230 
00231   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00232   {
00233      String[] args = null;
00234      java.util.Properties props = null;
00235      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00236      s.writeUTF (str);
00237   }
00238 } // class _TestRequestStub

Generated on Mon Feb 6 14:12:07 2006 for SCT DAQ/DCS Software - Java by  doxygen 1.4.6