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 final class ComponentFactoryPrxHelper extends Ice.ObjectPrxHelperBase implements ComponentFactoryPrx
00024 {
00028 public String
00029 getVersionString()
00030 {
00031 return getVersionString(null, false);
00032 }
00033
00038 public String
00039 getVersionString(java.util.Map<String, String> __ctx)
00040 {
00041 return getVersionString(__ctx, true);
00042 }
00043
00044 private String
00045 getVersionString(java.util.Map<String, String> __ctx, boolean __explicitCtx)
00046 {
00047 if(__explicitCtx && __ctx == null)
00048 {
00049 __ctx = _emptyContext;
00050 }
00051 int __cnt = 0;
00052 while(true)
00053 {
00054 Ice._ObjectDel __delBase = null;
00055 try
00056 {
00057 __checkTwowayOnly("getVersionString");
00058 __delBase = __getDelegate(false);
00059 _ComponentFactoryDel __del = (_ComponentFactoryDel)__delBase;
00060 return __del.getVersionString(__ctx);
00061 }
00062 catch(IceInternal.LocalExceptionWrapper __ex)
00063 {
00064 __handleExceptionWrapper(__delBase, __ex);
00065 }
00066 catch(Ice.LocalException __ex)
00067 {
00068 __cnt = __handleException(__delBase, __ex, null, __cnt);
00069 }
00070 }
00071 }
00072
00073 private static final String __getVersionString_name = "getVersionString";
00074
00079 public Ice.AsyncResult begin_getVersionString()
00080 {
00081 return begin_getVersionString(null, false, null);
00082 }
00083
00089 public Ice.AsyncResult begin_getVersionString(java.util.Map<String, String> __ctx)
00090 {
00091 return begin_getVersionString(__ctx, true, null);
00092 }
00093
00098 public Ice.AsyncResult begin_getVersionString(Ice.Callback __cb)
00099 {
00100 return begin_getVersionString(null, false, __cb);
00101 }
00102
00108 public Ice.AsyncResult begin_getVersionString(java.util.Map<String, String> __ctx, Ice.Callback __cb)
00109 {
00110 return begin_getVersionString(__ctx, true, __cb);
00111 }
00112
00117 public Ice.AsyncResult begin_getVersionString(Callback_ComponentFactory_getVersionString __cb)
00118 {
00119 return begin_getVersionString(null, false, __cb);
00120 }
00121
00127 public Ice.AsyncResult begin_getVersionString(java.util.Map<String, String> __ctx, Callback_ComponentFactory_getVersionString __cb)
00128 {
00129 return begin_getVersionString(__ctx, true, __cb);
00130 }
00131
00132 private Ice.AsyncResult begin_getVersionString(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00133 {
00134 __checkAsyncTwowayOnly(__getVersionString_name);
00135 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __getVersionString_name, __cb);
00136 try
00137 {
00138 __result.__prepare(__getVersionString_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00139 IceInternal.BasicStream __os = __result.__os();
00140 __os.endWriteEncaps();
00141 __result.__send(true);
00142 }
00143 catch(Ice.LocalException __ex)
00144 {
00145 __result.__exceptionAsync(__ex);
00146 }
00147 return __result;
00148 }
00149
00154 public String end_getVersionString(Ice.AsyncResult __result)
00155 {
00156 Ice.AsyncResult.__check(__result, this, __getVersionString_name);
00157 if(!__result.__wait())
00158 {
00159 try
00160 {
00161 __result.__throwUserException();
00162 }
00163 catch(Ice.UserException __ex)
00164 {
00165 throw new Ice.UnknownUserException(__ex.ice_name());
00166 }
00167 }
00168 String __ret;
00169 IceInternal.BasicStream __is = __result.__is();
00170 __is.startReadEncaps();
00171 __ret = __is.readString();
00172 __is.endReadEncaps();
00173 return __ret;
00174 }
00175
00176 public CASTComponentPrx
00177 newComponent(String id, String type, boolean newProcess)
00178 throws cast.ComponentCreationException
00179 {
00180 return newComponent(id, type, newProcess, null, false);
00181 }
00182
00183 public CASTComponentPrx
00184 newComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx)
00185 throws cast.ComponentCreationException
00186 {
00187 return newComponent(id, type, newProcess, __ctx, true);
00188 }
00189
00190 private CASTComponentPrx
00191 newComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00192 throws cast.ComponentCreationException
00193 {
00194 if(__explicitCtx && __ctx == null)
00195 {
00196 __ctx = _emptyContext;
00197 }
00198 int __cnt = 0;
00199 while(true)
00200 {
00201 Ice._ObjectDel __delBase = null;
00202 try
00203 {
00204 __checkTwowayOnly("newComponent");
00205 __delBase = __getDelegate(false);
00206 _ComponentFactoryDel __del = (_ComponentFactoryDel)__delBase;
00207 return __del.newComponent(id, type, newProcess, __ctx);
00208 }
00209 catch(IceInternal.LocalExceptionWrapper __ex)
00210 {
00211 __handleExceptionWrapper(__delBase, __ex);
00212 }
00213 catch(Ice.LocalException __ex)
00214 {
00215 __cnt = __handleException(__delBase, __ex, null, __cnt);
00216 }
00217 }
00218 }
00219
00220 private static final String __newComponent_name = "newComponent";
00221
00222 public Ice.AsyncResult begin_newComponent(String id, String type, boolean newProcess)
00223 {
00224 return begin_newComponent(id, type, newProcess, null, false, null);
00225 }
00226
00227 public Ice.AsyncResult begin_newComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx)
00228 {
00229 return begin_newComponent(id, type, newProcess, __ctx, true, null);
00230 }
00231
00232 public Ice.AsyncResult begin_newComponent(String id, String type, boolean newProcess, Ice.Callback __cb)
00233 {
00234 return begin_newComponent(id, type, newProcess, null, false, __cb);
00235 }
00236
00237 public Ice.AsyncResult begin_newComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00238 {
00239 return begin_newComponent(id, type, newProcess, __ctx, true, __cb);
00240 }
00241
00242 public Ice.AsyncResult begin_newComponent(String id, String type, boolean newProcess, Callback_ComponentFactory_newComponent __cb)
00243 {
00244 return begin_newComponent(id, type, newProcess, null, false, __cb);
00245 }
00246
00247 public Ice.AsyncResult begin_newComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, Callback_ComponentFactory_newComponent __cb)
00248 {
00249 return begin_newComponent(id, type, newProcess, __ctx, true, __cb);
00250 }
00251
00252 private Ice.AsyncResult begin_newComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00253 {
00254 __checkAsyncTwowayOnly(__newComponent_name);
00255 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __newComponent_name, __cb);
00256 try
00257 {
00258 __result.__prepare(__newComponent_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00259 IceInternal.BasicStream __os = __result.__os();
00260 __os.writeString(id);
00261 __os.writeString(type);
00262 __os.writeBool(newProcess);
00263 __os.endWriteEncaps();
00264 __result.__send(true);
00265 }
00266 catch(Ice.LocalException __ex)
00267 {
00268 __result.__exceptionAsync(__ex);
00269 }
00270 return __result;
00271 }
00272
00273 public CASTComponentPrx end_newComponent(Ice.AsyncResult __result)
00274 throws cast.ComponentCreationException
00275 {
00276 Ice.AsyncResult.__check(__result, this, __newComponent_name);
00277 if(!__result.__wait())
00278 {
00279 try
00280 {
00281 __result.__throwUserException();
00282 }
00283 catch(cast.ComponentCreationException __ex)
00284 {
00285 throw __ex;
00286 }
00287 catch(Ice.UserException __ex)
00288 {
00289 throw new Ice.UnknownUserException(__ex.ice_name());
00290 }
00291 }
00292 CASTComponentPrx __ret;
00293 IceInternal.BasicStream __is = __result.__is();
00294 __is.startReadEncaps();
00295 __ret = CASTComponentPrxHelper.__read(__is);
00296 __is.endReadEncaps();
00297 return __ret;
00298 }
00299
00300 public ManagedComponentPrx
00301 newManagedComponent(String id, String type, boolean newProcess)
00302 throws cast.ComponentCreationException
00303 {
00304 return newManagedComponent(id, type, newProcess, null, false);
00305 }
00306
00307 public ManagedComponentPrx
00308 newManagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx)
00309 throws cast.ComponentCreationException
00310 {
00311 return newManagedComponent(id, type, newProcess, __ctx, true);
00312 }
00313
00314 private ManagedComponentPrx
00315 newManagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00316 throws cast.ComponentCreationException
00317 {
00318 if(__explicitCtx && __ctx == null)
00319 {
00320 __ctx = _emptyContext;
00321 }
00322 int __cnt = 0;
00323 while(true)
00324 {
00325 Ice._ObjectDel __delBase = null;
00326 try
00327 {
00328 __checkTwowayOnly("newManagedComponent");
00329 __delBase = __getDelegate(false);
00330 _ComponentFactoryDel __del = (_ComponentFactoryDel)__delBase;
00331 return __del.newManagedComponent(id, type, newProcess, __ctx);
00332 }
00333 catch(IceInternal.LocalExceptionWrapper __ex)
00334 {
00335 __handleExceptionWrapper(__delBase, __ex);
00336 }
00337 catch(Ice.LocalException __ex)
00338 {
00339 __cnt = __handleException(__delBase, __ex, null, __cnt);
00340 }
00341 }
00342 }
00343
00344 private static final String __newManagedComponent_name = "newManagedComponent";
00345
00346 public Ice.AsyncResult begin_newManagedComponent(String id, String type, boolean newProcess)
00347 {
00348 return begin_newManagedComponent(id, type, newProcess, null, false, null);
00349 }
00350
00351 public Ice.AsyncResult begin_newManagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx)
00352 {
00353 return begin_newManagedComponent(id, type, newProcess, __ctx, true, null);
00354 }
00355
00356 public Ice.AsyncResult begin_newManagedComponent(String id, String type, boolean newProcess, Ice.Callback __cb)
00357 {
00358 return begin_newManagedComponent(id, type, newProcess, null, false, __cb);
00359 }
00360
00361 public Ice.AsyncResult begin_newManagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00362 {
00363 return begin_newManagedComponent(id, type, newProcess, __ctx, true, __cb);
00364 }
00365
00366 public Ice.AsyncResult begin_newManagedComponent(String id, String type, boolean newProcess, Callback_ComponentFactory_newManagedComponent __cb)
00367 {
00368 return begin_newManagedComponent(id, type, newProcess, null, false, __cb);
00369 }
00370
00371 public Ice.AsyncResult begin_newManagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, Callback_ComponentFactory_newManagedComponent __cb)
00372 {
00373 return begin_newManagedComponent(id, type, newProcess, __ctx, true, __cb);
00374 }
00375
00376 private Ice.AsyncResult begin_newManagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00377 {
00378 __checkAsyncTwowayOnly(__newManagedComponent_name);
00379 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __newManagedComponent_name, __cb);
00380 try
00381 {
00382 __result.__prepare(__newManagedComponent_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00383 IceInternal.BasicStream __os = __result.__os();
00384 __os.writeString(id);
00385 __os.writeString(type);
00386 __os.writeBool(newProcess);
00387 __os.endWriteEncaps();
00388 __result.__send(true);
00389 }
00390 catch(Ice.LocalException __ex)
00391 {
00392 __result.__exceptionAsync(__ex);
00393 }
00394 return __result;
00395 }
00396
00397 public ManagedComponentPrx end_newManagedComponent(Ice.AsyncResult __result)
00398 throws cast.ComponentCreationException
00399 {
00400 Ice.AsyncResult.__check(__result, this, __newManagedComponent_name);
00401 if(!__result.__wait())
00402 {
00403 try
00404 {
00405 __result.__throwUserException();
00406 }
00407 catch(cast.ComponentCreationException __ex)
00408 {
00409 throw __ex;
00410 }
00411 catch(Ice.UserException __ex)
00412 {
00413 throw new Ice.UnknownUserException(__ex.ice_name());
00414 }
00415 }
00416 ManagedComponentPrx __ret;
00417 IceInternal.BasicStream __is = __result.__is();
00418 __is.startReadEncaps();
00419 __ret = ManagedComponentPrxHelper.__read(__is);
00420 __is.endReadEncaps();
00421 return __ret;
00422 }
00423
00424 public TaskManagerPrx
00425 newTaskManager(String id, String type, boolean newProcess)
00426 throws cast.ComponentCreationException
00427 {
00428 return newTaskManager(id, type, newProcess, null, false);
00429 }
00430
00431 public TaskManagerPrx
00432 newTaskManager(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx)
00433 throws cast.ComponentCreationException
00434 {
00435 return newTaskManager(id, type, newProcess, __ctx, true);
00436 }
00437
00438 private TaskManagerPrx
00439 newTaskManager(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00440 throws cast.ComponentCreationException
00441 {
00442 if(__explicitCtx && __ctx == null)
00443 {
00444 __ctx = _emptyContext;
00445 }
00446 int __cnt = 0;
00447 while(true)
00448 {
00449 Ice._ObjectDel __delBase = null;
00450 try
00451 {
00452 __checkTwowayOnly("newTaskManager");
00453 __delBase = __getDelegate(false);
00454 _ComponentFactoryDel __del = (_ComponentFactoryDel)__delBase;
00455 return __del.newTaskManager(id, type, newProcess, __ctx);
00456 }
00457 catch(IceInternal.LocalExceptionWrapper __ex)
00458 {
00459 __handleExceptionWrapper(__delBase, __ex);
00460 }
00461 catch(Ice.LocalException __ex)
00462 {
00463 __cnt = __handleException(__delBase, __ex, null, __cnt);
00464 }
00465 }
00466 }
00467
00468 private static final String __newTaskManager_name = "newTaskManager";
00469
00470 public Ice.AsyncResult begin_newTaskManager(String id, String type, boolean newProcess)
00471 {
00472 return begin_newTaskManager(id, type, newProcess, null, false, null);
00473 }
00474
00475 public Ice.AsyncResult begin_newTaskManager(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx)
00476 {
00477 return begin_newTaskManager(id, type, newProcess, __ctx, true, null);
00478 }
00479
00480 public Ice.AsyncResult begin_newTaskManager(String id, String type, boolean newProcess, Ice.Callback __cb)
00481 {
00482 return begin_newTaskManager(id, type, newProcess, null, false, __cb);
00483 }
00484
00485 public Ice.AsyncResult begin_newTaskManager(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00486 {
00487 return begin_newTaskManager(id, type, newProcess, __ctx, true, __cb);
00488 }
00489
00490 public Ice.AsyncResult begin_newTaskManager(String id, String type, boolean newProcess, Callback_ComponentFactory_newTaskManager __cb)
00491 {
00492 return begin_newTaskManager(id, type, newProcess, null, false, __cb);
00493 }
00494
00495 public Ice.AsyncResult begin_newTaskManager(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, Callback_ComponentFactory_newTaskManager __cb)
00496 {
00497 return begin_newTaskManager(id, type, newProcess, __ctx, true, __cb);
00498 }
00499
00500 private Ice.AsyncResult begin_newTaskManager(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00501 {
00502 __checkAsyncTwowayOnly(__newTaskManager_name);
00503 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __newTaskManager_name, __cb);
00504 try
00505 {
00506 __result.__prepare(__newTaskManager_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00507 IceInternal.BasicStream __os = __result.__os();
00508 __os.writeString(id);
00509 __os.writeString(type);
00510 __os.writeBool(newProcess);
00511 __os.endWriteEncaps();
00512 __result.__send(true);
00513 }
00514 catch(Ice.LocalException __ex)
00515 {
00516 __result.__exceptionAsync(__ex);
00517 }
00518 return __result;
00519 }
00520
00521 public TaskManagerPrx end_newTaskManager(Ice.AsyncResult __result)
00522 throws cast.ComponentCreationException
00523 {
00524 Ice.AsyncResult.__check(__result, this, __newTaskManager_name);
00525 if(!__result.__wait())
00526 {
00527 try
00528 {
00529 __result.__throwUserException();
00530 }
00531 catch(cast.ComponentCreationException __ex)
00532 {
00533 throw __ex;
00534 }
00535 catch(Ice.UserException __ex)
00536 {
00537 throw new Ice.UnknownUserException(__ex.ice_name());
00538 }
00539 }
00540 TaskManagerPrx __ret;
00541 IceInternal.BasicStream __is = __result.__is();
00542 __is.startReadEncaps();
00543 __ret = TaskManagerPrxHelper.__read(__is);
00544 __is.endReadEncaps();
00545 return __ret;
00546 }
00547
00548 public UnmanagedComponentPrx
00549 newUnmanagedComponent(String id, String type, boolean newProcess)
00550 throws cast.ComponentCreationException
00551 {
00552 return newUnmanagedComponent(id, type, newProcess, null, false);
00553 }
00554
00555 public UnmanagedComponentPrx
00556 newUnmanagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx)
00557 throws cast.ComponentCreationException
00558 {
00559 return newUnmanagedComponent(id, type, newProcess, __ctx, true);
00560 }
00561
00562 private UnmanagedComponentPrx
00563 newUnmanagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00564 throws cast.ComponentCreationException
00565 {
00566 if(__explicitCtx && __ctx == null)
00567 {
00568 __ctx = _emptyContext;
00569 }
00570 int __cnt = 0;
00571 while(true)
00572 {
00573 Ice._ObjectDel __delBase = null;
00574 try
00575 {
00576 __checkTwowayOnly("newUnmanagedComponent");
00577 __delBase = __getDelegate(false);
00578 _ComponentFactoryDel __del = (_ComponentFactoryDel)__delBase;
00579 return __del.newUnmanagedComponent(id, type, newProcess, __ctx);
00580 }
00581 catch(IceInternal.LocalExceptionWrapper __ex)
00582 {
00583 __handleExceptionWrapper(__delBase, __ex);
00584 }
00585 catch(Ice.LocalException __ex)
00586 {
00587 __cnt = __handleException(__delBase, __ex, null, __cnt);
00588 }
00589 }
00590 }
00591
00592 private static final String __newUnmanagedComponent_name = "newUnmanagedComponent";
00593
00594 public Ice.AsyncResult begin_newUnmanagedComponent(String id, String type, boolean newProcess)
00595 {
00596 return begin_newUnmanagedComponent(id, type, newProcess, null, false, null);
00597 }
00598
00599 public Ice.AsyncResult begin_newUnmanagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx)
00600 {
00601 return begin_newUnmanagedComponent(id, type, newProcess, __ctx, true, null);
00602 }
00603
00604 public Ice.AsyncResult begin_newUnmanagedComponent(String id, String type, boolean newProcess, Ice.Callback __cb)
00605 {
00606 return begin_newUnmanagedComponent(id, type, newProcess, null, false, __cb);
00607 }
00608
00609 public Ice.AsyncResult begin_newUnmanagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00610 {
00611 return begin_newUnmanagedComponent(id, type, newProcess, __ctx, true, __cb);
00612 }
00613
00614 public Ice.AsyncResult begin_newUnmanagedComponent(String id, String type, boolean newProcess, Callback_ComponentFactory_newUnmanagedComponent __cb)
00615 {
00616 return begin_newUnmanagedComponent(id, type, newProcess, null, false, __cb);
00617 }
00618
00619 public Ice.AsyncResult begin_newUnmanagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, Callback_ComponentFactory_newUnmanagedComponent __cb)
00620 {
00621 return begin_newUnmanagedComponent(id, type, newProcess, __ctx, true, __cb);
00622 }
00623
00624 private Ice.AsyncResult begin_newUnmanagedComponent(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00625 {
00626 __checkAsyncTwowayOnly(__newUnmanagedComponent_name);
00627 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __newUnmanagedComponent_name, __cb);
00628 try
00629 {
00630 __result.__prepare(__newUnmanagedComponent_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00631 IceInternal.BasicStream __os = __result.__os();
00632 __os.writeString(id);
00633 __os.writeString(type);
00634 __os.writeBool(newProcess);
00635 __os.endWriteEncaps();
00636 __result.__send(true);
00637 }
00638 catch(Ice.LocalException __ex)
00639 {
00640 __result.__exceptionAsync(__ex);
00641 }
00642 return __result;
00643 }
00644
00645 public UnmanagedComponentPrx end_newUnmanagedComponent(Ice.AsyncResult __result)
00646 throws cast.ComponentCreationException
00647 {
00648 Ice.AsyncResult.__check(__result, this, __newUnmanagedComponent_name);
00649 if(!__result.__wait())
00650 {
00651 try
00652 {
00653 __result.__throwUserException();
00654 }
00655 catch(cast.ComponentCreationException __ex)
00656 {
00657 throw __ex;
00658 }
00659 catch(Ice.UserException __ex)
00660 {
00661 throw new Ice.UnknownUserException(__ex.ice_name());
00662 }
00663 }
00664 UnmanagedComponentPrx __ret;
00665 IceInternal.BasicStream __is = __result.__is();
00666 __is.startReadEncaps();
00667 __ret = UnmanagedComponentPrxHelper.__read(__is);
00668 __is.endReadEncaps();
00669 return __ret;
00670 }
00671
00672 public WorkingMemoryPrx
00673 newWorkingMemory(String id, String type, boolean newProcess)
00674 throws cast.ComponentCreationException
00675 {
00676 return newWorkingMemory(id, type, newProcess, null, false);
00677 }
00678
00679 public WorkingMemoryPrx
00680 newWorkingMemory(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx)
00681 throws cast.ComponentCreationException
00682 {
00683 return newWorkingMemory(id, type, newProcess, __ctx, true);
00684 }
00685
00686 private WorkingMemoryPrx
00687 newWorkingMemory(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00688 throws cast.ComponentCreationException
00689 {
00690 if(__explicitCtx && __ctx == null)
00691 {
00692 __ctx = _emptyContext;
00693 }
00694 int __cnt = 0;
00695 while(true)
00696 {
00697 Ice._ObjectDel __delBase = null;
00698 try
00699 {
00700 __checkTwowayOnly("newWorkingMemory");
00701 __delBase = __getDelegate(false);
00702 _ComponentFactoryDel __del = (_ComponentFactoryDel)__delBase;
00703 return __del.newWorkingMemory(id, type, newProcess, __ctx);
00704 }
00705 catch(IceInternal.LocalExceptionWrapper __ex)
00706 {
00707 __handleExceptionWrapper(__delBase, __ex);
00708 }
00709 catch(Ice.LocalException __ex)
00710 {
00711 __cnt = __handleException(__delBase, __ex, null, __cnt);
00712 }
00713 }
00714 }
00715
00716 private static final String __newWorkingMemory_name = "newWorkingMemory";
00717
00718 public Ice.AsyncResult begin_newWorkingMemory(String id, String type, boolean newProcess)
00719 {
00720 return begin_newWorkingMemory(id, type, newProcess, null, false, null);
00721 }
00722
00723 public Ice.AsyncResult begin_newWorkingMemory(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx)
00724 {
00725 return begin_newWorkingMemory(id, type, newProcess, __ctx, true, null);
00726 }
00727
00728 public Ice.AsyncResult begin_newWorkingMemory(String id, String type, boolean newProcess, Ice.Callback __cb)
00729 {
00730 return begin_newWorkingMemory(id, type, newProcess, null, false, __cb);
00731 }
00732
00733 public Ice.AsyncResult begin_newWorkingMemory(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00734 {
00735 return begin_newWorkingMemory(id, type, newProcess, __ctx, true, __cb);
00736 }
00737
00738 public Ice.AsyncResult begin_newWorkingMemory(String id, String type, boolean newProcess, Callback_ComponentFactory_newWorkingMemory __cb)
00739 {
00740 return begin_newWorkingMemory(id, type, newProcess, null, false, __cb);
00741 }
00742
00743 public Ice.AsyncResult begin_newWorkingMemory(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, Callback_ComponentFactory_newWorkingMemory __cb)
00744 {
00745 return begin_newWorkingMemory(id, type, newProcess, __ctx, true, __cb);
00746 }
00747
00748 private Ice.AsyncResult begin_newWorkingMemory(String id, String type, boolean newProcess, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00749 {
00750 __checkAsyncTwowayOnly(__newWorkingMemory_name);
00751 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __newWorkingMemory_name, __cb);
00752 try
00753 {
00754 __result.__prepare(__newWorkingMemory_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00755 IceInternal.BasicStream __os = __result.__os();
00756 __os.writeString(id);
00757 __os.writeString(type);
00758 __os.writeBool(newProcess);
00759 __os.endWriteEncaps();
00760 __result.__send(true);
00761 }
00762 catch(Ice.LocalException __ex)
00763 {
00764 __result.__exceptionAsync(__ex);
00765 }
00766 return __result;
00767 }
00768
00769 public WorkingMemoryPrx end_newWorkingMemory(Ice.AsyncResult __result)
00770 throws cast.ComponentCreationException
00771 {
00772 Ice.AsyncResult.__check(__result, this, __newWorkingMemory_name);
00773 if(!__result.__wait())
00774 {
00775 try
00776 {
00777 __result.__throwUserException();
00778 }
00779 catch(cast.ComponentCreationException __ex)
00780 {
00781 throw __ex;
00782 }
00783 catch(Ice.UserException __ex)
00784 {
00785 throw new Ice.UnknownUserException(__ex.ice_name());
00786 }
00787 }
00788 WorkingMemoryPrx __ret;
00789 IceInternal.BasicStream __is = __result.__is();
00790 __is.startReadEncaps();
00791 __ret = WorkingMemoryPrxHelper.__read(__is);
00792 __is.endReadEncaps();
00793 return __ret;
00794 }
00795
00796 public static ComponentFactoryPrx
00797 checkedCast(Ice.ObjectPrx __obj)
00798 {
00799 ComponentFactoryPrx __d = null;
00800 if(__obj != null)
00801 {
00802 try
00803 {
00804 __d = (ComponentFactoryPrx)__obj;
00805 }
00806 catch(ClassCastException ex)
00807 {
00808 if(__obj.ice_isA("::cast::interfaces::ComponentFactory"))
00809 {
00810 ComponentFactoryPrxHelper __h = new ComponentFactoryPrxHelper();
00811 __h.__copyFrom(__obj);
00812 __d = __h;
00813 }
00814 }
00815 }
00816 return __d;
00817 }
00818
00819 public static ComponentFactoryPrx
00820 checkedCast(Ice.ObjectPrx __obj, java.util.Map<String, String> __ctx)
00821 {
00822 ComponentFactoryPrx __d = null;
00823 if(__obj != null)
00824 {
00825 try
00826 {
00827 __d = (ComponentFactoryPrx)__obj;
00828 }
00829 catch(ClassCastException ex)
00830 {
00831 if(__obj.ice_isA("::cast::interfaces::ComponentFactory", __ctx))
00832 {
00833 ComponentFactoryPrxHelper __h = new ComponentFactoryPrxHelper();
00834 __h.__copyFrom(__obj);
00835 __d = __h;
00836 }
00837 }
00838 }
00839 return __d;
00840 }
00841
00842 public static ComponentFactoryPrx
00843 checkedCast(Ice.ObjectPrx __obj, String __facet)
00844 {
00845 ComponentFactoryPrx __d = null;
00846 if(__obj != null)
00847 {
00848 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
00849 try
00850 {
00851 if(__bb.ice_isA("::cast::interfaces::ComponentFactory"))
00852 {
00853 ComponentFactoryPrxHelper __h = new ComponentFactoryPrxHelper();
00854 __h.__copyFrom(__bb);
00855 __d = __h;
00856 }
00857 }
00858 catch(Ice.FacetNotExistException ex)
00859 {
00860 }
00861 }
00862 return __d;
00863 }
00864
00865 public static ComponentFactoryPrx
00866 checkedCast(Ice.ObjectPrx __obj, String __facet, java.util.Map<String, String> __ctx)
00867 {
00868 ComponentFactoryPrx __d = null;
00869 if(__obj != null)
00870 {
00871 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
00872 try
00873 {
00874 if(__bb.ice_isA("::cast::interfaces::ComponentFactory", __ctx))
00875 {
00876 ComponentFactoryPrxHelper __h = new ComponentFactoryPrxHelper();
00877 __h.__copyFrom(__bb);
00878 __d = __h;
00879 }
00880 }
00881 catch(Ice.FacetNotExistException ex)
00882 {
00883 }
00884 }
00885 return __d;
00886 }
00887
00888 public static ComponentFactoryPrx
00889 uncheckedCast(Ice.ObjectPrx __obj)
00890 {
00891 ComponentFactoryPrx __d = null;
00892 if(__obj != null)
00893 {
00894 try
00895 {
00896 __d = (ComponentFactoryPrx)__obj;
00897 }
00898 catch(ClassCastException ex)
00899 {
00900 ComponentFactoryPrxHelper __h = new ComponentFactoryPrxHelper();
00901 __h.__copyFrom(__obj);
00902 __d = __h;
00903 }
00904 }
00905 return __d;
00906 }
00907
00908 public static ComponentFactoryPrx
00909 uncheckedCast(Ice.ObjectPrx __obj, String __facet)
00910 {
00911 ComponentFactoryPrx __d = null;
00912 if(__obj != null)
00913 {
00914 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
00915 ComponentFactoryPrxHelper __h = new ComponentFactoryPrxHelper();
00916 __h.__copyFrom(__bb);
00917 __d = __h;
00918 }
00919 return __d;
00920 }
00921
00922 protected Ice._ObjectDelM
00923 __createDelegateM()
00924 {
00925 return new _ComponentFactoryDelM();
00926 }
00927
00928 protected Ice._ObjectDelD
00929 __createDelegateD()
00930 {
00931 return new _ComponentFactoryDelD();
00932 }
00933
00934 public static void
00935 __write(IceInternal.BasicStream __os, ComponentFactoryPrx v)
00936 {
00937 __os.writeProxy(v);
00938 }
00939
00940 public static ComponentFactoryPrx
00941 __read(IceInternal.BasicStream __is)
00942 {
00943 Ice.ObjectPrx proxy = __is.readProxy();
00944 if(proxy != null)
00945 {
00946 ComponentFactoryPrxHelper result = new ComponentFactoryPrxHelper();
00947 result.__copyFrom(proxy);
00948 return result;
00949 }
00950 return null;
00951 }
00952
00953 public static void
00954 write(Ice.OutputStream __outS, ComponentFactoryPrx v)
00955 {
00956 __outS.writeProxy(v);
00957 }
00958
00959 public static ComponentFactoryPrx
00960 read(Ice.InputStream __inS)
00961 {
00962 Ice.ObjectPrx proxy = __inS.readProxy();
00963 if(proxy != null)
00964 {
00965 ComponentFactoryPrxHelper result = new ComponentFactoryPrxHelper();
00966 result.__copyFrom(proxy);
00967 return result;
00968 }
00969 return null;
00970 }
00971 }