| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package scheduler.configuration.util; |
| 8 | |
| 9 | import de.uka.ipd.sdq.identifier.Identifier; |
| 10 | |
| 11 | import org.eclipse.emf.common.notify.Adapter; |
| 12 | import org.eclipse.emf.common.notify.Notifier; |
| 13 | |
| 14 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| 15 | |
| 16 | import org.eclipse.emf.ecore.EObject; |
| 17 | |
| 18 | import scheduler.configuration.*; |
| 19 | |
| 20 | /** |
| 21 | * <!-- begin-user-doc --> |
| 22 | * The <b>Adapter Factory</b> for the model. |
| 23 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
| 24 | * <!-- end-user-doc --> |
| 25 | * @see scheduler.configuration.ConfigurationPackage |
| 26 | * @generated |
| 27 | */ |
| 28 | public class ConfigurationAdapterFactory extends AdapterFactoryImpl { |
| 29 | /** |
| 30 | * The cached model package. |
| 31 | * <!-- begin-user-doc --> |
| 32 | * <!-- end-user-doc --> |
| 33 | * @generated |
| 34 | */ |
| 35 | protected static ConfigurationPackage modelPackage; |
| 36 | |
| 37 | /** |
| 38 | * Creates an instance of the adapter factory. |
| 39 | * <!-- begin-user-doc --> |
| 40 | * <!-- end-user-doc --> |
| 41 | * @generated |
| 42 | */ |
| 43 | public ConfigurationAdapterFactory() { |
| 44 | if (modelPackage == null) { |
| 45 | modelPackage = ConfigurationPackage.eINSTANCE; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Returns whether this factory is applicable for the type of the object. |
| 51 | * <!-- begin-user-doc --> |
| 52 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| 53 | * <!-- end-user-doc --> |
| 54 | * @return whether this factory is applicable for the type of the object. |
| 55 | * @generated |
| 56 | */ |
| 57 | @Override |
| 58 | public boolean isFactoryForType(Object object) { |
| 59 | if (object == modelPackage) { |
| 60 | return true; |
| 61 | } |
| 62 | if (object instanceof EObject) { |
| 63 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
| 64 | } |
| 65 | return false; |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * The switch that delegates to the <code>createXXX</code> methods. |
| 70 | * <!-- begin-user-doc --> |
| 71 | * <!-- end-user-doc --> |
| 72 | * @generated |
| 73 | */ |
| 74 | protected ConfigurationSwitch<Adapter> modelSwitch = |
| 75 | new ConfigurationSwitch<Adapter>() { |
| 76 | @Override |
| 77 | public Adapter caseDynamicPriorityBoostConfiguratioin(DynamicPriorityBoostConfiguratioin object) { |
| 78 | return createDynamicPriorityBoostConfiguratioinAdapter(); |
| 79 | } |
| 80 | @Override |
| 81 | public Adapter casePriorityBoostConfiguration(PriorityBoostConfiguration object) { |
| 82 | return createPriorityBoostConfigurationAdapter(); |
| 83 | } |
| 84 | @Override |
| 85 | public Adapter caseLoadBalancing(LoadBalancing object) { |
| 86 | return createLoadBalancingAdapter(); |
| 87 | } |
| 88 | @Override |
| 89 | public Adapter caseMultipleQueueConfiguration(MultipleQueueConfiguration object) { |
| 90 | return createMultipleQueueConfigurationAdapter(); |
| 91 | } |
| 92 | @Override |
| 93 | public Adapter caseQueueingConfiguration(QueueingConfiguration object) { |
| 94 | return createQueueingConfigurationAdapter(); |
| 95 | } |
| 96 | @Override |
| 97 | public Adapter caseQuantumTimeSliceConfiguration(QuantumTimeSliceConfiguration object) { |
| 98 | return createQuantumTimeSliceConfigurationAdapter(); |
| 99 | } |
| 100 | @Override |
| 101 | public Adapter caseTimeSliceConfiguration(TimeSliceConfiguration object) { |
| 102 | return createTimeSliceConfigurationAdapter(); |
| 103 | } |
| 104 | @Override |
| 105 | public Adapter casePreemptionConfiguration(PreemptionConfiguration object) { |
| 106 | return createPreemptionConfigurationAdapter(); |
| 107 | } |
| 108 | @Override |
| 109 | public Adapter casePriorityConfiguration(PriorityConfiguration object) { |
| 110 | return createPriorityConfigurationAdapter(); |
| 111 | } |
| 112 | @Override |
| 113 | public Adapter casePriorityRange(PriorityRange object) { |
| 114 | return createPriorityRangeAdapter(); |
| 115 | } |
| 116 | @Override |
| 117 | public Adapter casePriorityDependentTimeSliceConfiguration(PriorityDependentTimeSliceConfiguration object) { |
| 118 | return createPriorityDependentTimeSliceConfigurationAdapter(); |
| 119 | } |
| 120 | @Override |
| 121 | public Adapter caseActiveResourceConfiguration(ActiveResourceConfiguration object) { |
| 122 | return createActiveResourceConfigurationAdapter(); |
| 123 | } |
| 124 | @Override |
| 125 | public Adapter casePassiveResourceConfiguration(PassiveResourceConfiguration object) { |
| 126 | return createPassiveResourceConfigurationAdapter(); |
| 127 | } |
| 128 | @Override |
| 129 | public Adapter caseStaticPriorityBoost(StaticPriorityBoost object) { |
| 130 | return createStaticPriorityBoostAdapter(); |
| 131 | } |
| 132 | @Override |
| 133 | public Adapter caseProcessConfiguration(ProcessConfiguration object) { |
| 134 | return createProcessConfigurationAdapter(); |
| 135 | } |
| 136 | @Override |
| 137 | public Adapter caseSingleQueueConfiguration(SingleQueueConfiguration object) { |
| 138 | return createSingleQueueConfigurationAdapter(); |
| 139 | } |
| 140 | @Override |
| 141 | public Adapter caseStaticPriorityBoostConfiguration(StaticPriorityBoostConfiguration object) { |
| 142 | return createStaticPriorityBoostConfigurationAdapter(); |
| 143 | } |
| 144 | @Override |
| 145 | public Adapter caseSchedulerConfiguration(SchedulerConfiguration object) { |
| 146 | return createSchedulerConfigurationAdapter(); |
| 147 | } |
| 148 | @Override |
| 149 | public Adapter caseStarvationBoost(StarvationBoost object) { |
| 150 | return createStarvationBoostAdapter(); |
| 151 | } |
| 152 | @Override |
| 153 | public Adapter caseIdentifier(Identifier object) { |
| 154 | return createIdentifierAdapter(); |
| 155 | } |
| 156 | @Override |
| 157 | public Adapter defaultCase(EObject object) { |
| 158 | return createEObjectAdapter(); |
| 159 | } |
| 160 | }; |
| 161 | |
| 162 | /** |
| 163 | * Creates an adapter for the <code>target</code>. |
| 164 | * <!-- begin-user-doc --> |
| 165 | * <!-- end-user-doc --> |
| 166 | * @param target the object to adapt. |
| 167 | * @return the adapter for the <code>target</code>. |
| 168 | * @generated |
| 169 | */ |
| 170 | @Override |
| 171 | public Adapter createAdapter(Notifier target) { |
| 172 | return modelSwitch.doSwitch((EObject)target); |
| 173 | } |
| 174 | |
| 175 | |
| 176 | /** |
| 177 | * Creates a new adapter for an object of class '{@link scheduler.configuration.DynamicPriorityBoostConfiguratioin <em>Dynamic Priority Boost Configuratioin</em>}'. |
| 178 | * <!-- begin-user-doc --> |
| 179 | * This default implementation returns null so that we can easily ignore cases; |
| 180 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 181 | * <!-- end-user-doc --> |
| 182 | * @return the new adapter. |
| 183 | * @see scheduler.configuration.DynamicPriorityBoostConfiguratioin |
| 184 | * @generated |
| 185 | */ |
| 186 | public Adapter createDynamicPriorityBoostConfiguratioinAdapter() { |
| 187 | return null; |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Creates a new adapter for an object of class '{@link scheduler.configuration.PriorityBoostConfiguration <em>Priority Boost Configuration</em>}'. |
| 192 | * <!-- begin-user-doc --> |
| 193 | * This default implementation returns null so that we can easily ignore cases; |
| 194 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 195 | * <!-- end-user-doc --> |
| 196 | * @return the new adapter. |
| 197 | * @see scheduler.configuration.PriorityBoostConfiguration |
| 198 | * @generated |
| 199 | */ |
| 200 | public Adapter createPriorityBoostConfigurationAdapter() { |
| 201 | return null; |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Creates a new adapter for an object of class '{@link scheduler.configuration.LoadBalancing <em>Load Balancing</em>}'. |
| 206 | * <!-- begin-user-doc --> |
| 207 | * This default implementation returns null so that we can easily ignore cases; |
| 208 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 209 | * <!-- end-user-doc --> |
| 210 | * @return the new adapter. |
| 211 | * @see scheduler.configuration.LoadBalancing |
| 212 | * @generated |
| 213 | */ |
| 214 | public Adapter createLoadBalancingAdapter() { |
| 215 | return null; |
| 216 | } |
| 217 | |
| 218 | /** |
| 219 | * Creates a new adapter for an object of class '{@link scheduler.configuration.MultipleQueueConfiguration <em>Multiple Queue Configuration</em>}'. |
| 220 | * <!-- begin-user-doc --> |
| 221 | * This default implementation returns null so that we can easily ignore cases; |
| 222 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 223 | * <!-- end-user-doc --> |
| 224 | * @return the new adapter. |
| 225 | * @see scheduler.configuration.MultipleQueueConfiguration |
| 226 | * @generated |
| 227 | */ |
| 228 | public Adapter createMultipleQueueConfigurationAdapter() { |
| 229 | return null; |
| 230 | } |
| 231 | |
| 232 | /** |
| 233 | * Creates a new adapter for an object of class '{@link scheduler.configuration.QueueingConfiguration <em>Queueing Configuration</em>}'. |
| 234 | * <!-- begin-user-doc --> |
| 235 | * This default implementation returns null so that we can easily ignore cases; |
| 236 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 237 | * <!-- end-user-doc --> |
| 238 | * @return the new adapter. |
| 239 | * @see scheduler.configuration.QueueingConfiguration |
| 240 | * @generated |
| 241 | */ |
| 242 | public Adapter createQueueingConfigurationAdapter() { |
| 243 | return null; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Creates a new adapter for an object of class '{@link scheduler.configuration.QuantumTimeSliceConfiguration <em>Quantum Time Slice Configuration</em>}'. |
| 248 | * <!-- begin-user-doc --> |
| 249 | * This default implementation returns null so that we can easily ignore cases; |
| 250 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 251 | * <!-- end-user-doc --> |
| 252 | * @return the new adapter. |
| 253 | * @see scheduler.configuration.QuantumTimeSliceConfiguration |
| 254 | * @generated |
| 255 | */ |
| 256 | public Adapter createQuantumTimeSliceConfigurationAdapter() { |
| 257 | return null; |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * Creates a new adapter for an object of class '{@link scheduler.configuration.TimeSliceConfiguration <em>Time Slice Configuration</em>}'. |
| 262 | * <!-- begin-user-doc --> |
| 263 | * This default implementation returns null so that we can easily ignore cases; |
| 264 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 265 | * <!-- end-user-doc --> |
| 266 | * @return the new adapter. |
| 267 | * @see scheduler.configuration.TimeSliceConfiguration |
| 268 | * @generated |
| 269 | */ |
| 270 | public Adapter createTimeSliceConfigurationAdapter() { |
| 271 | return null; |
| 272 | } |
| 273 | |
| 274 | /** |
| 275 | * Creates a new adapter for an object of class '{@link scheduler.configuration.PreemptionConfiguration <em>Preemption Configuration</em>}'. |
| 276 | * <!-- begin-user-doc --> |
| 277 | * This default implementation returns null so that we can easily ignore cases; |
| 278 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 279 | * <!-- end-user-doc --> |
| 280 | * @return the new adapter. |
| 281 | * @see scheduler.configuration.PreemptionConfiguration |
| 282 | * @generated |
| 283 | */ |
| 284 | public Adapter createPreemptionConfigurationAdapter() { |
| 285 | return null; |
| 286 | } |
| 287 | |
| 288 | /** |
| 289 | * Creates a new adapter for an object of class '{@link scheduler.configuration.PriorityConfiguration <em>Priority Configuration</em>}'. |
| 290 | * <!-- begin-user-doc --> |
| 291 | * This default implementation returns null so that we can easily ignore cases; |
| 292 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 293 | * <!-- end-user-doc --> |
| 294 | * @return the new adapter. |
| 295 | * @see scheduler.configuration.PriorityConfiguration |
| 296 | * @generated |
| 297 | */ |
| 298 | public Adapter createPriorityConfigurationAdapter() { |
| 299 | return null; |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * Creates a new adapter for an object of class '{@link scheduler.configuration.PriorityRange <em>Priority Range</em>}'. |
| 304 | * <!-- begin-user-doc --> |
| 305 | * This default implementation returns null so that we can easily ignore cases; |
| 306 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 307 | * <!-- end-user-doc --> |
| 308 | * @return the new adapter. |
| 309 | * @see scheduler.configuration.PriorityRange |
| 310 | * @generated |
| 311 | */ |
| 312 | public Adapter createPriorityRangeAdapter() { |
| 313 | return null; |
| 314 | } |
| 315 | |
| 316 | /** |
| 317 | * Creates a new adapter for an object of class '{@link scheduler.configuration.PriorityDependentTimeSliceConfiguration <em>Priority Dependent Time Slice Configuration</em>}'. |
| 318 | * <!-- begin-user-doc --> |
| 319 | * This default implementation returns null so that we can easily ignore cases; |
| 320 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 321 | * <!-- end-user-doc --> |
| 322 | * @return the new adapter. |
| 323 | * @see scheduler.configuration.PriorityDependentTimeSliceConfiguration |
| 324 | * @generated |
| 325 | */ |
| 326 | public Adapter createPriorityDependentTimeSliceConfigurationAdapter() { |
| 327 | return null; |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * Creates a new adapter for an object of class '{@link scheduler.configuration.ActiveResourceConfiguration <em>Active Resource Configuration</em>}'. |
| 332 | * <!-- begin-user-doc --> |
| 333 | * This default implementation returns null so that we can easily ignore cases; |
| 334 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 335 | * <!-- end-user-doc --> |
| 336 | * @return the new adapter. |
| 337 | * @see scheduler.configuration.ActiveResourceConfiguration |
| 338 | * @generated |
| 339 | */ |
| 340 | public Adapter createActiveResourceConfigurationAdapter() { |
| 341 | return null; |
| 342 | } |
| 343 | |
| 344 | /** |
| 345 | * Creates a new adapter for an object of class '{@link scheduler.configuration.PassiveResourceConfiguration <em>Passive Resource Configuration</em>}'. |
| 346 | * <!-- begin-user-doc --> |
| 347 | * This default implementation returns null so that we can easily ignore cases; |
| 348 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 349 | * <!-- end-user-doc --> |
| 350 | * @return the new adapter. |
| 351 | * @see scheduler.configuration.PassiveResourceConfiguration |
| 352 | * @generated |
| 353 | */ |
| 354 | public Adapter createPassiveResourceConfigurationAdapter() { |
| 355 | return null; |
| 356 | } |
| 357 | |
| 358 | /** |
| 359 | * Creates a new adapter for an object of class '{@link scheduler.configuration.StaticPriorityBoost <em>Static Priority Boost</em>}'. |
| 360 | * <!-- begin-user-doc --> |
| 361 | * This default implementation returns null so that we can easily ignore cases; |
| 362 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 363 | * <!-- end-user-doc --> |
| 364 | * @return the new adapter. |
| 365 | * @see scheduler.configuration.StaticPriorityBoost |
| 366 | * @generated |
| 367 | */ |
| 368 | public Adapter createStaticPriorityBoostAdapter() { |
| 369 | return null; |
| 370 | } |
| 371 | |
| 372 | /** |
| 373 | * Creates a new adapter for an object of class '{@link scheduler.configuration.ProcessConfiguration <em>Process Configuration</em>}'. |
| 374 | * <!-- begin-user-doc --> |
| 375 | * This default implementation returns null so that we can easily ignore cases; |
| 376 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 377 | * <!-- end-user-doc --> |
| 378 | * @return the new adapter. |
| 379 | * @see scheduler.configuration.ProcessConfiguration |
| 380 | * @generated |
| 381 | */ |
| 382 | public Adapter createProcessConfigurationAdapter() { |
| 383 | return null; |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | * Creates a new adapter for an object of class '{@link scheduler.configuration.SingleQueueConfiguration <em>Single Queue Configuration</em>}'. |
| 388 | * <!-- begin-user-doc --> |
| 389 | * This default implementation returns null so that we can easily ignore cases; |
| 390 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 391 | * <!-- end-user-doc --> |
| 392 | * @return the new adapter. |
| 393 | * @see scheduler.configuration.SingleQueueConfiguration |
| 394 | * @generated |
| 395 | */ |
| 396 | public Adapter createSingleQueueConfigurationAdapter() { |
| 397 | return null; |
| 398 | } |
| 399 | |
| 400 | /** |
| 401 | * Creates a new adapter for an object of class '{@link scheduler.configuration.StaticPriorityBoostConfiguration <em>Static Priority Boost Configuration</em>}'. |
| 402 | * <!-- begin-user-doc --> |
| 403 | * This default implementation returns null so that we can easily ignore cases; |
| 404 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 405 | * <!-- end-user-doc --> |
| 406 | * @return the new adapter. |
| 407 | * @see scheduler.configuration.StaticPriorityBoostConfiguration |
| 408 | * @generated |
| 409 | */ |
| 410 | public Adapter createStaticPriorityBoostConfigurationAdapter() { |
| 411 | return null; |
| 412 | } |
| 413 | |
| 414 | /** |
| 415 | * Creates a new adapter for an object of class '{@link scheduler.configuration.SchedulerConfiguration <em>Scheduler Configuration</em>}'. |
| 416 | * <!-- begin-user-doc --> |
| 417 | * This default implementation returns null so that we can easily ignore cases; |
| 418 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 419 | * <!-- end-user-doc --> |
| 420 | * @return the new adapter. |
| 421 | * @see scheduler.configuration.SchedulerConfiguration |
| 422 | * @generated |
| 423 | */ |
| 424 | public Adapter createSchedulerConfigurationAdapter() { |
| 425 | return null; |
| 426 | } |
| 427 | |
| 428 | /** |
| 429 | * Creates a new adapter for an object of class '{@link scheduler.configuration.StarvationBoost <em>Starvation Boost</em>}'. |
| 430 | * <!-- begin-user-doc --> |
| 431 | * This default implementation returns null so that we can easily ignore cases; |
| 432 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 433 | * <!-- end-user-doc --> |
| 434 | * @return the new adapter. |
| 435 | * @see scheduler.configuration.StarvationBoost |
| 436 | * @generated |
| 437 | */ |
| 438 | public Adapter createStarvationBoostAdapter() { |
| 439 | return null; |
| 440 | } |
| 441 | |
| 442 | /** |
| 443 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'. |
| 444 | * <!-- begin-user-doc --> |
| 445 | * This default implementation returns null so that we can easily ignore cases; |
| 446 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 447 | * <!-- end-user-doc --> |
| 448 | * @return the new adapter. |
| 449 | * @see de.uka.ipd.sdq.identifier.Identifier |
| 450 | * @generated |
| 451 | */ |
| 452 | public Adapter createIdentifierAdapter() { |
| 453 | return null; |
| 454 | } |
| 455 | |
| 456 | /** |
| 457 | * Creates a new adapter for the default case. |
| 458 | * <!-- begin-user-doc --> |
| 459 | * This default implementation returns null. |
| 460 | * <!-- end-user-doc --> |
| 461 | * @return the new adapter. |
| 462 | * @generated |
| 463 | */ |
| 464 | public Adapter createEObjectAdapter() { |
| 465 | return null; |
| 466 | } |
| 467 | |
| 468 | } //ConfigurationAdapterFactory |