| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package LqnCore.impl; |
| 8 | |
| 9 | import LqnCore.LqnCorePackage; |
| 10 | import LqnCore.ResultGeneralType; |
| 11 | import LqnCore.ValidType; |
| 12 | |
| 13 | import org.eclipse.emf.common.notify.Notification; |
| 14 | |
| 15 | import org.eclipse.emf.ecore.EClass; |
| 16 | |
| 17 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| 18 | import org.eclipse.emf.ecore.impl.EObjectImpl; |
| 19 | |
| 20 | /** |
| 21 | * <!-- begin-user-doc --> |
| 22 | * An implementation of the model object '<em><b>Result General Type</b></em>'. |
| 23 | * <!-- end-user-doc --> |
| 24 | * <p> |
| 25 | * The following features are implemented: |
| 26 | * <ul> |
| 27 | * <li>{@link LqnCore.impl.ResultGeneralTypeImpl#getConvVal <em>Conv Val</em>}</li> |
| 28 | * <li>{@link LqnCore.impl.ResultGeneralTypeImpl#getElapsedTime <em>Elapsed Time</em>}</li> |
| 29 | * <li>{@link LqnCore.impl.ResultGeneralTypeImpl#getIterations <em>Iterations</em>}</li> |
| 30 | * <li>{@link LqnCore.impl.ResultGeneralTypeImpl#getPlatformInfo <em>Platform Info</em>}</li> |
| 31 | * <li>{@link LqnCore.impl.ResultGeneralTypeImpl#getSolverInfo <em>Solver Info</em>}</li> |
| 32 | * <li>{@link LqnCore.impl.ResultGeneralTypeImpl#getSystemCpuTime <em>System Cpu Time</em>}</li> |
| 33 | * <li>{@link LqnCore.impl.ResultGeneralTypeImpl#getUserCpuTime <em>User Cpu Time</em>}</li> |
| 34 | * <li>{@link LqnCore.impl.ResultGeneralTypeImpl#getValid <em>Valid</em>}</li> |
| 35 | * </ul> |
| 36 | * </p> |
| 37 | * |
| 38 | * @generated |
| 39 | */ |
| 40 | public class ResultGeneralTypeImpl extends EObjectImpl implements ResultGeneralType { |
| 41 | /** |
| 42 | * The default value of the '{@link #getConvVal() <em>Conv Val</em>}' attribute. |
| 43 | * <!-- begin-user-doc --> |
| 44 | * <!-- end-user-doc --> |
| 45 | * @see #getConvVal() |
| 46 | * @generated |
| 47 | * @ordered |
| 48 | */ |
| 49 | protected static final Object CONV_VAL_EDEFAULT = null; |
| 50 | |
| 51 | /** |
| 52 | * The cached value of the '{@link #getConvVal() <em>Conv Val</em>}' attribute. |
| 53 | * <!-- begin-user-doc --> |
| 54 | * <!-- end-user-doc --> |
| 55 | * @see #getConvVal() |
| 56 | * @generated |
| 57 | * @ordered |
| 58 | */ |
| 59 | protected Object convVal = CONV_VAL_EDEFAULT; |
| 60 | |
| 61 | /** |
| 62 | * The default value of the '{@link #getElapsedTime() <em>Elapsed Time</em>}' attribute. |
| 63 | * <!-- begin-user-doc --> |
| 64 | * <!-- end-user-doc --> |
| 65 | * @see #getElapsedTime() |
| 66 | * @generated |
| 67 | * @ordered |
| 68 | */ |
| 69 | protected static final String ELAPSED_TIME_EDEFAULT = null; |
| 70 | |
| 71 | /** |
| 72 | * The cached value of the '{@link #getElapsedTime() <em>Elapsed Time</em>}' attribute. |
| 73 | * <!-- begin-user-doc --> |
| 74 | * <!-- end-user-doc --> |
| 75 | * @see #getElapsedTime() |
| 76 | * @generated |
| 77 | * @ordered |
| 78 | */ |
| 79 | protected String elapsedTime = ELAPSED_TIME_EDEFAULT; |
| 80 | |
| 81 | /** |
| 82 | * The default value of the '{@link #getIterations() <em>Iterations</em>}' attribute. |
| 83 | * <!-- begin-user-doc --> |
| 84 | * <!-- end-user-doc --> |
| 85 | * @see #getIterations() |
| 86 | * @generated |
| 87 | * @ordered |
| 88 | */ |
| 89 | protected static final Object ITERATIONS_EDEFAULT = null; |
| 90 | |
| 91 | /** |
| 92 | * The cached value of the '{@link #getIterations() <em>Iterations</em>}' attribute. |
| 93 | * <!-- begin-user-doc --> |
| 94 | * <!-- end-user-doc --> |
| 95 | * @see #getIterations() |
| 96 | * @generated |
| 97 | * @ordered |
| 98 | */ |
| 99 | protected Object iterations = ITERATIONS_EDEFAULT; |
| 100 | |
| 101 | /** |
| 102 | * The default value of the '{@link #getPlatformInfo() <em>Platform Info</em>}' attribute. |
| 103 | * <!-- begin-user-doc --> |
| 104 | * <!-- end-user-doc --> |
| 105 | * @see #getPlatformInfo() |
| 106 | * @generated |
| 107 | * @ordered |
| 108 | */ |
| 109 | protected static final String PLATFORM_INFO_EDEFAULT = null; |
| 110 | |
| 111 | /** |
| 112 | * The cached value of the '{@link #getPlatformInfo() <em>Platform Info</em>}' attribute. |
| 113 | * <!-- begin-user-doc --> |
| 114 | * <!-- end-user-doc --> |
| 115 | * @see #getPlatformInfo() |
| 116 | * @generated |
| 117 | * @ordered |
| 118 | */ |
| 119 | protected String platformInfo = PLATFORM_INFO_EDEFAULT; |
| 120 | |
| 121 | /** |
| 122 | * The default value of the '{@link #getSolverInfo() <em>Solver Info</em>}' attribute. |
| 123 | * <!-- begin-user-doc --> |
| 124 | * <!-- end-user-doc --> |
| 125 | * @see #getSolverInfo() |
| 126 | * @generated |
| 127 | * @ordered |
| 128 | */ |
| 129 | protected static final String SOLVER_INFO_EDEFAULT = null; |
| 130 | |
| 131 | /** |
| 132 | * The cached value of the '{@link #getSolverInfo() <em>Solver Info</em>}' attribute. |
| 133 | * <!-- begin-user-doc --> |
| 134 | * <!-- end-user-doc --> |
| 135 | * @see #getSolverInfo() |
| 136 | * @generated |
| 137 | * @ordered |
| 138 | */ |
| 139 | protected String solverInfo = SOLVER_INFO_EDEFAULT; |
| 140 | |
| 141 | /** |
| 142 | * The default value of the '{@link #getSystemCpuTime() <em>System Cpu Time</em>}' attribute. |
| 143 | * <!-- begin-user-doc --> |
| 144 | * <!-- end-user-doc --> |
| 145 | * @see #getSystemCpuTime() |
| 146 | * @generated |
| 147 | * @ordered |
| 148 | */ |
| 149 | protected static final String SYSTEM_CPU_TIME_EDEFAULT = null; |
| 150 | |
| 151 | /** |
| 152 | * The cached value of the '{@link #getSystemCpuTime() <em>System Cpu Time</em>}' attribute. |
| 153 | * <!-- begin-user-doc --> |
| 154 | * <!-- end-user-doc --> |
| 155 | * @see #getSystemCpuTime() |
| 156 | * @generated |
| 157 | * @ordered |
| 158 | */ |
| 159 | protected String systemCpuTime = SYSTEM_CPU_TIME_EDEFAULT; |
| 160 | |
| 161 | /** |
| 162 | * The default value of the '{@link #getUserCpuTime() <em>User Cpu Time</em>}' attribute. |
| 163 | * <!-- begin-user-doc --> |
| 164 | * <!-- end-user-doc --> |
| 165 | * @see #getUserCpuTime() |
| 166 | * @generated |
| 167 | * @ordered |
| 168 | */ |
| 169 | protected static final String USER_CPU_TIME_EDEFAULT = null; |
| 170 | |
| 171 | /** |
| 172 | * The cached value of the '{@link #getUserCpuTime() <em>User Cpu Time</em>}' attribute. |
| 173 | * <!-- begin-user-doc --> |
| 174 | * <!-- end-user-doc --> |
| 175 | * @see #getUserCpuTime() |
| 176 | * @generated |
| 177 | * @ordered |
| 178 | */ |
| 179 | protected String userCpuTime = USER_CPU_TIME_EDEFAULT; |
| 180 | |
| 181 | /** |
| 182 | * The default value of the '{@link #getValid() <em>Valid</em>}' attribute. |
| 183 | * <!-- begin-user-doc --> |
| 184 | * <!-- end-user-doc --> |
| 185 | * @see #getValid() |
| 186 | * @generated |
| 187 | * @ordered |
| 188 | */ |
| 189 | protected static final ValidType VALID_EDEFAULT = ValidType.YES; |
| 190 | |
| 191 | /** |
| 192 | * The cached value of the '{@link #getValid() <em>Valid</em>}' attribute. |
| 193 | * <!-- begin-user-doc --> |
| 194 | * <!-- end-user-doc --> |
| 195 | * @see #getValid() |
| 196 | * @generated |
| 197 | * @ordered |
| 198 | */ |
| 199 | protected ValidType valid = VALID_EDEFAULT; |
| 200 | |
| 201 | /** |
| 202 | * This is true if the Valid attribute has been set. |
| 203 | * <!-- begin-user-doc --> |
| 204 | * <!-- end-user-doc --> |
| 205 | * @generated |
| 206 | * @ordered |
| 207 | */ |
| 208 | protected boolean validESet; |
| 209 | |
| 210 | /** |
| 211 | * <!-- begin-user-doc --> |
| 212 | * <!-- end-user-doc --> |
| 213 | * @generated |
| 214 | */ |
| 215 | protected ResultGeneralTypeImpl() { |
| 216 | super(); |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * <!-- begin-user-doc --> |
| 221 | * <!-- end-user-doc --> |
| 222 | * @generated |
| 223 | */ |
| 224 | @Override |
| 225 | protected EClass eStaticClass() { |
| 226 | return LqnCorePackage.Literals.RESULT_GENERAL_TYPE; |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * <!-- begin-user-doc --> |
| 231 | * <!-- end-user-doc --> |
| 232 | * @generated |
| 233 | */ |
| 234 | public Object getConvVal() { |
| 235 | return convVal; |
| 236 | } |
| 237 | |
| 238 | /** |
| 239 | * <!-- begin-user-doc --> |
| 240 | * <!-- end-user-doc --> |
| 241 | * @generated |
| 242 | */ |
| 243 | public void setConvVal(Object newConvVal) { |
| 244 | Object oldConvVal = convVal; |
| 245 | convVal = newConvVal; |
| 246 | if (eNotificationRequired()) |
| 247 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.RESULT_GENERAL_TYPE__CONV_VAL, oldConvVal, convVal)); |
| 248 | } |
| 249 | |
| 250 | /** |
| 251 | * <!-- begin-user-doc --> |
| 252 | * <!-- end-user-doc --> |
| 253 | * @generated |
| 254 | */ |
| 255 | public String getElapsedTime() { |
| 256 | return elapsedTime; |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * <!-- begin-user-doc --> |
| 261 | * <!-- end-user-doc --> |
| 262 | * @generated |
| 263 | */ |
| 264 | public void setElapsedTime(String newElapsedTime) { |
| 265 | String oldElapsedTime = elapsedTime; |
| 266 | elapsedTime = newElapsedTime; |
| 267 | if (eNotificationRequired()) |
| 268 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.RESULT_GENERAL_TYPE__ELAPSED_TIME, oldElapsedTime, elapsedTime)); |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * <!-- begin-user-doc --> |
| 273 | * <!-- end-user-doc --> |
| 274 | * @generated |
| 275 | */ |
| 276 | public Object getIterations() { |
| 277 | return iterations; |
| 278 | } |
| 279 | |
| 280 | /** |
| 281 | * <!-- begin-user-doc --> |
| 282 | * <!-- end-user-doc --> |
| 283 | * @generated |
| 284 | */ |
| 285 | public void setIterations(Object newIterations) { |
| 286 | Object oldIterations = iterations; |
| 287 | iterations = newIterations; |
| 288 | if (eNotificationRequired()) |
| 289 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.RESULT_GENERAL_TYPE__ITERATIONS, oldIterations, iterations)); |
| 290 | } |
| 291 | |
| 292 | /** |
| 293 | * <!-- begin-user-doc --> |
| 294 | * <!-- end-user-doc --> |
| 295 | * @generated |
| 296 | */ |
| 297 | public String getPlatformInfo() { |
| 298 | return platformInfo; |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * <!-- begin-user-doc --> |
| 303 | * <!-- end-user-doc --> |
| 304 | * @generated |
| 305 | */ |
| 306 | public void setPlatformInfo(String newPlatformInfo) { |
| 307 | String oldPlatformInfo = platformInfo; |
| 308 | platformInfo = newPlatformInfo; |
| 309 | if (eNotificationRequired()) |
| 310 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.RESULT_GENERAL_TYPE__PLATFORM_INFO, oldPlatformInfo, platformInfo)); |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * <!-- begin-user-doc --> |
| 315 | * <!-- end-user-doc --> |
| 316 | * @generated |
| 317 | */ |
| 318 | public String getSolverInfo() { |
| 319 | return solverInfo; |
| 320 | } |
| 321 | |
| 322 | /** |
| 323 | * <!-- begin-user-doc --> |
| 324 | * <!-- end-user-doc --> |
| 325 | * @generated |
| 326 | */ |
| 327 | public void setSolverInfo(String newSolverInfo) { |
| 328 | String oldSolverInfo = solverInfo; |
| 329 | solverInfo = newSolverInfo; |
| 330 | if (eNotificationRequired()) |
| 331 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.RESULT_GENERAL_TYPE__SOLVER_INFO, oldSolverInfo, solverInfo)); |
| 332 | } |
| 333 | |
| 334 | /** |
| 335 | * <!-- begin-user-doc --> |
| 336 | * <!-- end-user-doc --> |
| 337 | * @generated |
| 338 | */ |
| 339 | public String getSystemCpuTime() { |
| 340 | return systemCpuTime; |
| 341 | } |
| 342 | |
| 343 | /** |
| 344 | * <!-- begin-user-doc --> |
| 345 | * <!-- end-user-doc --> |
| 346 | * @generated |
| 347 | */ |
| 348 | public void setSystemCpuTime(String newSystemCpuTime) { |
| 349 | String oldSystemCpuTime = systemCpuTime; |
| 350 | systemCpuTime = newSystemCpuTime; |
| 351 | if (eNotificationRequired()) |
| 352 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.RESULT_GENERAL_TYPE__SYSTEM_CPU_TIME, oldSystemCpuTime, systemCpuTime)); |
| 353 | } |
| 354 | |
| 355 | /** |
| 356 | * <!-- begin-user-doc --> |
| 357 | * <!-- end-user-doc --> |
| 358 | * @generated |
| 359 | */ |
| 360 | public String getUserCpuTime() { |
| 361 | return userCpuTime; |
| 362 | } |
| 363 | |
| 364 | /** |
| 365 | * <!-- begin-user-doc --> |
| 366 | * <!-- end-user-doc --> |
| 367 | * @generated |
| 368 | */ |
| 369 | public void setUserCpuTime(String newUserCpuTime) { |
| 370 | String oldUserCpuTime = userCpuTime; |
| 371 | userCpuTime = newUserCpuTime; |
| 372 | if (eNotificationRequired()) |
| 373 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.RESULT_GENERAL_TYPE__USER_CPU_TIME, oldUserCpuTime, userCpuTime)); |
| 374 | } |
| 375 | |
| 376 | /** |
| 377 | * <!-- begin-user-doc --> |
| 378 | * <!-- end-user-doc --> |
| 379 | * @generated |
| 380 | */ |
| 381 | public ValidType getValid() { |
| 382 | return valid; |
| 383 | } |
| 384 | |
| 385 | /** |
| 386 | * <!-- begin-user-doc --> |
| 387 | * <!-- end-user-doc --> |
| 388 | * @generated |
| 389 | */ |
| 390 | public void setValid(ValidType newValid) { |
| 391 | ValidType oldValid = valid; |
| 392 | valid = newValid == null ? VALID_EDEFAULT : newValid; |
| 393 | boolean oldValidESet = validESet; |
| 394 | validESet = true; |
| 395 | if (eNotificationRequired()) |
| 396 | eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.RESULT_GENERAL_TYPE__VALID, oldValid, valid, !oldValidESet)); |
| 397 | } |
| 398 | |
| 399 | /** |
| 400 | * <!-- begin-user-doc --> |
| 401 | * <!-- end-user-doc --> |
| 402 | * @generated |
| 403 | */ |
| 404 | public void unsetValid() { |
| 405 | ValidType oldValid = valid; |
| 406 | boolean oldValidESet = validESet; |
| 407 | valid = VALID_EDEFAULT; |
| 408 | validESet = false; |
| 409 | if (eNotificationRequired()) |
| 410 | eNotify(new ENotificationImpl(this, Notification.UNSET, LqnCorePackage.RESULT_GENERAL_TYPE__VALID, oldValid, VALID_EDEFAULT, oldValidESet)); |
| 411 | } |
| 412 | |
| 413 | /** |
| 414 | * <!-- begin-user-doc --> |
| 415 | * <!-- end-user-doc --> |
| 416 | * @generated |
| 417 | */ |
| 418 | public boolean isSetValid() { |
| 419 | return validESet; |
| 420 | } |
| 421 | |
| 422 | /** |
| 423 | * <!-- begin-user-doc --> |
| 424 | * <!-- end-user-doc --> |
| 425 | * @generated |
| 426 | */ |
| 427 | @Override |
| 428 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| 429 | switch (featureID) { |
| 430 | case LqnCorePackage.RESULT_GENERAL_TYPE__CONV_VAL: |
| 431 | return getConvVal(); |
| 432 | case LqnCorePackage.RESULT_GENERAL_TYPE__ELAPSED_TIME: |
| 433 | return getElapsedTime(); |
| 434 | case LqnCorePackage.RESULT_GENERAL_TYPE__ITERATIONS: |
| 435 | return getIterations(); |
| 436 | case LqnCorePackage.RESULT_GENERAL_TYPE__PLATFORM_INFO: |
| 437 | return getPlatformInfo(); |
| 438 | case LqnCorePackage.RESULT_GENERAL_TYPE__SOLVER_INFO: |
| 439 | return getSolverInfo(); |
| 440 | case LqnCorePackage.RESULT_GENERAL_TYPE__SYSTEM_CPU_TIME: |
| 441 | return getSystemCpuTime(); |
| 442 | case LqnCorePackage.RESULT_GENERAL_TYPE__USER_CPU_TIME: |
| 443 | return getUserCpuTime(); |
| 444 | case LqnCorePackage.RESULT_GENERAL_TYPE__VALID: |
| 445 | return getValid(); |
| 446 | } |
| 447 | return super.eGet(featureID, resolve, coreType); |
| 448 | } |
| 449 | |
| 450 | /** |
| 451 | * <!-- begin-user-doc --> |
| 452 | * <!-- end-user-doc --> |
| 453 | * @generated |
| 454 | */ |
| 455 | @Override |
| 456 | public void eSet(int featureID, Object newValue) { |
| 457 | switch (featureID) { |
| 458 | case LqnCorePackage.RESULT_GENERAL_TYPE__CONV_VAL: |
| 459 | setConvVal(newValue); |
| 460 | return; |
| 461 | case LqnCorePackage.RESULT_GENERAL_TYPE__ELAPSED_TIME: |
| 462 | setElapsedTime((String)newValue); |
| 463 | return; |
| 464 | case LqnCorePackage.RESULT_GENERAL_TYPE__ITERATIONS: |
| 465 | setIterations(newValue); |
| 466 | return; |
| 467 | case LqnCorePackage.RESULT_GENERAL_TYPE__PLATFORM_INFO: |
| 468 | setPlatformInfo((String)newValue); |
| 469 | return; |
| 470 | case LqnCorePackage.RESULT_GENERAL_TYPE__SOLVER_INFO: |
| 471 | setSolverInfo((String)newValue); |
| 472 | return; |
| 473 | case LqnCorePackage.RESULT_GENERAL_TYPE__SYSTEM_CPU_TIME: |
| 474 | setSystemCpuTime((String)newValue); |
| 475 | return; |
| 476 | case LqnCorePackage.RESULT_GENERAL_TYPE__USER_CPU_TIME: |
| 477 | setUserCpuTime((String)newValue); |
| 478 | return; |
| 479 | case LqnCorePackage.RESULT_GENERAL_TYPE__VALID: |
| 480 | setValid((ValidType)newValue); |
| 481 | return; |
| 482 | } |
| 483 | super.eSet(featureID, newValue); |
| 484 | } |
| 485 | |
| 486 | /** |
| 487 | * <!-- begin-user-doc --> |
| 488 | * <!-- end-user-doc --> |
| 489 | * @generated |
| 490 | */ |
| 491 | @Override |
| 492 | public void eUnset(int featureID) { |
| 493 | switch (featureID) { |
| 494 | case LqnCorePackage.RESULT_GENERAL_TYPE__CONV_VAL: |
| 495 | setConvVal(CONV_VAL_EDEFAULT); |
| 496 | return; |
| 497 | case LqnCorePackage.RESULT_GENERAL_TYPE__ELAPSED_TIME: |
| 498 | setElapsedTime(ELAPSED_TIME_EDEFAULT); |
| 499 | return; |
| 500 | case LqnCorePackage.RESULT_GENERAL_TYPE__ITERATIONS: |
| 501 | setIterations(ITERATIONS_EDEFAULT); |
| 502 | return; |
| 503 | case LqnCorePackage.RESULT_GENERAL_TYPE__PLATFORM_INFO: |
| 504 | setPlatformInfo(PLATFORM_INFO_EDEFAULT); |
| 505 | return; |
| 506 | case LqnCorePackage.RESULT_GENERAL_TYPE__SOLVER_INFO: |
| 507 | setSolverInfo(SOLVER_INFO_EDEFAULT); |
| 508 | return; |
| 509 | case LqnCorePackage.RESULT_GENERAL_TYPE__SYSTEM_CPU_TIME: |
| 510 | setSystemCpuTime(SYSTEM_CPU_TIME_EDEFAULT); |
| 511 | return; |
| 512 | case LqnCorePackage.RESULT_GENERAL_TYPE__USER_CPU_TIME: |
| 513 | setUserCpuTime(USER_CPU_TIME_EDEFAULT); |
| 514 | return; |
| 515 | case LqnCorePackage.RESULT_GENERAL_TYPE__VALID: |
| 516 | unsetValid(); |
| 517 | return; |
| 518 | } |
| 519 | super.eUnset(featureID); |
| 520 | } |
| 521 | |
| 522 | /** |
| 523 | * <!-- begin-user-doc --> |
| 524 | * <!-- end-user-doc --> |
| 525 | * @generated |
| 526 | */ |
| 527 | @Override |
| 528 | public boolean eIsSet(int featureID) { |
| 529 | switch (featureID) { |
| 530 | case LqnCorePackage.RESULT_GENERAL_TYPE__CONV_VAL: |
| 531 | return CONV_VAL_EDEFAULT == null ? convVal != null : !CONV_VAL_EDEFAULT.equals(convVal); |
| 532 | case LqnCorePackage.RESULT_GENERAL_TYPE__ELAPSED_TIME: |
| 533 | return ELAPSED_TIME_EDEFAULT == null ? elapsedTime != null : !ELAPSED_TIME_EDEFAULT.equals(elapsedTime); |
| 534 | case LqnCorePackage.RESULT_GENERAL_TYPE__ITERATIONS: |
| 535 | return ITERATIONS_EDEFAULT == null ? iterations != null : !ITERATIONS_EDEFAULT.equals(iterations); |
| 536 | case LqnCorePackage.RESULT_GENERAL_TYPE__PLATFORM_INFO: |
| 537 | return PLATFORM_INFO_EDEFAULT == null ? platformInfo != null : !PLATFORM_INFO_EDEFAULT.equals(platformInfo); |
| 538 | case LqnCorePackage.RESULT_GENERAL_TYPE__SOLVER_INFO: |
| 539 | return SOLVER_INFO_EDEFAULT == null ? solverInfo != null : !SOLVER_INFO_EDEFAULT.equals(solverInfo); |
| 540 | case LqnCorePackage.RESULT_GENERAL_TYPE__SYSTEM_CPU_TIME: |
| 541 | return SYSTEM_CPU_TIME_EDEFAULT == null ? systemCpuTime != null : !SYSTEM_CPU_TIME_EDEFAULT.equals(systemCpuTime); |
| 542 | case LqnCorePackage.RESULT_GENERAL_TYPE__USER_CPU_TIME: |
| 543 | return USER_CPU_TIME_EDEFAULT == null ? userCpuTime != null : !USER_CPU_TIME_EDEFAULT.equals(userCpuTime); |
| 544 | case LqnCorePackage.RESULT_GENERAL_TYPE__VALID: |
| 545 | return isSetValid(); |
| 546 | } |
| 547 | return super.eIsSet(featureID); |
| 548 | } |
| 549 | |
| 550 | /** |
| 551 | * <!-- begin-user-doc --> |
| 552 | * <!-- end-user-doc --> |
| 553 | * @generated |
| 554 | */ |
| 555 | @Override |
| 556 | public String toString() { |
| 557 | if (eIsProxy()) return super.toString(); |
| 558 | |
| 559 | StringBuffer result = new StringBuffer(super.toString()); |
| 560 | result.append(" (convVal: "); |
| 561 | result.append(convVal); |
| 562 | result.append(", elapsedTime: "); |
| 563 | result.append(elapsedTime); |
| 564 | result.append(", iterations: "); |
| 565 | result.append(iterations); |
| 566 | result.append(", platformInfo: "); |
| 567 | result.append(platformInfo); |
| 568 | result.append(", solverInfo: "); |
| 569 | result.append(solverInfo); |
| 570 | result.append(", systemCpuTime: "); |
| 571 | result.append(systemCpuTime); |
| 572 | result.append(", userCpuTime: "); |
| 573 | result.append(userCpuTime); |
| 574 | result.append(", valid: "); |
| 575 | if (validESet) result.append(valid); else result.append("<unset>"); |
| 576 | result.append(')'); |
| 577 | return result.toString(); |
| 578 | } |
| 579 | |
| 580 | } //ResultGeneralTypeImpl |