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 ("getScan", new java.lang.Integer (0));
00023 _methods.put ("setScan", new java.lang.Integer (1));
00024 _methods.put ("configureModules", new java.lang.Integer (2));
00025 _methods.put ("clockByTwo", new java.lang.Integer (3));
00026 _methods.put ("setClockByTwo", new java.lang.Integer (4));
00027 _methods.put ("isRaw", new java.lang.Integer (5));
00028 _methods.put ("delay", new java.lang.Integer (6));
00029 _methods.put ("setWidth", new java.lang.Integer (7));
00030 _methods.put ("width", new java.lang.Integer (8));
00031 }
00032
00033 public org.omg.CORBA.portable.OutputStream _invoke (String $method,
00034 org.omg.CORBA.portable.InputStream in,
00035 org.omg.CORBA.portable.ResponseHandler $rh)
00036 {
00037 org.omg.CORBA.portable.OutputStream out = null;
00038 java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
00039 if (__method == null)
00040 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00041
00042 switch (__method.intValue ())
00043 {
00044
00046 case 0:
00047 {
00048 Sct_SctApi.Scan $result = null;
00049 $result = this.getScan ();
00050 out = $rh.createReply();
00051 Sct_SctApi.ScanHelper.write (out, $result);
00052 break;
00053 }
00054
00055
00057 case 1:
00058 {
00059 Sct_SctApi.Scan scan = Sct_SctApi.ScanHelper.read (in);
00060 this.setScan (scan);
00061 out = $rh.createReply();
00062 break;
00063 }
00064
00065
00067 case 2:
00068 {
00069 boolean $result = false;
00070 $result = this.configureModules ();
00071 out = $rh.createReply();
00072 out.write_boolean ($result);
00073 break;
00074 }
00075
00076
00078 case 3:
00079 {
00080 boolean $result = false;
00081 $result = this.clockByTwo ();
00082 out = $rh.createReply();
00083 out.write_boolean ($result);
00084 break;
00085 }
00086
00087
00089 case 4:
00090 {
00091 boolean value = in.read_boolean ();
00092 this.setClockByTwo (value);
00093 out = $rh.createReply();
00094 break;
00095 }
00096
00097
00099 case 5:
00100 {
00101 boolean $result = false;
00102 $result = this.isRaw ();
00103 out = $rh.createReply();
00104 out.write_boolean ($result);
00105 break;
00106 }
00107
00108
00110 case 6:
00111 {
00112 int $result = (int)0;
00113 $result = this.delay ();
00114 out = $rh.createReply();
00115 out.write_long ($result);
00116 break;
00117 }
00118
00119
00121 case 7:
00122 {
00123 int value = in.read_long ();
00124 this.setWidth (value);
00125 out = $rh.createReply();
00126 break;
00127 }
00128
00129
00131 case 8:
00132 {
00133 int $result = (int)0;
00134 $result = this.width ();
00135 out = $rh.createReply();
00136 out.write_long ($result);
00137 break;
00138 }
00139
00140 default:
00141 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00142 }
00143
00144 return out;
00145 }
00146
00147
00148 private static String[] __ids = {
00149 "IDL:Sct_CalibrationController/ScanRequest:1.0"};
00150
00151 public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00152 {
00153 return (String[])__ids.clone ();
00154 }
00155
00156 public ScanRequest _this()
00157 {
00158 return ScanRequestHelper.narrow(
00159 super._this_object());
00160 }
00161
00162 public ScanRequest _this(org.omg.CORBA.ORB orb)
00163 {
00164 return ScanRequestHelper.narrow(
00165 super._this_object(orb));
00166 }
00167
00168
00169 }