| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.uka.ipd.sdq.probfunction.util; |
| 8 | |
| 9 | import de.uka.ipd.sdq.probfunction.*; |
| 10 | import org.eclipse.emf.common.notify.Adapter; |
| 11 | import org.eclipse.emf.common.notify.Notifier; |
| 12 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| 13 | import org.eclipse.emf.ecore.EObject; |
| 14 | |
| 15 | import de.uka.ipd.sdq.probfunction.BoxedPDF; |
| 16 | import de.uka.ipd.sdq.probfunction.Complex; |
| 17 | import de.uka.ipd.sdq.probfunction.ContinuousPDF; |
| 18 | import de.uka.ipd.sdq.probfunction.ContinuousSample; |
| 19 | import de.uka.ipd.sdq.probfunction.ExponentialDistribution; |
| 20 | import de.uka.ipd.sdq.probfunction.NormalDistribution; |
| 21 | import de.uka.ipd.sdq.probfunction.ProbabilityDensityFunction; |
| 22 | import de.uka.ipd.sdq.probfunction.ProbabilityFunction; |
| 23 | import de.uka.ipd.sdq.probfunction.ProbabilityMassFunction; |
| 24 | import de.uka.ipd.sdq.probfunction.ProbfunctionPackage; |
| 25 | import de.uka.ipd.sdq.probfunction.Sample; |
| 26 | import de.uka.ipd.sdq.probfunction.SamplePDF; |
| 27 | import de.uka.ipd.sdq.units.UnitCarryingElement; |
| 28 | |
| 29 | /** |
| 30 | * <!-- begin-user-doc --> |
| 31 | * The <b>Adapter Factory</b> for the model. |
| 32 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
| 33 | * <!-- end-user-doc --> |
| 34 | * @see de.uka.ipd.sdq.probfunction.ProbfunctionPackage |
| 35 | * @generated |
| 36 | */ |
| 37 | public class ProbfunctionAdapterFactory extends AdapterFactoryImpl { |
| 38 | /** |
| 39 | * <!-- begin-user-doc --> |
| 40 | * <!-- end-user-doc --> |
| 41 | * @generated |
| 42 | */ |
| 43 | public static final String copyright = "Copyright 2007-2009, SDQ, IPD, U Karlsruhe"; |
| 44 | /** |
| 45 | * The cached model package. |
| 46 | * <!-- begin-user-doc --> |
| 47 | * <!-- end-user-doc --> |
| 48 | * @generated |
| 49 | */ |
| 50 | protected static ProbfunctionPackage modelPackage; |
| 51 | |
| 52 | /** |
| 53 | * Creates an instance of the adapter factory. |
| 54 | * <!-- begin-user-doc --> |
| 55 | * <!-- end-user-doc --> |
| 56 | * @generated |
| 57 | */ |
| 58 | public ProbfunctionAdapterFactory() { |
| 59 | if (modelPackage == null) { |
| 60 | modelPackage = ProbfunctionPackage.eINSTANCE; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Returns whether this factory is applicable for the type of the object. |
| 66 | * <!-- begin-user-doc --> |
| 67 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| 68 | * <!-- end-user-doc --> |
| 69 | * @return whether this factory is applicable for the type of the object. |
| 70 | * @generated |
| 71 | */ |
| 72 | @Override |
| 73 | public boolean isFactoryForType(Object object) { |
| 74 | if (object == modelPackage) { |
| 75 | return true; |
| 76 | } |
| 77 | if (object instanceof EObject) { |
| 78 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
| 79 | } |
| 80 | return false; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * The switch that delegates to the <code>createXXX</code> methods. |
| 85 | * <!-- begin-user-doc --> |
| 86 | * <!-- end-user-doc --> |
| 87 | * @generated |
| 88 | */ |
| 89 | protected ProbfunctionSwitch<Adapter> modelSwitch = |
| 90 | new ProbfunctionSwitch<Adapter>() { |
| 91 | @Override |
| 92 | public Adapter caseBoxedPDF(BoxedPDF object) { |
| 93 | return createBoxedPDFAdapter(); |
| 94 | } |
| 95 | @Override |
| 96 | public Adapter caseProbabilityDensityFunction(ProbabilityDensityFunction object) { |
| 97 | return createProbabilityDensityFunctionAdapter(); |
| 98 | } |
| 99 | @Override |
| 100 | public Adapter caseProbabilityFunction(ProbabilityFunction object) { |
| 101 | return createProbabilityFunctionAdapter(); |
| 102 | } |
| 103 | @Override |
| 104 | public Adapter caseContinuousSample(ContinuousSample object) { |
| 105 | return createContinuousSampleAdapter(); |
| 106 | } |
| 107 | @Override |
| 108 | public Adapter caseProbabilityMassFunction(ProbabilityMassFunction object) { |
| 109 | return createProbabilityMassFunctionAdapter(); |
| 110 | } |
| 111 | @Override |
| 112 | public <T> Adapter caseSample(Sample<T> object) { |
| 113 | return createSampleAdapter(); |
| 114 | } |
| 115 | @Override |
| 116 | public Adapter caseSamplePDF(SamplePDF object) { |
| 117 | return createSamplePDFAdapter(); |
| 118 | } |
| 119 | @Override |
| 120 | public Adapter caseComplex(Complex object) { |
| 121 | return createComplexAdapter(); |
| 122 | } |
| 123 | @Override |
| 124 | public Adapter caseContinuousPDF(ContinuousPDF object) { |
| 125 | return createContinuousPDFAdapter(); |
| 126 | } |
| 127 | @Override |
| 128 | public Adapter caseExponentialDistribution(ExponentialDistribution object) { |
| 129 | return createExponentialDistributionAdapter(); |
| 130 | } |
| 131 | @Override |
| 132 | public Adapter caseNormalDistribution(NormalDistribution object) { |
| 133 | return createNormalDistributionAdapter(); |
| 134 | } |
| 135 | @Override |
| 136 | public Adapter caseLognormalDistribution(LognormalDistribution object) { |
| 137 | return createLognormalDistributionAdapter(); |
| 138 | } |
| 139 | @Override |
| 140 | public Adapter caseGammaDistribution(GammaDistribution object) { |
| 141 | return createGammaDistributionAdapter(); |
| 142 | } |
| 143 | @Override |
| 144 | public Adapter caseUnitCarryingElement(UnitCarryingElement object) { |
| 145 | return createUnitCarryingElementAdapter(); |
| 146 | } |
| 147 | @Override |
| 148 | public Adapter defaultCase(EObject object) { |
| 149 | return createEObjectAdapter(); |
| 150 | } |
| 151 | }; |
| 152 | |
| 153 | /** |
| 154 | * Creates an adapter for the <code>target</code>. |
| 155 | * <!-- begin-user-doc --> |
| 156 | * <!-- end-user-doc --> |
| 157 | * @param target the object to adapt. |
| 158 | * @return the adapter for the <code>target</code>. |
| 159 | * @generated |
| 160 | */ |
| 161 | @Override |
| 162 | public Adapter createAdapter(Notifier target) { |
| 163 | return modelSwitch.doSwitch((EObject)target); |
| 164 | } |
| 165 | |
| 166 | |
| 167 | /** |
| 168 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.BoxedPDF <em>Boxed PDF</em>}'. |
| 169 | * <!-- begin-user-doc --> |
| 170 | * This default implementation returns null so that we can easily ignore cases; |
| 171 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 172 | * <!-- end-user-doc --> |
| 173 | * @return the new adapter. |
| 174 | * @see de.uka.ipd.sdq.probfunction.BoxedPDF |
| 175 | * @generated |
| 176 | */ |
| 177 | public Adapter createBoxedPDFAdapter() { |
| 178 | return null; |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.ProbabilityDensityFunction <em>Probability Density Function</em>}'. |
| 183 | * <!-- begin-user-doc --> |
| 184 | * This default implementation returns null so that we can easily ignore cases; |
| 185 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 186 | * <!-- end-user-doc --> |
| 187 | * @return the new adapter. |
| 188 | * @see de.uka.ipd.sdq.probfunction.ProbabilityDensityFunction |
| 189 | * @generated |
| 190 | */ |
| 191 | public Adapter createProbabilityDensityFunctionAdapter() { |
| 192 | return null; |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.ProbabilityFunction <em>Probability Function</em>}'. |
| 197 | * <!-- begin-user-doc --> |
| 198 | * This default implementation returns null so that we can easily ignore cases; |
| 199 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 200 | * <!-- end-user-doc --> |
| 201 | * @return the new adapter. |
| 202 | * @see de.uka.ipd.sdq.probfunction.ProbabilityFunction |
| 203 | * @generated |
| 204 | */ |
| 205 | public Adapter createProbabilityFunctionAdapter() { |
| 206 | return null; |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.ContinuousSample <em>Continuous Sample</em>}'. |
| 211 | * <!-- begin-user-doc --> |
| 212 | * This default implementation returns null so that we can easily ignore cases; |
| 213 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 214 | * <!-- end-user-doc --> |
| 215 | * @return the new adapter. |
| 216 | * @see de.uka.ipd.sdq.probfunction.ContinuousSample |
| 217 | * @generated |
| 218 | */ |
| 219 | public Adapter createContinuousSampleAdapter() { |
| 220 | return null; |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.ProbabilityMassFunction <em>Probability Mass Function</em>}'. |
| 225 | * <!-- begin-user-doc --> |
| 226 | * This default implementation returns null so that we can easily ignore cases; |
| 227 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 228 | * <!-- end-user-doc --> |
| 229 | * @return the new adapter. |
| 230 | * @see de.uka.ipd.sdq.probfunction.ProbabilityMassFunction |
| 231 | * @generated |
| 232 | */ |
| 233 | public Adapter createProbabilityMassFunctionAdapter() { |
| 234 | return null; |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.Sample <em>Sample</em>}'. |
| 239 | * <!-- begin-user-doc --> |
| 240 | * This default implementation returns null so that we can easily ignore cases; |
| 241 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 242 | * <!-- end-user-doc --> |
| 243 | * @return the new adapter. |
| 244 | * @see de.uka.ipd.sdq.probfunction.Sample |
| 245 | * @generated |
| 246 | */ |
| 247 | public Adapter createSampleAdapter() { |
| 248 | return null; |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.SamplePDF <em>Sample PDF</em>}'. |
| 253 | * <!-- begin-user-doc --> |
| 254 | * This default implementation returns null so that we can easily ignore cases; |
| 255 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 256 | * <!-- end-user-doc --> |
| 257 | * @return the new adapter. |
| 258 | * @see de.uka.ipd.sdq.probfunction.SamplePDF |
| 259 | * @generated |
| 260 | */ |
| 261 | public Adapter createSamplePDFAdapter() { |
| 262 | return null; |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.Complex <em>Complex</em>}'. |
| 267 | * <!-- begin-user-doc --> |
| 268 | * This default implementation returns null so that we can easily ignore cases; |
| 269 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 270 | * <!-- end-user-doc --> |
| 271 | * @return the new adapter. |
| 272 | * @see de.uka.ipd.sdq.probfunction.Complex |
| 273 | * @generated |
| 274 | */ |
| 275 | public Adapter createComplexAdapter() { |
| 276 | return null; |
| 277 | } |
| 278 | |
| 279 | /** |
| 280 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.ContinuousPDF <em>Continuous PDF</em>}'. |
| 281 | * <!-- begin-user-doc --> |
| 282 | * This default implementation returns null so that we can easily ignore cases; |
| 283 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 284 | * <!-- end-user-doc --> |
| 285 | * @return the new adapter. |
| 286 | * @see de.uka.ipd.sdq.probfunction.ContinuousPDF |
| 287 | * @generated |
| 288 | */ |
| 289 | public Adapter createContinuousPDFAdapter() { |
| 290 | return null; |
| 291 | } |
| 292 | |
| 293 | /** |
| 294 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.ExponentialDistribution <em>Exponential Distribution</em>}'. |
| 295 | * <!-- begin-user-doc --> |
| 296 | * This default implementation returns null so that we can easily ignore cases; |
| 297 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 298 | * <!-- end-user-doc --> |
| 299 | * @return the new adapter. |
| 300 | * @see de.uka.ipd.sdq.probfunction.ExponentialDistribution |
| 301 | * @generated |
| 302 | */ |
| 303 | public Adapter createExponentialDistributionAdapter() { |
| 304 | return null; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.NormalDistribution <em>Normal Distribution</em>}'. |
| 309 | * <!-- begin-user-doc --> |
| 310 | * This default implementation returns null so that we can easily ignore cases; |
| 311 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 312 | * <!-- end-user-doc --> |
| 313 | * @return the new adapter. |
| 314 | * @see de.uka.ipd.sdq.probfunction.NormalDistribution |
| 315 | * @generated |
| 316 | */ |
| 317 | public Adapter createNormalDistributionAdapter() { |
| 318 | return null; |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.LognormalDistribution <em>Lognormal Distribution</em>}'. |
| 323 | * <!-- begin-user-doc --> |
| 324 | * This default implementation returns null so that we can easily ignore cases; |
| 325 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 326 | * <!-- end-user-doc --> |
| 327 | * @return the new adapter. |
| 328 | * @see de.uka.ipd.sdq.probfunction.LognormalDistribution |
| 329 | * @generated |
| 330 | */ |
| 331 | public Adapter createLognormalDistributionAdapter() { |
| 332 | return null; |
| 333 | } |
| 334 | |
| 335 | /** |
| 336 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.probfunction.GammaDistribution <em>Gamma Distribution</em>}'. |
| 337 | * <!-- begin-user-doc --> |
| 338 | * This default implementation returns null so that we can easily ignore cases; |
| 339 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 340 | * <!-- end-user-doc --> |
| 341 | * @return the new adapter. |
| 342 | * @see de.uka.ipd.sdq.probfunction.GammaDistribution |
| 343 | * @generated |
| 344 | */ |
| 345 | public Adapter createGammaDistributionAdapter() { |
| 346 | return null; |
| 347 | } |
| 348 | |
| 349 | /** |
| 350 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.units.UnitCarryingElement <em>Unit Carrying Element</em>}'. |
| 351 | * <!-- begin-user-doc --> |
| 352 | * This default implementation returns null so that we can easily ignore cases; |
| 353 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 354 | * <!-- end-user-doc --> |
| 355 | * @return the new adapter. |
| 356 | * @see de.uka.ipd.sdq.units.UnitCarryingElement |
| 357 | * @generated |
| 358 | */ |
| 359 | public Adapter createUnitCarryingElementAdapter() { |
| 360 | return null; |
| 361 | } |
| 362 | |
| 363 | /** |
| 364 | * Creates a new adapter for the default case. |
| 365 | * <!-- begin-user-doc --> |
| 366 | * This default implementation returns null. |
| 367 | * <!-- end-user-doc --> |
| 368 | * @return the new adapter. |
| 369 | * @generated |
| 370 | */ |
| 371 | public Adapter createEObjectAdapter() { |
| 372 | return null; |
| 373 | } |
| 374 | |
| 375 | } //ProbfunctionAdapterFactory |