00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 package cast.interfaces;
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 public abstract class _CASTComponentDisp extends Ice.ObjectImpl implements CASTComponent
00024 {
00025 protected void
00026 ice_copyStateFrom(Ice.Object __obj)
00027 throws java.lang.CloneNotSupportedException
00028 {
00029 throw new java.lang.CloneNotSupportedException();
00030 }
00031
00032 public static final String[] __ids =
00033 {
00034 "::Ice::Object",
00035 "::cast::interfaces::CASTComponent"
00036 };
00037
00038 public boolean
00039 ice_isA(String s)
00040 {
00041 return java.util.Arrays.binarySearch(__ids, s) >= 0;
00042 }
00043
00044 public boolean
00045 ice_isA(String s, Ice.Current __current)
00046 {
00047 return java.util.Arrays.binarySearch(__ids, s) >= 0;
00048 }
00049
00050 public String[]
00051 ice_ids()
00052 {
00053 return __ids;
00054 }
00055
00056 public String[]
00057 ice_ids(Ice.Current __current)
00058 {
00059 return __ids;
00060 }
00061
00062 public String
00063 ice_id()
00064 {
00065 return __ids[1];
00066 }
00067
00068 public String
00069 ice_id(Ice.Current __current)
00070 {
00071 return __ids[1];
00072 }
00073
00074 public static String
00075 ice_staticId()
00076 {
00077 return __ids[1];
00078 }
00079
00080 public final void
00081 beat()
00082 {
00083 beat(null);
00084 }
00085
00086 public final void
00087 configure(java.util.Map<java.lang.String, java.lang.String> config)
00088 {
00089 configure(config, null);
00090 }
00091
00095 public final void
00096 destroy()
00097 {
00098 destroy(null);
00099 }
00100
00104 public final String
00105 getID()
00106 {
00107 return getID(null);
00108 }
00109
00110 public final void
00111 run()
00112 {
00113 run(null);
00114 }
00115
00116 public final void
00117 setComponentManager(ComponentManagerPrx man)
00118 {
00119 setComponentManager(man, null);
00120 }
00121
00122 public final void
00123 setID(String id)
00124 {
00125 setID(id, null);
00126 }
00127
00128 public final void
00129 setTimeServer(TimeServerPrx ts)
00130 {
00131 setTimeServer(ts, null);
00132 }
00133
00134 public final void
00135 start()
00136 {
00137 start(null);
00138 }
00139
00140 public final void
00141 stop()
00142 {
00143 stop(null);
00144 }
00145
00146 public static Ice.DispatchStatus
00147 ___beat(CASTComponent __obj, IceInternal.Incoming __inS, Ice.Current __current)
00148 {
00149 __checkMode(Ice.OperationMode.Idempotent, __current.mode);
00150 __inS.is().skipEmptyEncaps();
00151 __obj.beat(__current);
00152 return Ice.DispatchStatus.DispatchOK;
00153 }
00154
00155 public static Ice.DispatchStatus
00156 ___setID(CASTComponent __obj, IceInternal.Incoming __inS, Ice.Current __current)
00157 {
00158 __checkMode(Ice.OperationMode.Normal, __current.mode);
00159 IceInternal.BasicStream __is = __inS.is();
00160 __is.startReadEncaps();
00161 String id;
00162 id = __is.readString();
00163 __is.endReadEncaps();
00164 __obj.setID(id, __current);
00165 return Ice.DispatchStatus.DispatchOK;
00166 }
00167
00168 public static Ice.DispatchStatus
00169 ___getID(CASTComponent __obj, IceInternal.Incoming __inS, Ice.Current __current)
00170 {
00171 __checkMode(Ice.OperationMode.Idempotent, __current.mode);
00172 __inS.is().skipEmptyEncaps();
00173 IceInternal.BasicStream __os = __inS.os();
00174 String __ret = __obj.getID(__current);
00175 __os.writeString(__ret);
00176 return Ice.DispatchStatus.DispatchOK;
00177 }
00178
00179 public static Ice.DispatchStatus
00180 ___configure(CASTComponent __obj, IceInternal.Incoming __inS, Ice.Current __current)
00181 {
00182 __checkMode(Ice.OperationMode.Normal, __current.mode);
00183 IceInternal.BasicStream __is = __inS.is();
00184 __is.startReadEncaps();
00185 java.util.Map<java.lang.String, java.lang.String> config;
00186 config = cast.cdl.StringMapHelper.read(__is);
00187 __is.endReadEncaps();
00188 __obj.configure(config, __current);
00189 return Ice.DispatchStatus.DispatchOK;
00190 }
00191
00192 public static Ice.DispatchStatus
00193 ___start(CASTComponent __obj, IceInternal.Incoming __inS, Ice.Current __current)
00194 {
00195 __checkMode(Ice.OperationMode.Normal, __current.mode);
00196 __inS.is().skipEmptyEncaps();
00197 __obj.start(__current);
00198 return Ice.DispatchStatus.DispatchOK;
00199 }
00200
00201 public static Ice.DispatchStatus
00202 ___run(CASTComponent __obj, IceInternal.Incoming __inS, Ice.Current __current)
00203 {
00204 __checkMode(Ice.OperationMode.Normal, __current.mode);
00205 __inS.is().skipEmptyEncaps();
00206 __obj.run(__current);
00207 return Ice.DispatchStatus.DispatchOK;
00208 }
00209
00210 public static Ice.DispatchStatus
00211 ___stop(CASTComponent __obj, IceInternal.Incoming __inS, Ice.Current __current)
00212 {
00213 __checkMode(Ice.OperationMode.Normal, __current.mode);
00214 __inS.is().skipEmptyEncaps();
00215 __obj.stop(__current);
00216 return Ice.DispatchStatus.DispatchOK;
00217 }
00218
00219 public static Ice.DispatchStatus
00220 ___setComponentManager(CASTComponent __obj, IceInternal.Incoming __inS, Ice.Current __current)
00221 {
00222 __checkMode(Ice.OperationMode.Normal, __current.mode);
00223 IceInternal.BasicStream __is = __inS.is();
00224 __is.startReadEncaps();
00225 ComponentManagerPrx man;
00226 man = ComponentManagerPrxHelper.__read(__is);
00227 __is.endReadEncaps();
00228 __obj.setComponentManager(man, __current);
00229 return Ice.DispatchStatus.DispatchOK;
00230 }
00231
00232 public static Ice.DispatchStatus
00233 ___setTimeServer(CASTComponent __obj, IceInternal.Incoming __inS, Ice.Current __current)
00234 {
00235 __checkMode(Ice.OperationMode.Normal, __current.mode);
00236 IceInternal.BasicStream __is = __inS.is();
00237 __is.startReadEncaps();
00238 TimeServerPrx ts;
00239 ts = TimeServerPrxHelper.__read(__is);
00240 __is.endReadEncaps();
00241 __obj.setTimeServer(ts, __current);
00242 return Ice.DispatchStatus.DispatchOK;
00243 }
00244
00245 public static Ice.DispatchStatus
00246 ___destroy(CASTComponent __obj, IceInternal.Incoming __inS, Ice.Current __current)
00247 {
00248 __checkMode(Ice.OperationMode.Normal, __current.mode);
00249 __inS.is().skipEmptyEncaps();
00250 __obj.destroy(__current);
00251 return Ice.DispatchStatus.DispatchOK;
00252 }
00253
00254 private final static String[] __all =
00255 {
00256 "beat",
00257 "configure",
00258 "destroy",
00259 "getID",
00260 "ice_id",
00261 "ice_ids",
00262 "ice_isA",
00263 "ice_ping",
00264 "run",
00265 "setComponentManager",
00266 "setID",
00267 "setTimeServer",
00268 "start",
00269 "stop"
00270 };
00271
00272 public Ice.DispatchStatus
00273 __dispatch(IceInternal.Incoming in, Ice.Current __current)
00274 {
00275 int pos = java.util.Arrays.binarySearch(__all, __current.operation);
00276 if(pos < 0)
00277 {
00278 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00279 }
00280
00281 switch(pos)
00282 {
00283 case 0:
00284 {
00285 return ___beat(this, in, __current);
00286 }
00287 case 1:
00288 {
00289 return ___configure(this, in, __current);
00290 }
00291 case 2:
00292 {
00293 return ___destroy(this, in, __current);
00294 }
00295 case 3:
00296 {
00297 return ___getID(this, in, __current);
00298 }
00299 case 4:
00300 {
00301 return ___ice_id(this, in, __current);
00302 }
00303 case 5:
00304 {
00305 return ___ice_ids(this, in, __current);
00306 }
00307 case 6:
00308 {
00309 return ___ice_isA(this, in, __current);
00310 }
00311 case 7:
00312 {
00313 return ___ice_ping(this, in, __current);
00314 }
00315 case 8:
00316 {
00317 return ___run(this, in, __current);
00318 }
00319 case 9:
00320 {
00321 return ___setComponentManager(this, in, __current);
00322 }
00323 case 10:
00324 {
00325 return ___setID(this, in, __current);
00326 }
00327 case 11:
00328 {
00329 return ___setTimeServer(this, in, __current);
00330 }
00331 case 12:
00332 {
00333 return ___start(this, in, __current);
00334 }
00335 case 13:
00336 {
00337 return ___stop(this, in, __current);
00338 }
00339 }
00340
00341 assert(false);
00342 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00343 }
00344
00345 public void
00346 __write(IceInternal.BasicStream __os)
00347 {
00348 __os.writeTypeId(ice_staticId());
00349 __os.startWriteSlice();
00350 __os.endWriteSlice();
00351 super.__write(__os);
00352 }
00353
00354 public void
00355 __read(IceInternal.BasicStream __is, boolean __rid)
00356 {
00357 if(__rid)
00358 {
00359 __is.readTypeId();
00360 }
00361 __is.startReadSlice();
00362 __is.endReadSlice();
00363 super.__read(__is, true);
00364 }
00365
00366 public void
00367 __write(Ice.OutputStream __outS)
00368 {
00369 __outS.writeTypeId(ice_staticId());
00370 __outS.startSlice();
00371 __outS.endSlice();
00372 super.__write(__outS);
00373 }
00374
00375 public void
00376 __read(Ice.InputStream __inS, boolean __rid)
00377 {
00378 if(__rid)
00379 {
00380 __inS.readTypeId();
00381 }
00382 __inS.startSlice();
00383 __inS.endSlice();
00384 super.__read(__inS, true);
00385 }
00386 }