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 _ComponentFactoryDisp extends Ice.ObjectImpl implements ComponentFactory
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::ComponentFactory"
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
00083 public final String
00084 getVersionString()
00085 {
00086 return getVersionString(null);
00087 }
00088
00089 public final CASTComponentPrx
00090 newComponent(String id, String type, boolean newProcess)
00091 throws cast.ComponentCreationException
00092 {
00093 return newComponent(id, type, newProcess, null);
00094 }
00095
00096 public final ManagedComponentPrx
00097 newManagedComponent(String id, String type, boolean newProcess)
00098 throws cast.ComponentCreationException
00099 {
00100 return newManagedComponent(id, type, newProcess, null);
00101 }
00102
00103 public final TaskManagerPrx
00104 newTaskManager(String id, String type, boolean newProcess)
00105 throws cast.ComponentCreationException
00106 {
00107 return newTaskManager(id, type, newProcess, null);
00108 }
00109
00110 public final UnmanagedComponentPrx
00111 newUnmanagedComponent(String id, String type, boolean newProcess)
00112 throws cast.ComponentCreationException
00113 {
00114 return newUnmanagedComponent(id, type, newProcess, null);
00115 }
00116
00117 public final WorkingMemoryPrx
00118 newWorkingMemory(String id, String type, boolean newProcess)
00119 throws cast.ComponentCreationException
00120 {
00121 return newWorkingMemory(id, type, newProcess, null);
00122 }
00123
00124 public static Ice.DispatchStatus
00125 ___newComponent(ComponentFactory __obj, IceInternal.Incoming __inS, Ice.Current __current)
00126 {
00127 __checkMode(Ice.OperationMode.Normal, __current.mode);
00128 IceInternal.BasicStream __is = __inS.is();
00129 __is.startReadEncaps();
00130 String id;
00131 id = __is.readString();
00132 String type;
00133 type = __is.readString();
00134 boolean newProcess;
00135 newProcess = __is.readBool();
00136 __is.endReadEncaps();
00137 IceInternal.BasicStream __os = __inS.os();
00138 try
00139 {
00140 CASTComponentPrx __ret = __obj.newComponent(id, type, newProcess, __current);
00141 CASTComponentPrxHelper.__write(__os, __ret);
00142 return Ice.DispatchStatus.DispatchOK;
00143 }
00144 catch(cast.ComponentCreationException ex)
00145 {
00146 __os.writeUserException(ex);
00147 return Ice.DispatchStatus.DispatchUserException;
00148 }
00149 }
00150
00151 public static Ice.DispatchStatus
00152 ___newManagedComponent(ComponentFactory __obj, IceInternal.Incoming __inS, Ice.Current __current)
00153 {
00154 __checkMode(Ice.OperationMode.Normal, __current.mode);
00155 IceInternal.BasicStream __is = __inS.is();
00156 __is.startReadEncaps();
00157 String id;
00158 id = __is.readString();
00159 String type;
00160 type = __is.readString();
00161 boolean newProcess;
00162 newProcess = __is.readBool();
00163 __is.endReadEncaps();
00164 IceInternal.BasicStream __os = __inS.os();
00165 try
00166 {
00167 ManagedComponentPrx __ret = __obj.newManagedComponent(id, type, newProcess, __current);
00168 ManagedComponentPrxHelper.__write(__os, __ret);
00169 return Ice.DispatchStatus.DispatchOK;
00170 }
00171 catch(cast.ComponentCreationException ex)
00172 {
00173 __os.writeUserException(ex);
00174 return Ice.DispatchStatus.DispatchUserException;
00175 }
00176 }
00177
00178 public static Ice.DispatchStatus
00179 ___newUnmanagedComponent(ComponentFactory __obj, IceInternal.Incoming __inS, Ice.Current __current)
00180 {
00181 __checkMode(Ice.OperationMode.Normal, __current.mode);
00182 IceInternal.BasicStream __is = __inS.is();
00183 __is.startReadEncaps();
00184 String id;
00185 id = __is.readString();
00186 String type;
00187 type = __is.readString();
00188 boolean newProcess;
00189 newProcess = __is.readBool();
00190 __is.endReadEncaps();
00191 IceInternal.BasicStream __os = __inS.os();
00192 try
00193 {
00194 UnmanagedComponentPrx __ret = __obj.newUnmanagedComponent(id, type, newProcess, __current);
00195 UnmanagedComponentPrxHelper.__write(__os, __ret);
00196 return Ice.DispatchStatus.DispatchOK;
00197 }
00198 catch(cast.ComponentCreationException ex)
00199 {
00200 __os.writeUserException(ex);
00201 return Ice.DispatchStatus.DispatchUserException;
00202 }
00203 }
00204
00205 public static Ice.DispatchStatus
00206 ___newWorkingMemory(ComponentFactory __obj, IceInternal.Incoming __inS, Ice.Current __current)
00207 {
00208 __checkMode(Ice.OperationMode.Normal, __current.mode);
00209 IceInternal.BasicStream __is = __inS.is();
00210 __is.startReadEncaps();
00211 String id;
00212 id = __is.readString();
00213 String type;
00214 type = __is.readString();
00215 boolean newProcess;
00216 newProcess = __is.readBool();
00217 __is.endReadEncaps();
00218 IceInternal.BasicStream __os = __inS.os();
00219 try
00220 {
00221 WorkingMemoryPrx __ret = __obj.newWorkingMemory(id, type, newProcess, __current);
00222 WorkingMemoryPrxHelper.__write(__os, __ret);
00223 return Ice.DispatchStatus.DispatchOK;
00224 }
00225 catch(cast.ComponentCreationException ex)
00226 {
00227 __os.writeUserException(ex);
00228 return Ice.DispatchStatus.DispatchUserException;
00229 }
00230 }
00231
00232 public static Ice.DispatchStatus
00233 ___newTaskManager(ComponentFactory __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 String id;
00239 id = __is.readString();
00240 String type;
00241 type = __is.readString();
00242 boolean newProcess;
00243 newProcess = __is.readBool();
00244 __is.endReadEncaps();
00245 IceInternal.BasicStream __os = __inS.os();
00246 try
00247 {
00248 TaskManagerPrx __ret = __obj.newTaskManager(id, type, newProcess, __current);
00249 TaskManagerPrxHelper.__write(__os, __ret);
00250 return Ice.DispatchStatus.DispatchOK;
00251 }
00252 catch(cast.ComponentCreationException ex)
00253 {
00254 __os.writeUserException(ex);
00255 return Ice.DispatchStatus.DispatchUserException;
00256 }
00257 }
00258
00259 public static Ice.DispatchStatus
00260 ___getVersionString(ComponentFactory __obj, IceInternal.Incoming __inS, Ice.Current __current)
00261 {
00262 __checkMode(Ice.OperationMode.Normal, __current.mode);
00263 __inS.is().skipEmptyEncaps();
00264 IceInternal.BasicStream __os = __inS.os();
00265 String __ret = __obj.getVersionString(__current);
00266 __os.writeString(__ret);
00267 return Ice.DispatchStatus.DispatchOK;
00268 }
00269
00270 private final static String[] __all =
00271 {
00272 "getVersionString",
00273 "ice_id",
00274 "ice_ids",
00275 "ice_isA",
00276 "ice_ping",
00277 "newComponent",
00278 "newManagedComponent",
00279 "newTaskManager",
00280 "newUnmanagedComponent",
00281 "newWorkingMemory"
00282 };
00283
00284 public Ice.DispatchStatus
00285 __dispatch(IceInternal.Incoming in, Ice.Current __current)
00286 {
00287 int pos = java.util.Arrays.binarySearch(__all, __current.operation);
00288 if(pos < 0)
00289 {
00290 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00291 }
00292
00293 switch(pos)
00294 {
00295 case 0:
00296 {
00297 return ___getVersionString(this, in, __current);
00298 }
00299 case 1:
00300 {
00301 return ___ice_id(this, in, __current);
00302 }
00303 case 2:
00304 {
00305 return ___ice_ids(this, in, __current);
00306 }
00307 case 3:
00308 {
00309 return ___ice_isA(this, in, __current);
00310 }
00311 case 4:
00312 {
00313 return ___ice_ping(this, in, __current);
00314 }
00315 case 5:
00316 {
00317 return ___newComponent(this, in, __current);
00318 }
00319 case 6:
00320 {
00321 return ___newManagedComponent(this, in, __current);
00322 }
00323 case 7:
00324 {
00325 return ___newTaskManager(this, in, __current);
00326 }
00327 case 8:
00328 {
00329 return ___newUnmanagedComponent(this, in, __current);
00330 }
00331 case 9:
00332 {
00333 return ___newWorkingMemory(this, in, __current);
00334 }
00335 }
00336
00337 assert(false);
00338 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00339 }
00340
00341 public void
00342 __write(IceInternal.BasicStream __os)
00343 {
00344 __os.writeTypeId(ice_staticId());
00345 __os.startWriteSlice();
00346 __os.endWriteSlice();
00347 super.__write(__os);
00348 }
00349
00350 public void
00351 __read(IceInternal.BasicStream __is, boolean __rid)
00352 {
00353 if(__rid)
00354 {
00355 __is.readTypeId();
00356 }
00357 __is.startReadSlice();
00358 __is.endReadSlice();
00359 super.__read(__is, true);
00360 }
00361
00362 public void
00363 __write(Ice.OutputStream __outS)
00364 {
00365 __outS.writeTypeId(ice_staticId());
00366 __outS.startSlice();
00367 __outS.endSlice();
00368 super.__write(__outS);
00369 }
00370
00371 public void
00372 __read(Ice.InputStream __inS, boolean __rid)
00373 {
00374 if(__rid)
00375 {
00376 __inS.readTypeId();
00377 }
00378 __inS.startSlice();
00379 __inS.endSlice();
00380 super.__read(__inS, true);
00381 }
00382 }