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
00026 public abstract class _TimeServerDisp extends Ice.ObjectImpl implements TimeServer
00027 {
00028 protected void
00029 ice_copyStateFrom(Ice.Object __obj)
00030 throws java.lang.CloneNotSupportedException
00031 {
00032 throw new java.lang.CloneNotSupportedException();
00033 }
00034
00035 public static final String[] __ids =
00036 {
00037 "::Ice::Object",
00038 "::cast::interfaces::TimeServer"
00039 };
00040
00041 public boolean
00042 ice_isA(String s)
00043 {
00044 return java.util.Arrays.binarySearch(__ids, s) >= 0;
00045 }
00046
00047 public boolean
00048 ice_isA(String s, Ice.Current __current)
00049 {
00050 return java.util.Arrays.binarySearch(__ids, s) >= 0;
00051 }
00052
00053 public String[]
00054 ice_ids()
00055 {
00056 return __ids;
00057 }
00058
00059 public String[]
00060 ice_ids(Ice.Current __current)
00061 {
00062 return __ids;
00063 }
00064
00065 public String
00066 ice_id()
00067 {
00068 return __ids[1];
00069 }
00070
00071 public String
00072 ice_id(Ice.Current __current)
00073 {
00074 return __ids[1];
00075 }
00076
00077 public static String
00078 ice_staticId()
00079 {
00080 return __ids[1];
00081 }
00082
00086 public final cast.cdl.CASTTime
00087 fromTimeOfDay(long secs, long usecs)
00088 {
00089 return fromTimeOfDay(secs, usecs, null);
00090 }
00091
00095 public final cast.cdl.CASTTime
00096 fromTimeOfDayDouble(double todsecs)
00097 {
00098 return fromTimeOfDayDouble(todsecs, null);
00099 }
00100
00101 public final cast.cdl.CASTTime
00102 getCASTTime()
00103 {
00104 return getCASTTime(null);
00105 }
00106
00110 public final void
00111 reset()
00112 {
00113 reset(null);
00114 }
00115
00116 public static Ice.DispatchStatus
00117 ___getCASTTime(TimeServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
00118 {
00119 __checkMode(Ice.OperationMode.Normal, __current.mode);
00120 __inS.is().skipEmptyEncaps();
00121 IceInternal.BasicStream __os = __inS.os();
00122 cast.cdl.CASTTime __ret = __obj.getCASTTime(__current);
00123 __ret.__write(__os);
00124 return Ice.DispatchStatus.DispatchOK;
00125 }
00126
00127 public static Ice.DispatchStatus
00128 ___fromTimeOfDayDouble(TimeServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
00129 {
00130 __checkMode(Ice.OperationMode.Normal, __current.mode);
00131 IceInternal.BasicStream __is = __inS.is();
00132 __is.startReadEncaps();
00133 double todsecs;
00134 todsecs = __is.readDouble();
00135 __is.endReadEncaps();
00136 IceInternal.BasicStream __os = __inS.os();
00137 cast.cdl.CASTTime __ret = __obj.fromTimeOfDayDouble(todsecs, __current);
00138 __ret.__write(__os);
00139 return Ice.DispatchStatus.DispatchOK;
00140 }
00141
00142 public static Ice.DispatchStatus
00143 ___fromTimeOfDay(TimeServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
00144 {
00145 __checkMode(Ice.OperationMode.Normal, __current.mode);
00146 IceInternal.BasicStream __is = __inS.is();
00147 __is.startReadEncaps();
00148 long secs;
00149 secs = __is.readLong();
00150 long usecs;
00151 usecs = __is.readLong();
00152 __is.endReadEncaps();
00153 IceInternal.BasicStream __os = __inS.os();
00154 cast.cdl.CASTTime __ret = __obj.fromTimeOfDay(secs, usecs, __current);
00155 __ret.__write(__os);
00156 return Ice.DispatchStatus.DispatchOK;
00157 }
00158
00159 public static Ice.DispatchStatus
00160 ___reset(TimeServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
00161 {
00162 __checkMode(Ice.OperationMode.Normal, __current.mode);
00163 __inS.is().skipEmptyEncaps();
00164 __obj.reset(__current);
00165 return Ice.DispatchStatus.DispatchOK;
00166 }
00167
00168 private final static String[] __all =
00169 {
00170 "fromTimeOfDay",
00171 "fromTimeOfDayDouble",
00172 "getCASTTime",
00173 "ice_id",
00174 "ice_ids",
00175 "ice_isA",
00176 "ice_ping",
00177 "reset"
00178 };
00179
00180 public Ice.DispatchStatus
00181 __dispatch(IceInternal.Incoming in, Ice.Current __current)
00182 {
00183 int pos = java.util.Arrays.binarySearch(__all, __current.operation);
00184 if(pos < 0)
00185 {
00186 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00187 }
00188
00189 switch(pos)
00190 {
00191 case 0:
00192 {
00193 return ___fromTimeOfDay(this, in, __current);
00194 }
00195 case 1:
00196 {
00197 return ___fromTimeOfDayDouble(this, in, __current);
00198 }
00199 case 2:
00200 {
00201 return ___getCASTTime(this, in, __current);
00202 }
00203 case 3:
00204 {
00205 return ___ice_id(this, in, __current);
00206 }
00207 case 4:
00208 {
00209 return ___ice_ids(this, in, __current);
00210 }
00211 case 5:
00212 {
00213 return ___ice_isA(this, in, __current);
00214 }
00215 case 6:
00216 {
00217 return ___ice_ping(this, in, __current);
00218 }
00219 case 7:
00220 {
00221 return ___reset(this, in, __current);
00222 }
00223 }
00224
00225 assert(false);
00226 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00227 }
00228
00229 public void
00230 __write(IceInternal.BasicStream __os)
00231 {
00232 __os.writeTypeId(ice_staticId());
00233 __os.startWriteSlice();
00234 __os.endWriteSlice();
00235 super.__write(__os);
00236 }
00237
00238 public void
00239 __read(IceInternal.BasicStream __is, boolean __rid)
00240 {
00241 if(__rid)
00242 {
00243 __is.readTypeId();
00244 }
00245 __is.startReadSlice();
00246 __is.endReadSlice();
00247 super.__read(__is, true);
00248 }
00249
00250 public void
00251 __write(Ice.OutputStream __outS)
00252 {
00253 __outS.writeTypeId(ice_staticId());
00254 __outS.startSlice();
00255 __outS.endSlice();
00256 super.__write(__outS);
00257 }
00258
00259 public void
00260 __read(Ice.InputStream __inS, boolean __rid)
00261 {
00262 if(__rid)
00263 {
00264 __inS.readTypeId();
00265 }
00266 __inS.startSlice();
00267 __inS.endSlice();
00268 super.__read(__inS, true);
00269 }
00270 }