00001 package Sct_CalibrationController;
00002
00003
00016 public abstract class SequenceRequestPOA extends org.omg.PortableServer.Servant
00017 implements Sct_CalibrationController.SequenceRequestOperations, org.omg.CORBA.portable.InvokeHandler
00018 {
00019
00020
00021
00022 private static java.util.Hashtable _methods = new java.util.Hashtable ();
00023 static
00024 {
00025 _methods.put ("startSequence", new java.lang.Integer (0));
00026 _methods.put ("getNextTest", new java.lang.Integer (1));
00027 _methods.put ("endSequence", new java.lang.Integer (2));
00028 }
00029
00030 public org.omg.CORBA.portable.OutputStream _invoke (String $method,
00031 org.omg.CORBA.portable.InputStream in,
00032 org.omg.CORBA.portable.ResponseHandler $rh)
00033 {
00034 org.omg.CORBA.portable.OutputStream out = null;
00035 java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
00036 if (__method == null)
00037 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00038
00039 switch (__method.intValue ())
00040 {
00041
00046 case 0:
00047 {
00048 Sct_SctApi.SctApi api = Sct_SctApi.SctApiHelper.read (in);
00049 String $result = null;
00050 $result = this.startSequence (api);
00051 out = $rh.createReply();
00052 out.write_string ($result);
00053 break;
00054 }
00055
00056
00061 case 1:
00062 {
00063 int index = in.read_ulong ();
00064 Sct_CalibrationController.TestRequest $result = null;
00065 $result = this.getNextTest (index);
00066 out = $rh.createReply();
00067 Sct_CalibrationController.TestRequestHelper.write (out, $result);
00068 break;
00069 }
00070
00071
00075 case 2:
00076 {
00077 this.endSequence ();
00078 out = $rh.createReply();
00079 break;
00080 }
00081
00082 default:
00083 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00084 }
00085
00086 return out;
00087 }
00088
00089
00090 private static String[] __ids = {
00091 "IDL:Sct_CalibrationController/SequenceRequest:1.0"};
00092
00093 public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00094 {
00095 return (String[])__ids.clone ();
00096 }
00097
00098 public SequenceRequest _this()
00099 {
00100 return SequenceRequestHelper.narrow(
00101 super._this_object());
00102 }
00103
00104 public SequenceRequest _this(org.omg.CORBA.ORB orb)
00105 {
00106 return SequenceRequestHelper.narrow(
00107 super._this_object(orb));
00108 }
00109
00110
00111 }