1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.probespec.util; |
8 | |
9 | import de.uka.ipd.sdq.identifier.Identifier; |
10 | |
11 | import de.uka.ipd.sdq.probespec.*; |
12 | |
13 | import org.eclipse.emf.common.notify.Adapter; |
14 | import org.eclipse.emf.common.notify.Notifier; |
15 | |
16 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
17 | |
18 | import org.eclipse.emf.ecore.EObject; |
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 de.uka.ipd.sdq.probespec.probespecPackage |
26 | * @generated |
27 | */ |
28 | public class probespecAdapterFactory extends AdapterFactoryImpl { |
29 | /** |
30 | * The cached model package. |
31 | * <!-- begin-user-doc --> |
32 | * <!-- end-user-doc --> |
33 | * @generated |
34 | */ |
35 | protected static probespecPackage modelPackage; |
36 | |
37 | /** |
38 | * Creates an instance of the adapter factory. |
39 | * <!-- begin-user-doc --> |
40 | * <!-- end-user-doc --> |
41 | * @generated |
42 | */ |
43 | public probespecAdapterFactory() { |
44 | if (modelPackage == null) { |
45 | modelPackage = probespecPackage.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 probespecSwitch<Adapter> modelSwitch = |
75 | new probespecSwitch<Adapter>() { |
76 | @Override |
77 | public Adapter caseCalculator(Calculator object) { |
78 | return createCalculatorAdapter(); |
79 | } |
80 | @Override |
81 | public Adapter casePassiveResourceCalculator(PassiveResourceCalculator object) { |
82 | return createPassiveResourceCalculatorAdapter(); |
83 | } |
84 | @Override |
85 | public Adapter caseUnaryCalculator(UnaryCalculator object) { |
86 | return createUnaryCalculatorAdapter(); |
87 | } |
88 | @Override |
89 | public Adapter caseProbeSet(ProbeSet object) { |
90 | return createProbeSetAdapter(); |
91 | } |
92 | @Override |
93 | public Adapter caseProbe(Probe object) { |
94 | return createProbeAdapter(); |
95 | } |
96 | @Override |
97 | public Adapter casePassiveResourceStateProbe(PassiveResourceStateProbe object) { |
98 | return createPassiveResourceStateProbeAdapter(); |
99 | } |
100 | @Override |
101 | public Adapter caseStoExProbe(StoExProbe object) { |
102 | return createStoExProbeAdapter(); |
103 | } |
104 | @Override |
105 | public Adapter caseSEFFParameterProbe(SEFFParameterProbe object) { |
106 | return createSEFFParameterProbeAdapter(); |
107 | } |
108 | @Override |
109 | public Adapter caseCurrentTimeProbe(CurrentTimeProbe object) { |
110 | return createCurrentTimeProbeAdapter(); |
111 | } |
112 | @Override |
113 | public Adapter caseStoExCalculator(StoExCalculator object) { |
114 | return createStoExCalculatorAdapter(); |
115 | } |
116 | @Override |
117 | public Adapter caseSEFFParameterCalculator(SEFFParameterCalculator object) { |
118 | return createSEFFParameterCalculatorAdapter(); |
119 | } |
120 | @Override |
121 | public Adapter caseResponseTimeCalculator(ResponseTimeCalculator object) { |
122 | return createResponseTimeCalculatorAdapter(); |
123 | } |
124 | @Override |
125 | public Adapter caseBinaryCalculator(BinaryCalculator object) { |
126 | return createBinaryCalculatorAdapter(); |
127 | } |
128 | @Override |
129 | public Adapter caseWaitingTimeCalculator(WaitingTimeCalculator object) { |
130 | return createWaitingTimeCalculatorAdapter(); |
131 | } |
132 | @Override |
133 | public Adapter caseProbeSpecRepository(ProbeSpecRepository object) { |
134 | return createProbeSpecRepositoryAdapter(); |
135 | } |
136 | @Override |
137 | public Adapter caseCPUStateProbe(CPUStateProbe object) { |
138 | return createCPUStateProbeAdapter(); |
139 | } |
140 | @Override |
141 | public Adapter caseHDDStateProbe(HDDStateProbe object) { |
142 | return createHDDStateProbeAdapter(); |
143 | } |
144 | @Override |
145 | public Adapter caseCPUDemandProbe(CPUDemandProbe object) { |
146 | return createCPUDemandProbeAdapter(); |
147 | } |
148 | @Override |
149 | public Adapter caseHDDDemandProbe(HDDDemandProbe object) { |
150 | return createHDDDemandProbeAdapter(); |
151 | } |
152 | @Override |
153 | public Adapter caseHDDStateCalculator(HDDStateCalculator object) { |
154 | return createHDDStateCalculatorAdapter(); |
155 | } |
156 | @Override |
157 | public Adapter caseCPUStateCalculator(CPUStateCalculator object) { |
158 | return createCPUStateCalculatorAdapter(); |
159 | } |
160 | @Override |
161 | public Adapter caseCPUDemandCalculator(CPUDemandCalculator object) { |
162 | return createCPUDemandCalculatorAdapter(); |
163 | } |
164 | @Override |
165 | public Adapter caseHDDDemandCalculator(HDDDemandCalculator object) { |
166 | return createHDDDemandCalculatorAdapter(); |
167 | } |
168 | @Override |
169 | public Adapter caseIdentifier(Identifier object) { |
170 | return createIdentifierAdapter(); |
171 | } |
172 | @Override |
173 | public Adapter defaultCase(EObject object) { |
174 | return createEObjectAdapter(); |
175 | } |
176 | }; |
177 | |
178 | /** |
179 | * Creates an adapter for the <code>target</code>. |
180 | * <!-- begin-user-doc --> |
181 | * <!-- end-user-doc --> |
182 | * @param target the object to adapt. |
183 | * @return the adapter for the <code>target</code>. |
184 | * @generated |
185 | */ |
186 | @Override |
187 | public Adapter createAdapter(Notifier target) { |
188 | return modelSwitch.doSwitch((EObject)target); |
189 | } |
190 | |
191 | |
192 | /** |
193 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.Calculator <em>Calculator</em>}'. |
194 | * <!-- begin-user-doc --> |
195 | * This default implementation returns null so that we can easily ignore cases; |
196 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
197 | * <!-- end-user-doc --> |
198 | * @return the new adapter. |
199 | * @see de.uka.ipd.sdq.probespec.Calculator |
200 | * @generated |
201 | */ |
202 | public Adapter createCalculatorAdapter() { |
203 | return null; |
204 | } |
205 | |
206 | /** |
207 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.PassiveResourceCalculator <em>Passive Resource Calculator</em>}'. |
208 | * <!-- begin-user-doc --> |
209 | * This default implementation returns null so that we can easily ignore cases; |
210 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
211 | * <!-- end-user-doc --> |
212 | * @return the new adapter. |
213 | * @see de.uka.ipd.sdq.probespec.PassiveResourceCalculator |
214 | * @generated |
215 | */ |
216 | public Adapter createPassiveResourceCalculatorAdapter() { |
217 | return null; |
218 | } |
219 | |
220 | /** |
221 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.UnaryCalculator <em>Unary Calculator</em>}'. |
222 | * <!-- begin-user-doc --> |
223 | * This default implementation returns null so that we can easily ignore cases; |
224 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
225 | * <!-- end-user-doc --> |
226 | * @return the new adapter. |
227 | * @see de.uka.ipd.sdq.probespec.UnaryCalculator |
228 | * @generated |
229 | */ |
230 | public Adapter createUnaryCalculatorAdapter() { |
231 | return null; |
232 | } |
233 | |
234 | /** |
235 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.ProbeSet <em>Probe Set</em>}'. |
236 | * <!-- begin-user-doc --> |
237 | * This default implementation returns null so that we can easily ignore cases; |
238 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
239 | * <!-- end-user-doc --> |
240 | * @return the new adapter. |
241 | * @see de.uka.ipd.sdq.probespec.ProbeSet |
242 | * @generated |
243 | */ |
244 | public Adapter createProbeSetAdapter() { |
245 | return null; |
246 | } |
247 | |
248 | /** |
249 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.Probe <em>Probe</em>}'. |
250 | * <!-- begin-user-doc --> |
251 | * This default implementation returns null so that we can easily ignore cases; |
252 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
253 | * <!-- end-user-doc --> |
254 | * @return the new adapter. |
255 | * @see de.uka.ipd.sdq.probespec.Probe |
256 | * @generated |
257 | */ |
258 | public Adapter createProbeAdapter() { |
259 | return null; |
260 | } |
261 | |
262 | /** |
263 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.PassiveResourceStateProbe <em>Passive Resource State Probe</em>}'. |
264 | * <!-- begin-user-doc --> |
265 | * This default implementation returns null so that we can easily ignore cases; |
266 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
267 | * <!-- end-user-doc --> |
268 | * @return the new adapter. |
269 | * @see de.uka.ipd.sdq.probespec.PassiveResourceStateProbe |
270 | * @generated |
271 | */ |
272 | public Adapter createPassiveResourceStateProbeAdapter() { |
273 | return null; |
274 | } |
275 | |
276 | /** |
277 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.StoExProbe <em>Sto Ex Probe</em>}'. |
278 | * <!-- begin-user-doc --> |
279 | * This default implementation returns null so that we can easily ignore cases; |
280 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
281 | * <!-- end-user-doc --> |
282 | * @return the new adapter. |
283 | * @see de.uka.ipd.sdq.probespec.StoExProbe |
284 | * @generated |
285 | */ |
286 | public Adapter createStoExProbeAdapter() { |
287 | return null; |
288 | } |
289 | |
290 | /** |
291 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.SEFFParameterProbe <em>SEFF Parameter Probe</em>}'. |
292 | * <!-- begin-user-doc --> |
293 | * This default implementation returns null so that we can easily ignore cases; |
294 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
295 | * <!-- end-user-doc --> |
296 | * @return the new adapter. |
297 | * @see de.uka.ipd.sdq.probespec.SEFFParameterProbe |
298 | * @generated |
299 | */ |
300 | public Adapter createSEFFParameterProbeAdapter() { |
301 | return null; |
302 | } |
303 | |
304 | /** |
305 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.CurrentTimeProbe <em>Current Time Probe</em>}'. |
306 | * <!-- begin-user-doc --> |
307 | * This default implementation returns null so that we can easily ignore cases; |
308 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
309 | * <!-- end-user-doc --> |
310 | * @return the new adapter. |
311 | * @see de.uka.ipd.sdq.probespec.CurrentTimeProbe |
312 | * @generated |
313 | */ |
314 | public Adapter createCurrentTimeProbeAdapter() { |
315 | return null; |
316 | } |
317 | |
318 | /** |
319 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.StoExCalculator <em>Sto Ex Calculator</em>}'. |
320 | * <!-- begin-user-doc --> |
321 | * This default implementation returns null so that we can easily ignore cases; |
322 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
323 | * <!-- end-user-doc --> |
324 | * @return the new adapter. |
325 | * @see de.uka.ipd.sdq.probespec.StoExCalculator |
326 | * @generated |
327 | */ |
328 | public Adapter createStoExCalculatorAdapter() { |
329 | return null; |
330 | } |
331 | |
332 | /** |
333 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.SEFFParameterCalculator <em>SEFF Parameter Calculator</em>}'. |
334 | * <!-- begin-user-doc --> |
335 | * This default implementation returns null so that we can easily ignore cases; |
336 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
337 | * <!-- end-user-doc --> |
338 | * @return the new adapter. |
339 | * @see de.uka.ipd.sdq.probespec.SEFFParameterCalculator |
340 | * @generated |
341 | */ |
342 | public Adapter createSEFFParameterCalculatorAdapter() { |
343 | return null; |
344 | } |
345 | |
346 | /** |
347 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.ResponseTimeCalculator <em>Response Time Calculator</em>}'. |
348 | * <!-- begin-user-doc --> |
349 | * This default implementation returns null so that we can easily ignore cases; |
350 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
351 | * <!-- end-user-doc --> |
352 | * @return the new adapter. |
353 | * @see de.uka.ipd.sdq.probespec.ResponseTimeCalculator |
354 | * @generated |
355 | */ |
356 | public Adapter createResponseTimeCalculatorAdapter() { |
357 | return null; |
358 | } |
359 | |
360 | /** |
361 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.BinaryCalculator <em>Binary Calculator</em>}'. |
362 | * <!-- begin-user-doc --> |
363 | * This default implementation returns null so that we can easily ignore cases; |
364 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
365 | * <!-- end-user-doc --> |
366 | * @return the new adapter. |
367 | * @see de.uka.ipd.sdq.probespec.BinaryCalculator |
368 | * @generated |
369 | */ |
370 | public Adapter createBinaryCalculatorAdapter() { |
371 | return null; |
372 | } |
373 | |
374 | /** |
375 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.WaitingTimeCalculator <em>Waiting Time Calculator</em>}'. |
376 | * <!-- begin-user-doc --> |
377 | * This default implementation returns null so that we can easily ignore cases; |
378 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
379 | * <!-- end-user-doc --> |
380 | * @return the new adapter. |
381 | * @see de.uka.ipd.sdq.probespec.WaitingTimeCalculator |
382 | * @generated |
383 | */ |
384 | public Adapter createWaitingTimeCalculatorAdapter() { |
385 | return null; |
386 | } |
387 | |
388 | /** |
389 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.ProbeSpecRepository <em>Probe Spec Repository</em>}'. |
390 | * <!-- begin-user-doc --> |
391 | * This default implementation returns null so that we can easily ignore cases; |
392 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
393 | * <!-- end-user-doc --> |
394 | * @return the new adapter. |
395 | * @see de.uka.ipd.sdq.probespec.ProbeSpecRepository |
396 | * @generated |
397 | */ |
398 | public Adapter createProbeSpecRepositoryAdapter() { |
399 | return null; |
400 | } |
401 | |
402 | /** |
403 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.CPUStateProbe <em>CPU State Probe</em>}'. |
404 | * <!-- begin-user-doc --> |
405 | * This default implementation returns null so that we can easily ignore cases; |
406 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
407 | * <!-- end-user-doc --> |
408 | * @return the new adapter. |
409 | * @see de.uka.ipd.sdq.probespec.CPUStateProbe |
410 | * @generated |
411 | */ |
412 | public Adapter createCPUStateProbeAdapter() { |
413 | return null; |
414 | } |
415 | |
416 | /** |
417 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.HDDStateProbe <em>HDD State Probe</em>}'. |
418 | * <!-- begin-user-doc --> |
419 | * This default implementation returns null so that we can easily ignore cases; |
420 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
421 | * <!-- end-user-doc --> |
422 | * @return the new adapter. |
423 | * @see de.uka.ipd.sdq.probespec.HDDStateProbe |
424 | * @generated |
425 | */ |
426 | public Adapter createHDDStateProbeAdapter() { |
427 | return null; |
428 | } |
429 | |
430 | /** |
431 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.CPUDemandProbe <em>CPU Demand Probe</em>}'. |
432 | * <!-- begin-user-doc --> |
433 | * This default implementation returns null so that we can easily ignore cases; |
434 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
435 | * <!-- end-user-doc --> |
436 | * @return the new adapter. |
437 | * @see de.uka.ipd.sdq.probespec.CPUDemandProbe |
438 | * @generated |
439 | */ |
440 | public Adapter createCPUDemandProbeAdapter() { |
441 | return null; |
442 | } |
443 | |
444 | /** |
445 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.HDDDemandProbe <em>HDD Demand Probe</em>}'. |
446 | * <!-- begin-user-doc --> |
447 | * This default implementation returns null so that we can easily ignore cases; |
448 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
449 | * <!-- end-user-doc --> |
450 | * @return the new adapter. |
451 | * @see de.uka.ipd.sdq.probespec.HDDDemandProbe |
452 | * @generated |
453 | */ |
454 | public Adapter createHDDDemandProbeAdapter() { |
455 | return null; |
456 | } |
457 | |
458 | /** |
459 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.HDDStateCalculator <em>HDD State Calculator</em>}'. |
460 | * <!-- begin-user-doc --> |
461 | * This default implementation returns null so that we can easily ignore cases; |
462 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
463 | * <!-- end-user-doc --> |
464 | * @return the new adapter. |
465 | * @see de.uka.ipd.sdq.probespec.HDDStateCalculator |
466 | * @generated |
467 | */ |
468 | public Adapter createHDDStateCalculatorAdapter() { |
469 | return null; |
470 | } |
471 | |
472 | /** |
473 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.CPUStateCalculator <em>CPU State Calculator</em>}'. |
474 | * <!-- begin-user-doc --> |
475 | * This default implementation returns null so that we can easily ignore cases; |
476 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
477 | * <!-- end-user-doc --> |
478 | * @return the new adapter. |
479 | * @see de.uka.ipd.sdq.probespec.CPUStateCalculator |
480 | * @generated |
481 | */ |
482 | public Adapter createCPUStateCalculatorAdapter() { |
483 | return null; |
484 | } |
485 | |
486 | /** |
487 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.CPUDemandCalculator <em>CPU Demand Calculator</em>}'. |
488 | * <!-- begin-user-doc --> |
489 | * This default implementation returns null so that we can easily ignore cases; |
490 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
491 | * <!-- end-user-doc --> |
492 | * @return the new adapter. |
493 | * @see de.uka.ipd.sdq.probespec.CPUDemandCalculator |
494 | * @generated |
495 | */ |
496 | public Adapter createCPUDemandCalculatorAdapter() { |
497 | return null; |
498 | } |
499 | |
500 | /** |
501 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probespec.HDDDemandCalculator <em>HDD Demand Calculator</em>}'. |
502 | * <!-- begin-user-doc --> |
503 | * This default implementation returns null so that we can easily ignore cases; |
504 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
505 | * <!-- end-user-doc --> |
506 | * @return the new adapter. |
507 | * @see de.uka.ipd.sdq.probespec.HDDDemandCalculator |
508 | * @generated |
509 | */ |
510 | public Adapter createHDDDemandCalculatorAdapter() { |
511 | return null; |
512 | } |
513 | |
514 | /** |
515 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'. |
516 | * <!-- begin-user-doc --> |
517 | * This default implementation returns null so that we can easily ignore cases; |
518 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
519 | * <!-- end-user-doc --> |
520 | * @return the new adapter. |
521 | * @see de.uka.ipd.sdq.identifier.Identifier |
522 | * @generated |
523 | */ |
524 | public Adapter createIdentifierAdapter() { |
525 | return null; |
526 | } |
527 | |
528 | /** |
529 | * Creates a new adapter for the default case. |
530 | * <!-- begin-user-doc --> |
531 | * This default implementation returns null. |
532 | * <!-- end-user-doc --> |
533 | * @return the new adapter. |
534 | * @generated |
535 | */ |
536 | public Adapter createEObjectAdapter() { |
537 | return null; |
538 | } |
539 | |
540 | } //probespecAdapterFactory |