| /** |
| * ******************************************************************************* |
| * Copyright (c) 2017 Timing-Architects Embedded Systems GmbH and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Generated using Eclipse EMF |
| * |
| * ******************************************************************************* |
| */ |
| package org.eclipse.app4mc.amalthea.generator.configuration.util; |
| |
| import org.eclipse.app4mc.amalthea.generator.configuration.*; |
| |
| import org.eclipse.emf.common.notify.Adapter; |
| import org.eclipse.emf.common.notify.Notifier; |
| |
| import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| |
| import org.eclipse.emf.ecore.EObject; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * The <b>Adapter Factory</b> for the model. |
| * It provides an adapter <code>createXXX</code> method for each class of the model. |
| * <!-- end-user-doc --> |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.RTMGCPackage |
| * @generated |
| */ |
| public class RTMGCAdapterFactory extends AdapterFactoryImpl { |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static RTMGCPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public RTMGCAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = RTMGCPackage.eINSTANCE; |
| } |
| } |
| |
| /** |
| * Returns whether this factory is applicable for the type of the object. |
| * <!-- begin-user-doc --> |
| * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| * <!-- end-user-doc --> |
| * @return whether this factory is applicable for the type of the object. |
| * @generated |
| */ |
| @Override |
| public boolean isFactoryForType(Object object) { |
| if (object == modelPackage) { |
| return true; |
| } |
| if (object instanceof EObject) { |
| return ((EObject)object).eClass().getEPackage() == modelPackage; |
| } |
| return false; |
| } |
| |
| /** |
| * The switch that delegates to the <code>createXXX</code> methods. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected RTMGCSwitch<Adapter> modelSwitch = |
| new RTMGCSwitch<Adapter>() { |
| @Override |
| public Adapter caseRTMGC(RTMGC object) { |
| return createRTMGCAdapter(); |
| } |
| @Override |
| public Adapter caseGeneration(Generation object) { |
| return createGenerationAdapter(); |
| } |
| @Override |
| public Adapter caseActivationProperties(ActivationProperties object) { |
| return createActivationPropertiesAdapter(); |
| } |
| @Override |
| public Adapter caseActivation(Activation object) { |
| return createActivationAdapter(); |
| } |
| @Override |
| public Adapter casePeriodicActivation(PeriodicActivation object) { |
| return createPeriodicActivationAdapter(); |
| } |
| @Override |
| public Adapter casePeriodicTriangleShift(PeriodicTriangleShift object) { |
| return createPeriodicTriangleShiftAdapter(); |
| } |
| @Override |
| public Adapter caseTriangleClock(TriangleClock object) { |
| return createTriangleClockAdapter(); |
| } |
| @Override |
| public Adapter caseSporadicActivation(SporadicActivation object) { |
| return createSporadicActivationAdapter(); |
| } |
| @Override |
| public Adapter caseRecurrence(Recurrence object) { |
| return createRecurrenceAdapter(); |
| } |
| @Override |
| public Adapter caseLabelProperties(LabelProperties object) { |
| return createLabelPropertiesAdapter(); |
| } |
| @Override |
| public Adapter caseRunnableProperties(RunnableProperties object) { |
| return createRunnablePropertiesAdapter(); |
| } |
| @Override |
| public Adapter caseSemaphoreProperties(SemaphoreProperties object) { |
| return createSemaphorePropertiesAdapter(); |
| } |
| @Override |
| public Adapter caseSemaphoreAccessProperties(SemaphoreAccessProperties object) { |
| return createSemaphoreAccessPropertiesAdapter(); |
| } |
| @Override |
| public Adapter caseTaskProperties(TaskProperties object) { |
| return createTaskPropertiesAdapter(); |
| } |
| @Override |
| public Adapter caseCallGraphProperties(CallGraphProperties object) { |
| return createCallGraphPropertiesAdapter(); |
| } |
| @Override |
| public Adapter caseDistribution(Distribution object) { |
| return createDistributionAdapter(); |
| } |
| @Override |
| public Adapter caseIntegerDistribution(IntegerDistribution object) { |
| return createIntegerDistributionAdapter(); |
| } |
| @Override |
| public Adapter caseIntegerTimeDistribution(IntegerTimeDistribution object) { |
| return createIntegerTimeDistributionAdapter(); |
| } |
| @Override |
| public Adapter casePercentageDistribution(PercentageDistribution object) { |
| return createPercentageDistributionAdapter(); |
| } |
| @Override |
| public Adapter caseDoubleDistribution(DoubleDistribution object) { |
| return createDoubleDistributionAdapter(); |
| } |
| @Override |
| public Adapter defaultCase(EObject object) { |
| return createEObjectAdapter(); |
| } |
| }; |
| |
| /** |
| * Creates an adapter for the <code>target</code>. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param target the object to adapt. |
| * @return the adapter for the <code>target</code>. |
| * @generated |
| */ |
| @Override |
| public Adapter createAdapter(Notifier target) { |
| return modelSwitch.doSwitch((EObject)target); |
| } |
| |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.RTMGC <em>RTMGC</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.RTMGC |
| * @generated |
| */ |
| public Adapter createRTMGCAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.Generation <em>Generation</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.Generation |
| * @generated |
| */ |
| public Adapter createGenerationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.ActivationProperties <em>Activation Properties</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.ActivationProperties |
| * @generated |
| */ |
| public Adapter createActivationPropertiesAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.Activation <em>Activation</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.Activation |
| * @generated |
| */ |
| public Adapter createActivationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.PeriodicActivation <em>Periodic Activation</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.PeriodicActivation |
| * @generated |
| */ |
| public Adapter createPeriodicActivationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.PeriodicTriangleShift <em>Periodic Triangle Shift</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.PeriodicTriangleShift |
| * @generated |
| */ |
| public Adapter createPeriodicTriangleShiftAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.TriangleClock <em>Triangle Clock</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.TriangleClock |
| * @generated |
| */ |
| public Adapter createTriangleClockAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.SporadicActivation <em>Sporadic Activation</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.SporadicActivation |
| * @generated |
| */ |
| public Adapter createSporadicActivationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.Recurrence <em>Recurrence</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.Recurrence |
| * @generated |
| */ |
| public Adapter createRecurrenceAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.LabelProperties <em>Label Properties</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.LabelProperties |
| * @generated |
| */ |
| public Adapter createLabelPropertiesAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.RunnableProperties <em>Runnable Properties</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.RunnableProperties |
| * @generated |
| */ |
| public Adapter createRunnablePropertiesAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.SemaphoreProperties <em>Semaphore Properties</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.SemaphoreProperties |
| * @generated |
| */ |
| public Adapter createSemaphorePropertiesAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.SemaphoreAccessProperties <em>Semaphore Access Properties</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.SemaphoreAccessProperties |
| * @generated |
| */ |
| public Adapter createSemaphoreAccessPropertiesAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.TaskProperties <em>Task Properties</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.TaskProperties |
| * @generated |
| */ |
| public Adapter createTaskPropertiesAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.CallGraphProperties <em>Call Graph Properties</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.CallGraphProperties |
| * @generated |
| */ |
| public Adapter createCallGraphPropertiesAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.Distribution <em>Distribution</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.Distribution |
| * @generated |
| */ |
| public Adapter createDistributionAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.IntegerDistribution <em>Integer Distribution</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.IntegerDistribution |
| * @generated |
| */ |
| public Adapter createIntegerDistributionAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.IntegerTimeDistribution <em>Integer Time Distribution</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.IntegerTimeDistribution |
| * @generated |
| */ |
| public Adapter createIntegerTimeDistributionAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.PercentageDistribution <em>Percentage Distribution</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.PercentageDistribution |
| * @generated |
| */ |
| public Adapter createPercentageDistributionAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.app4mc.amalthea.generator.configuration.DoubleDistribution <em>Double Distribution</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.app4mc.amalthea.generator.configuration.DoubleDistribution |
| * @generated |
| */ |
| public Adapter createDoubleDistributionAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for the default case. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @generated |
| */ |
| public Adapter createEObjectAdapter() { |
| return null; |
| } |
| |
| } //RTMGCAdapterFactory |