| 1 | /** |
| 2 | * Copyright 2008, sdq.ipd.uka.de, U KA |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.simucomframework.simucomstatus.util; |
| 7 | |
| 8 | import de.uka.ipd.sdq.simucomframework.simucomstatus.Action; |
| 9 | import de.uka.ipd.sdq.simucomframework.simucomstatus.ActiveResouce; |
| 10 | import de.uka.ipd.sdq.simucomframework.simucomstatus.PassiveResource; |
| 11 | import de.uka.ipd.sdq.simucomframework.simucomstatus.SimuComStatus; |
| 12 | import de.uka.ipd.sdq.simucomframework.simucomstatus.SimucomstatusPackage; |
| 13 | import de.uka.ipd.sdq.simucomframework.simucomstatus.SimulatedProcesses; |
| 14 | import de.uka.ipd.sdq.simucomframework.simucomstatus.SimulatedResources; |
| 15 | import de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForAcquire; |
| 16 | import de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDelay; |
| 17 | import de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDemand; |
| 18 | |
| 19 | import org.eclipse.emf.common.notify.Adapter; |
| 20 | import org.eclipse.emf.common.notify.Notifier; |
| 21 | |
| 22 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| 23 | |
| 24 | import org.eclipse.emf.ecore.EObject; |
| 25 | |
| 26 | /** |
| 27 | * <!-- begin-user-doc --> |
| 28 | * The <b>Adapter Factory</b> for the model. |
| 29 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
| 30 | * <!-- end-user-doc --> |
| 31 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.SimucomstatusPackage |
| 32 | * @generated |
| 33 | */ |
| 34 | public class SimucomstatusAdapterFactory extends AdapterFactoryImpl { |
| 35 | /** |
| 36 | * The cached model package. |
| 37 | * <!-- begin-user-doc --> |
| 38 | * <!-- end-user-doc --> |
| 39 | * @generated |
| 40 | */ |
| 41 | protected static SimucomstatusPackage modelPackage; |
| 42 | |
| 43 | /** |
| 44 | * Creates an instance of the adapter factory. |
| 45 | * <!-- begin-user-doc --> |
| 46 | * <!-- end-user-doc --> |
| 47 | * @generated |
| 48 | */ |
| 49 | public SimucomstatusAdapterFactory() { |
| 50 | if (modelPackage == null) { |
| 51 | modelPackage = SimucomstatusPackage.eINSTANCE; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Returns whether this factory is applicable for the type of the object. |
| 57 | * <!-- begin-user-doc --> |
| 58 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| 59 | * <!-- end-user-doc --> |
| 60 | * @return whether this factory is applicable for the type of the object. |
| 61 | * @generated |
| 62 | */ |
| 63 | @Override |
| 64 | public boolean isFactoryForType(Object object) { |
| 65 | if (object == modelPackage) { |
| 66 | return true; |
| 67 | } |
| 68 | if (object instanceof EObject) { |
| 69 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
| 70 | } |
| 71 | return false; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * The switch that delegates to the <code>createXXX</code> methods. |
| 76 | * <!-- begin-user-doc --> |
| 77 | * <!-- end-user-doc --> |
| 78 | * @generated |
| 79 | */ |
| 80 | protected SimucomstatusSwitch<Adapter> modelSwitch = |
| 81 | new SimucomstatusSwitch<Adapter>() { |
| 82 | @Override |
| 83 | public Adapter caseSimuComStatus(SimuComStatus object) { |
| 84 | return createSimuComStatusAdapter(); |
| 85 | } |
| 86 | @Override |
| 87 | public Adapter caseSimulatedProcesses(SimulatedProcesses object) { |
| 88 | return createSimulatedProcessesAdapter(); |
| 89 | } |
| 90 | @Override |
| 91 | public Adapter caseProcess(de.uka.ipd.sdq.simucomframework.simucomstatus.Process object) { |
| 92 | return createProcessAdapter(); |
| 93 | } |
| 94 | @Override |
| 95 | public Adapter caseAction(Action object) { |
| 96 | return createActionAdapter(); |
| 97 | } |
| 98 | @Override |
| 99 | public Adapter caseSimulatedResources(SimulatedResources object) { |
| 100 | return createSimulatedResourcesAdapter(); |
| 101 | } |
| 102 | @Override |
| 103 | public Adapter caseActiveResouce(ActiveResouce object) { |
| 104 | return createActiveResouceAdapter(); |
| 105 | } |
| 106 | @Override |
| 107 | public Adapter caseWaitForDemand(WaitForDemand object) { |
| 108 | return createWaitForDemandAdapter(); |
| 109 | } |
| 110 | @Override |
| 111 | public Adapter casePassiveResource(PassiveResource object) { |
| 112 | return createPassiveResourceAdapter(); |
| 113 | } |
| 114 | @Override |
| 115 | public Adapter caseWaitForAcquire(WaitForAcquire object) { |
| 116 | return createWaitForAcquireAdapter(); |
| 117 | } |
| 118 | @Override |
| 119 | public Adapter caseWaitForDelay(WaitForDelay object) { |
| 120 | return createWaitForDelayAdapter(); |
| 121 | } |
| 122 | @Override |
| 123 | public Adapter defaultCase(EObject object) { |
| 124 | return createEObjectAdapter(); |
| 125 | } |
| 126 | }; |
| 127 | |
| 128 | /** |
| 129 | * Creates an adapter for the <code>target</code>. |
| 130 | * <!-- begin-user-doc --> |
| 131 | * <!-- end-user-doc --> |
| 132 | * @param target the object to adapt. |
| 133 | * @return the adapter for the <code>target</code>. |
| 134 | * @generated |
| 135 | */ |
| 136 | @Override |
| 137 | public Adapter createAdapter(Notifier target) { |
| 138 | return modelSwitch.doSwitch((EObject)target); |
| 139 | } |
| 140 | |
| 141 | |
| 142 | /** |
| 143 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.simucomframework.simucomstatus.SimuComStatus <em>Simu Com Status</em>}'. |
| 144 | * <!-- begin-user-doc --> |
| 145 | * This default implementation returns null so that we can easily ignore cases; |
| 146 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 147 | * <!-- end-user-doc --> |
| 148 | * @return the new adapter. |
| 149 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.SimuComStatus |
| 150 | * @generated |
| 151 | */ |
| 152 | public Adapter createSimuComStatusAdapter() { |
| 153 | return null; |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.simucomframework.simucomstatus.SimulatedProcesses <em>Simulated Processes</em>}'. |
| 158 | * <!-- begin-user-doc --> |
| 159 | * This default implementation returns null so that we can easily ignore cases; |
| 160 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 161 | * <!-- end-user-doc --> |
| 162 | * @return the new adapter. |
| 163 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.SimulatedProcesses |
| 164 | * @generated |
| 165 | */ |
| 166 | public Adapter createSimulatedProcessesAdapter() { |
| 167 | return null; |
| 168 | } |
| 169 | |
| 170 | /** |
| 171 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.simucomframework.simucomstatus.Process <em>Process</em>}'. |
| 172 | * <!-- begin-user-doc --> |
| 173 | * This default implementation returns null so that we can easily ignore cases; |
| 174 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 175 | * <!-- end-user-doc --> |
| 176 | * @return the new adapter. |
| 177 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.Process |
| 178 | * @generated |
| 179 | */ |
| 180 | public Adapter createProcessAdapter() { |
| 181 | return null; |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.simucomframework.simucomstatus.Action <em>Action</em>}'. |
| 186 | * <!-- begin-user-doc --> |
| 187 | * This default implementation returns null so that we can easily ignore cases; |
| 188 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 189 | * <!-- end-user-doc --> |
| 190 | * @return the new adapter. |
| 191 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.Action |
| 192 | * @generated |
| 193 | */ |
| 194 | public Adapter createActionAdapter() { |
| 195 | return null; |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.simucomframework.simucomstatus.SimulatedResources <em>Simulated Resources</em>}'. |
| 200 | * <!-- begin-user-doc --> |
| 201 | * This default implementation returns null so that we can easily ignore cases; |
| 202 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 203 | * <!-- end-user-doc --> |
| 204 | * @return the new adapter. |
| 205 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.SimulatedResources |
| 206 | * @generated |
| 207 | */ |
| 208 | public Adapter createSimulatedResourcesAdapter() { |
| 209 | return null; |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.simucomframework.simucomstatus.ActiveResouce <em>Active Resouce</em>}'. |
| 214 | * <!-- begin-user-doc --> |
| 215 | * This default implementation returns null so that we can easily ignore cases; |
| 216 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 217 | * <!-- end-user-doc --> |
| 218 | * @return the new adapter. |
| 219 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.ActiveResouce |
| 220 | * @generated |
| 221 | */ |
| 222 | public Adapter createActiveResouceAdapter() { |
| 223 | return null; |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDemand <em>Wait For Demand</em>}'. |
| 228 | * <!-- begin-user-doc --> |
| 229 | * This default implementation returns null so that we can easily ignore cases; |
| 230 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 231 | * <!-- end-user-doc --> |
| 232 | * @return the new adapter. |
| 233 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDemand |
| 234 | * @generated |
| 235 | */ |
| 236 | public Adapter createWaitForDemandAdapter() { |
| 237 | return null; |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.simucomframework.simucomstatus.PassiveResource <em>Passive Resource</em>}'. |
| 242 | * <!-- begin-user-doc --> |
| 243 | * This default implementation returns null so that we can easily ignore cases; |
| 244 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 245 | * <!-- end-user-doc --> |
| 246 | * @return the new adapter. |
| 247 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.PassiveResource |
| 248 | * @generated |
| 249 | */ |
| 250 | public Adapter createPassiveResourceAdapter() { |
| 251 | return null; |
| 252 | } |
| 253 | |
| 254 | /** |
| 255 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForAcquire <em>Wait For Acquire</em>}'. |
| 256 | * <!-- begin-user-doc --> |
| 257 | * This default implementation returns null so that we can easily ignore cases; |
| 258 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 259 | * <!-- end-user-doc --> |
| 260 | * @return the new adapter. |
| 261 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForAcquire |
| 262 | * @generated |
| 263 | */ |
| 264 | public Adapter createWaitForAcquireAdapter() { |
| 265 | return null; |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDelay <em>Wait For Delay</em>}'. |
| 270 | * <!-- begin-user-doc --> |
| 271 | * This default implementation returns null so that we can easily ignore cases; |
| 272 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 273 | * <!-- end-user-doc --> |
| 274 | * @return the new adapter. |
| 275 | * @see de.uka.ipd.sdq.simucomframework.simucomstatus.WaitForDelay |
| 276 | * @generated |
| 277 | */ |
| 278 | public Adapter createWaitForDelayAdapter() { |
| 279 | return null; |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | * Creates a new adapter for the default case. |
| 284 | * <!-- begin-user-doc --> |
| 285 | * This default implementation returns null. |
| 286 | * <!-- end-user-doc --> |
| 287 | * @return the new adapter. |
| 288 | * @generated |
| 289 | */ |
| 290 | public Adapter createEObjectAdapter() { |
| 291 | return null; |
| 292 | } |
| 293 | |
| 294 | } //SimucomstatusAdapterFactory |