00001 package Sct_CalibrationController;
00002
00003
00013 public abstract class ScanRequestPOA extends org.omg.PortableServer.Servant
00014 implements Sct_CalibrationController.ScanRequestOperations, org.omg.CORBA.portable.InvokeHandler
00015 {
00016
00017
00018
00019 private static java.util.Hashtable _methods = new java.util.Hashtable ();
00020 static
00021 {
00022 _methods.put ("getScanCorba", new java.lang.Integer (0));
00023 _methods.put ("setScanCorba", new java.lang.Integer (1));
00024 _methods.put ("setConfigureModulesCorba", new java.lang.Integer (2));
00025 _methods.put ("configureModulesCorba", new java.lang.Integer (3));
00026 _methods.put ("clockByTwoCorba", new java.lang.Integer (4));
00027 _methods.put ("setClockByTwoCorba", new java.lang.Integer (5));
00028 _methods.put ("isRawCorba", new java.lang.Integer (6));
00029 _methods.put ("delayCorba", new java.lang.Integer (7));
00030 _methods.put ("setWidthCorba", new java.lang.Integer (8));
00031 _methods.put ("widthCorba", new java.lang.Integer (9));
00032 }
00033
00034 public org.omg.CORBA.portable.OutputStream _invoke (String $method,
00035 org.omg.CORBA.portable.InputStream in,
00036 org.omg.CORBA.portable.ResponseHandler $rh)
00037 {
00038 org.omg.CORBA.portable.OutputStream out = null;
00039 java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
00040 if (__method == null)
00041 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00042
00043 switch (__method.intValue ())
00044 {
00045
00047 case 0:
00048 {
00049 Sct_SctApi.Scan $result = null;
00050 $result = this.getScanCorba ();
00051 out = $rh.createReply();
00052 Sct_SctApi.ScanHelper.write (out, $result);
00053 break;
00054 }
00055
00056
00058 case 1:
00059 {
00060 Sct_SctApi.Scan scan = Sct_SctApi.ScanHelper.read (in);
00061 this.setScanCorba (scan);
00062 out = $rh.createReply();
00063 break;
00064 }
00065
00066
00068 case 2:
00069 {
00070 boolean value = in.read_boolean ();
00071 this.setConfigureModulesCorba (value);
00072 out = $rh.createReply();
00073 break;
00074 }
00075
00076
00078 case 3:
00079 {
00080 boolean $result = false;
00081 $result = this.configureModulesCorba ();
00082 out = $rh.createReply();
00083 out.write_boolean ($result);
00084 break;
00085 }
00086
00087
00089 case 4:
00090 {
00091 boolean $result = false;
00092 $result = this.clockByTwoCorba ();
00093 out = $rh.createReply();
00094 out.write_boolean ($result);
00095 break;
00096 }
00097
00098
00100 case 5:
00101 {
00102 boolean value = in.read_boolean ();
00103 this.setClockByTwoCorba (value);
00104 out = $rh.createReply();
00105 break;
00106 }
00107
00108
00110 case 6:
00111 {
00112 boolean $result = false;
00113 $result = this.isRawCorba ();
00114 out = $rh.createReply();
00115 out.write_boolean ($result);
00116 break;
00117 }
00118
00119
00121 case 7:
00122 {
00123 int $result = (int)0;
00124 $result = this.delayCorba ();
00125 out = $rh.createReply();
00126 out.write_long ($result);
00127 break;
00128 }
00129
00130
00132 case 8:
00133 {
00134 int value = in.read_long ();
00135 this.setWidthCorba (value);
00136 out = $rh.createReply();
00137 break;
00138 }
00139
00140
00142 case 9:
00143 {
00144 int $result = (int)0;
00145 $result = this.widthCorba ();
00146 out = $rh.createReply();
00147 out.write_long ($result);
00148 break;
00149 }
00150
00151 default:
00152 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00153 }
00154
00155 return out;
00156 }
00157
00158
00159 private static String[] __ids = {
00160 "IDL:Sct_CalibrationController/ScanRequest:1.0"};
00161
00162 public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00163 {
00164 return (String[])__ids.clone ();
00165 }
00166
00167 public ScanRequest _this()
00168 {
00169 return ScanRequestHelper.narrow(
00170 super._this_object());
00171 }
00172
00173 public ScanRequest _this(org.omg.CORBA.ORB orb)
00174 {
00175 return ScanRequestHelper.narrow(
00176 super._this_object(orb));
00177 }
00178
00179
00180 }