| 1 | /** |
| 2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.pcm.parameter.impl; |
| 7 | |
| 8 | import org.eclipse.emf.ecore.EAttribute; |
| 9 | import org.eclipse.emf.ecore.EClass; |
| 10 | import org.eclipse.emf.ecore.EEnum; |
| 11 | import org.eclipse.emf.ecore.EPackage; |
| 12 | import org.eclipse.emf.ecore.EReference; |
| 13 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
| 14 | |
| 15 | import de.uka.ipd.sdq.identifier.IdentifierPackage; |
| 16 | import de.uka.ipd.sdq.pcm.PcmPackage; |
| 17 | import de.uka.ipd.sdq.pcm.allocation.AllocationPackage; |
| 18 | import de.uka.ipd.sdq.pcm.allocation.impl.AllocationPackageImpl; |
| 19 | import de.uka.ipd.sdq.pcm.core.CorePackage; |
| 20 | import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage; |
| 21 | import de.uka.ipd.sdq.pcm.core.composition.impl.CompositionPackageImpl; |
| 22 | import de.uka.ipd.sdq.pcm.core.entity.EntityPackage; |
| 23 | import de.uka.ipd.sdq.pcm.core.entity.impl.EntityPackageImpl; |
| 24 | import de.uka.ipd.sdq.pcm.core.impl.CorePackageImpl; |
| 25 | import de.uka.ipd.sdq.pcm.impl.PcmPackageImpl; |
| 26 | import de.uka.ipd.sdq.pcm.parameter.CharacterisedVariable; |
| 27 | import de.uka.ipd.sdq.pcm.parameter.ParameterFactory; |
| 28 | import de.uka.ipd.sdq.pcm.parameter.ParameterPackage; |
| 29 | import de.uka.ipd.sdq.pcm.parameter.VariableCharacterisation; |
| 30 | import de.uka.ipd.sdq.pcm.parameter.VariableCharacterisationType; |
| 31 | import de.uka.ipd.sdq.pcm.parameter.VariableUsage; |
| 32 | import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage; |
| 33 | import de.uka.ipd.sdq.pcm.protocol.impl.ProtocolPackageImpl; |
| 34 | import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage; |
| 35 | import de.uka.ipd.sdq.pcm.qosannotations.impl.QosannotationsPackageImpl; |
| 36 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.Qos_performancePackage; |
| 37 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl.Qos_performancePackageImpl; |
| 38 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.Qos_reliabilityPackage; |
| 39 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.impl.Qos_reliabilityPackageImpl; |
| 40 | import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage; |
| 41 | import de.uka.ipd.sdq.pcm.reliability.impl.ReliabilityPackageImpl; |
| 42 | import de.uka.ipd.sdq.pcm.repository.RepositoryPackage; |
| 43 | import de.uka.ipd.sdq.pcm.repository.impl.RepositoryPackageImpl; |
| 44 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage; |
| 45 | import de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceenvironmentPackageImpl; |
| 46 | import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage; |
| 47 | import de.uka.ipd.sdq.pcm.resourcetype.impl.ResourcetypePackageImpl; |
| 48 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
| 49 | import de.uka.ipd.sdq.pcm.seff.impl.SeffPackageImpl; |
| 50 | import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage; |
| 51 | import de.uka.ipd.sdq.pcm.seff.seff_performance.impl.Seff_performancePackageImpl; |
| 52 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage; |
| 53 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.impl.Seff_reliabilityPackageImpl; |
| 54 | import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage; |
| 55 | import de.uka.ipd.sdq.pcm.subsystem.impl.SubsystemPackageImpl; |
| 56 | import de.uka.ipd.sdq.pcm.system.SystemPackage; |
| 57 | import de.uka.ipd.sdq.pcm.system.impl.SystemPackageImpl; |
| 58 | import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage; |
| 59 | import de.uka.ipd.sdq.pcm.usagemodel.impl.UsagemodelPackageImpl; |
| 60 | import de.uka.ipd.sdq.stoex.StoexPackage; |
| 61 | |
| 62 | /** |
| 63 | * <!-- begin-user-doc --> |
| 64 | * An implementation of the model <b>Package</b>. |
| 65 | * <!-- end-user-doc --> |
| 66 | * @generated |
| 67 | */ |
| 68 | public class ParameterPackageImpl extends EPackageImpl implements ParameterPackage { |
| 69 | /** |
| 70 | * <!-- begin-user-doc --> |
| 71 | * <!-- end-user-doc --> |
| 72 | * @generated |
| 73 | */ |
| 74 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 75 | |
| 76 | /** |
| 77 | * <!-- begin-user-doc --> |
| 78 | * <!-- end-user-doc --> |
| 79 | * @generated |
| 80 | */ |
| 81 | private EClass variableUsageEClass = null; |
| 82 | |
| 83 | /** |
| 84 | * <!-- begin-user-doc --> |
| 85 | * <!-- end-user-doc --> |
| 86 | * @generated |
| 87 | */ |
| 88 | private EClass variableCharacterisationEClass = null; |
| 89 | |
| 90 | /** |
| 91 | * <!-- begin-user-doc --> |
| 92 | * <!-- end-user-doc --> |
| 93 | * @generated |
| 94 | */ |
| 95 | private EClass characterisedVariableEClass = null; |
| 96 | |
| 97 | /** |
| 98 | * <!-- begin-user-doc --> |
| 99 | * <!-- end-user-doc --> |
| 100 | * @generated |
| 101 | */ |
| 102 | private EEnum variableCharacterisationTypeEEnum = null; |
| 103 | |
| 104 | /** |
| 105 | * Creates an instance of the model <b>Package</b>, registered with |
| 106 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
| 107 | * package URI value. |
| 108 | * <p>Note: the correct way to create the package is via the static |
| 109 | * factory method {@link #init init()}, which also performs |
| 110 | * initialization of the package, or returns the registered package, |
| 111 | * if one already exists. |
| 112 | * <!-- begin-user-doc --> |
| 113 | * <!-- end-user-doc --> |
| 114 | * @see org.eclipse.emf.ecore.EPackage.Registry |
| 115 | * @see de.uka.ipd.sdq.pcm.parameter.ParameterPackage#eNS_URI |
| 116 | * @see #init() |
| 117 | * @generated |
| 118 | */ |
| 119 | private ParameterPackageImpl() { |
| 120 | super(eNS_URI, ParameterFactory.eINSTANCE); |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * <!-- begin-user-doc --> |
| 125 | * <!-- end-user-doc --> |
| 126 | * @generated |
| 127 | */ |
| 128 | private static boolean isInited = false; |
| 129 | |
| 130 | /** |
| 131 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
| 132 | * |
| 133 | * <p>This method is used to initialize {@link ParameterPackage#eINSTANCE} when that field is accessed. |
| 134 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
| 135 | * <!-- begin-user-doc --> |
| 136 | * <!-- end-user-doc --> |
| 137 | * @see #eNS_URI |
| 138 | * @see #createPackageContents() |
| 139 | * @see #initializePackageContents() |
| 140 | * @generated |
| 141 | */ |
| 142 | public static ParameterPackage init() { |
| 143 | if (isInited) return (ParameterPackage)EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI); |
| 144 | |
| 145 | // Obtain or create and register package |
| 146 | ParameterPackageImpl theParameterPackage = (ParameterPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ParameterPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ParameterPackageImpl()); |
| 147 | |
| 148 | isInited = true; |
| 149 | |
| 150 | // Initialize simple dependencies |
| 151 | IdentifierPackage.eINSTANCE.eClass(); |
| 152 | StoexPackage.eINSTANCE.eClass(); |
| 153 | |
| 154 | // Obtain or create and register interdependencies |
| 155 | PcmPackageImpl thePcmPackage = (PcmPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) instanceof PcmPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) : PcmPackage.eINSTANCE); |
| 156 | CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) : CorePackage.eINSTANCE); |
| 157 | EntityPackageImpl theEntityPackage = (EntityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) instanceof EntityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) : EntityPackage.eINSTANCE); |
| 158 | CompositionPackageImpl theCompositionPackage = (CompositionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) instanceof CompositionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) : CompositionPackage.eINSTANCE); |
| 159 | UsagemodelPackageImpl theUsagemodelPackage = (UsagemodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) instanceof UsagemodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) : UsagemodelPackage.eINSTANCE); |
| 160 | RepositoryPackageImpl theRepositoryPackage = (RepositoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) instanceof RepositoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) : RepositoryPackage.eINSTANCE); |
| 161 | ResourcetypePackageImpl theResourcetypePackage = (ResourcetypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) instanceof ResourcetypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) : ResourcetypePackage.eINSTANCE); |
| 162 | ProtocolPackageImpl theProtocolPackage = (ProtocolPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) instanceof ProtocolPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) : ProtocolPackage.eINSTANCE); |
| 163 | ReliabilityPackageImpl theReliabilityPackage = (ReliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) instanceof ReliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) : ReliabilityPackage.eINSTANCE); |
| 164 | SeffPackageImpl theSeffPackage = (SeffPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) instanceof SeffPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) : SeffPackage.eINSTANCE); |
| 165 | Seff_performancePackageImpl theSeff_performancePackage = (Seff_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI) instanceof Seff_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI) : Seff_performancePackage.eINSTANCE); |
| 166 | Seff_reliabilityPackageImpl theSeff_reliabilityPackage = (Seff_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) instanceof Seff_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) : Seff_reliabilityPackage.eINSTANCE); |
| 167 | QosannotationsPackageImpl theQosannotationsPackage = (QosannotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) instanceof QosannotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) : QosannotationsPackage.eINSTANCE); |
| 168 | Qos_performancePackageImpl theQos_performancePackage = (Qos_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) instanceof Qos_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) : Qos_performancePackage.eINSTANCE); |
| 169 | Qos_reliabilityPackageImpl theQos_reliabilityPackage = (Qos_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) instanceof Qos_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) : Qos_reliabilityPackage.eINSTANCE); |
| 170 | SystemPackageImpl theSystemPackage = (SystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) instanceof SystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) : SystemPackage.eINSTANCE); |
| 171 | ResourceenvironmentPackageImpl theResourceenvironmentPackage = (ResourceenvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) instanceof ResourceenvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) : ResourceenvironmentPackage.eINSTANCE); |
| 172 | AllocationPackageImpl theAllocationPackage = (AllocationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) instanceof AllocationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) : AllocationPackage.eINSTANCE); |
| 173 | SubsystemPackageImpl theSubsystemPackage = (SubsystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) instanceof SubsystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) : SubsystemPackage.eINSTANCE); |
| 174 | |
| 175 | // Create package meta-data objects |
| 176 | theParameterPackage.createPackageContents(); |
| 177 | thePcmPackage.createPackageContents(); |
| 178 | theCorePackage.createPackageContents(); |
| 179 | theEntityPackage.createPackageContents(); |
| 180 | theCompositionPackage.createPackageContents(); |
| 181 | theUsagemodelPackage.createPackageContents(); |
| 182 | theRepositoryPackage.createPackageContents(); |
| 183 | theResourcetypePackage.createPackageContents(); |
| 184 | theProtocolPackage.createPackageContents(); |
| 185 | theReliabilityPackage.createPackageContents(); |
| 186 | theSeffPackage.createPackageContents(); |
| 187 | theSeff_performancePackage.createPackageContents(); |
| 188 | theSeff_reliabilityPackage.createPackageContents(); |
| 189 | theQosannotationsPackage.createPackageContents(); |
| 190 | theQos_performancePackage.createPackageContents(); |
| 191 | theQos_reliabilityPackage.createPackageContents(); |
| 192 | theSystemPackage.createPackageContents(); |
| 193 | theResourceenvironmentPackage.createPackageContents(); |
| 194 | theAllocationPackage.createPackageContents(); |
| 195 | theSubsystemPackage.createPackageContents(); |
| 196 | |
| 197 | // Initialize created meta-data |
| 198 | theParameterPackage.initializePackageContents(); |
| 199 | thePcmPackage.initializePackageContents(); |
| 200 | theCorePackage.initializePackageContents(); |
| 201 | theEntityPackage.initializePackageContents(); |
| 202 | theCompositionPackage.initializePackageContents(); |
| 203 | theUsagemodelPackage.initializePackageContents(); |
| 204 | theRepositoryPackage.initializePackageContents(); |
| 205 | theResourcetypePackage.initializePackageContents(); |
| 206 | theProtocolPackage.initializePackageContents(); |
| 207 | theReliabilityPackage.initializePackageContents(); |
| 208 | theSeffPackage.initializePackageContents(); |
| 209 | theSeff_performancePackage.initializePackageContents(); |
| 210 | theSeff_reliabilityPackage.initializePackageContents(); |
| 211 | theQosannotationsPackage.initializePackageContents(); |
| 212 | theQos_performancePackage.initializePackageContents(); |
| 213 | theQos_reliabilityPackage.initializePackageContents(); |
| 214 | theSystemPackage.initializePackageContents(); |
| 215 | theResourceenvironmentPackage.initializePackageContents(); |
| 216 | theAllocationPackage.initializePackageContents(); |
| 217 | theSubsystemPackage.initializePackageContents(); |
| 218 | |
| 219 | // Mark meta-data to indicate it can't be changed |
| 220 | theParameterPackage.freeze(); |
| 221 | |
| 222 | |
| 223 | // Update the registry and return the package |
| 224 | EPackage.Registry.INSTANCE.put(ParameterPackage.eNS_URI, theParameterPackage); |
| 225 | return theParameterPackage; |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * <!-- begin-user-doc --> |
| 230 | * <!-- end-user-doc --> |
| 231 | * @generated |
| 232 | */ |
| 233 | public EClass getVariableUsage() { |
| 234 | return variableUsageEClass; |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * <!-- begin-user-doc --> |
| 239 | * <!-- end-user-doc --> |
| 240 | * @generated |
| 241 | */ |
| 242 | public EReference getVariableUsage_VariableCharacterisation_VariableUsage() { |
| 243 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(0); |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * <!-- begin-user-doc --> |
| 248 | * <!-- end-user-doc --> |
| 249 | * @generated |
| 250 | */ |
| 251 | public EReference getVariableUsage_UserData_VariableUsage() { |
| 252 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(1); |
| 253 | } |
| 254 | |
| 255 | /** |
| 256 | * <!-- begin-user-doc --> |
| 257 | * <!-- end-user-doc --> |
| 258 | * @generated |
| 259 | */ |
| 260 | public EReference getVariableUsage_CallAction__VariableUsage() { |
| 261 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(2); |
| 262 | } |
| 263 | |
| 264 | /** |
| 265 | * <!-- begin-user-doc --> |
| 266 | * <!-- end-user-doc --> |
| 267 | * @generated |
| 268 | */ |
| 269 | public EReference getVariableUsage_SynchronisationPoint_VariableUsage() { |
| 270 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(3); |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * <!-- begin-user-doc --> |
| 275 | * <!-- end-user-doc --> |
| 276 | * @generated |
| 277 | */ |
| 278 | public EReference getVariableUsage_CallReturnAction__VariableUsage() { |
| 279 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(4); |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | * <!-- begin-user-doc --> |
| 284 | * <!-- end-user-doc --> |
| 285 | * @generated |
| 286 | */ |
| 287 | public EReference getVariableUsage_SetVariableAction_VariableUsage() { |
| 288 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(5); |
| 289 | } |
| 290 | |
| 291 | /** |
| 292 | * <!-- begin-user-doc --> |
| 293 | * <!-- end-user-doc --> |
| 294 | * @generated |
| 295 | */ |
| 296 | public EReference getVariableUsage_SpecifiedOutputParameterAbstraction_expectedExternalOutputs_VariableUsage() { |
| 297 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(6); |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * <!-- begin-user-doc --> |
| 302 | * <!-- end-user-doc --> |
| 303 | * @generated |
| 304 | */ |
| 305 | public EReference getVariableUsage_AssemblyContext__VariableUsage() { |
| 306 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(7); |
| 307 | } |
| 308 | |
| 309 | /** |
| 310 | * <!-- begin-user-doc --> |
| 311 | * <!-- end-user-doc --> |
| 312 | * @generated |
| 313 | */ |
| 314 | public EReference getVariableUsage_EntryLevelSystemCall_InputParameterUsage() { |
| 315 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(8); |
| 316 | } |
| 317 | |
| 318 | /** |
| 319 | * <!-- begin-user-doc --> |
| 320 | * <!-- end-user-doc --> |
| 321 | * @generated |
| 322 | */ |
| 323 | public EReference getVariableUsage_EntryLevelSystemCall_OutputParameterUsage() { |
| 324 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(9); |
| 325 | } |
| 326 | |
| 327 | /** |
| 328 | * <!-- begin-user-doc --> |
| 329 | * <!-- end-user-doc --> |
| 330 | * @generated |
| 331 | */ |
| 332 | public EReference getVariableUsage_NamedReference__VariableUsage() { |
| 333 | return (EReference)variableUsageEClass.getEStructuralFeatures().get(10); |
| 334 | } |
| 335 | |
| 336 | /** |
| 337 | * <!-- begin-user-doc --> |
| 338 | * <!-- end-user-doc --> |
| 339 | * @generated |
| 340 | */ |
| 341 | public EClass getVariableCharacterisation() { |
| 342 | return variableCharacterisationEClass; |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * <!-- begin-user-doc --> |
| 347 | * <!-- end-user-doc --> |
| 348 | * @generated |
| 349 | */ |
| 350 | public EAttribute getVariableCharacterisation_Type() { |
| 351 | return (EAttribute)variableCharacterisationEClass.getEStructuralFeatures().get(0); |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * <!-- begin-user-doc --> |
| 356 | * <!-- end-user-doc --> |
| 357 | * @generated |
| 358 | */ |
| 359 | public EReference getVariableCharacterisation_Specification_VariableCharacterisation() { |
| 360 | return (EReference)variableCharacterisationEClass.getEStructuralFeatures().get(1); |
| 361 | } |
| 362 | |
| 363 | /** |
| 364 | * <!-- begin-user-doc --> |
| 365 | * <!-- end-user-doc --> |
| 366 | * @generated |
| 367 | */ |
| 368 | public EReference getVariableCharacterisation_VariableUsage_VariableCharacterisation() { |
| 369 | return (EReference)variableCharacterisationEClass.getEStructuralFeatures().get(2); |
| 370 | } |
| 371 | |
| 372 | /** |
| 373 | * <!-- begin-user-doc --> |
| 374 | * <!-- end-user-doc --> |
| 375 | * @generated |
| 376 | */ |
| 377 | public EClass getCharacterisedVariable() { |
| 378 | return characterisedVariableEClass; |
| 379 | } |
| 380 | |
| 381 | /** |
| 382 | * <!-- begin-user-doc --> |
| 383 | * <!-- end-user-doc --> |
| 384 | * @generated |
| 385 | */ |
| 386 | public EAttribute getCharacterisedVariable_CharacterisationType() { |
| 387 | return (EAttribute)characterisedVariableEClass.getEStructuralFeatures().get(0); |
| 388 | } |
| 389 | |
| 390 | /** |
| 391 | * <!-- begin-user-doc --> |
| 392 | * <!-- end-user-doc --> |
| 393 | * @generated |
| 394 | */ |
| 395 | public EEnum getVariableCharacterisationType() { |
| 396 | return variableCharacterisationTypeEEnum; |
| 397 | } |
| 398 | |
| 399 | /** |
| 400 | * <!-- begin-user-doc --> |
| 401 | * <!-- end-user-doc --> |
| 402 | * @generated |
| 403 | */ |
| 404 | public ParameterFactory getParameterFactory() { |
| 405 | return (ParameterFactory)getEFactoryInstance(); |
| 406 | } |
| 407 | |
| 408 | /** |
| 409 | * <!-- begin-user-doc --> |
| 410 | * <!-- end-user-doc --> |
| 411 | * @generated |
| 412 | */ |
| 413 | private boolean isCreated = false; |
| 414 | |
| 415 | /** |
| 416 | * Creates the meta-model objects for the package. This method is |
| 417 | * guarded to have no affect on any invocation but its first. |
| 418 | * <!-- begin-user-doc --> |
| 419 | * <!-- end-user-doc --> |
| 420 | * @generated |
| 421 | */ |
| 422 | public void createPackageContents() { |
| 423 | if (isCreated) return; |
| 424 | isCreated = true; |
| 425 | |
| 426 | // Create classes and their features |
| 427 | variableUsageEClass = createEClass(VARIABLE_USAGE); |
| 428 | createEReference(variableUsageEClass, VARIABLE_USAGE__VARIABLE_CHARACTERISATION_VARIABLE_USAGE); |
| 429 | createEReference(variableUsageEClass, VARIABLE_USAGE__USER_DATA_VARIABLE_USAGE); |
| 430 | createEReference(variableUsageEClass, VARIABLE_USAGE__CALL_ACTION_VARIABLE_USAGE); |
| 431 | createEReference(variableUsageEClass, VARIABLE_USAGE__SYNCHRONISATION_POINT_VARIABLE_USAGE); |
| 432 | createEReference(variableUsageEClass, VARIABLE_USAGE__CALL_RETURN_ACTION_VARIABLE_USAGE); |
| 433 | createEReference(variableUsageEClass, VARIABLE_USAGE__SET_VARIABLE_ACTION_VARIABLE_USAGE); |
| 434 | createEReference(variableUsageEClass, VARIABLE_USAGE__SPECIFIED_OUTPUT_PARAMETER_ABSTRACTION_EXPECTED_EXTERNAL_OUTPUTS_VARIABLE_USAGE); |
| 435 | createEReference(variableUsageEClass, VARIABLE_USAGE__ASSEMBLY_CONTEXT_VARIABLE_USAGE); |
| 436 | createEReference(variableUsageEClass, VARIABLE_USAGE__ENTRY_LEVEL_SYSTEM_CALL_INPUT_PARAMETER_USAGE); |
| 437 | createEReference(variableUsageEClass, VARIABLE_USAGE__ENTRY_LEVEL_SYSTEM_CALL_OUTPUT_PARAMETER_USAGE); |
| 438 | createEReference(variableUsageEClass, VARIABLE_USAGE__NAMED_REFERENCE_VARIABLE_USAGE); |
| 439 | |
| 440 | variableCharacterisationEClass = createEClass(VARIABLE_CHARACTERISATION); |
| 441 | createEAttribute(variableCharacterisationEClass, VARIABLE_CHARACTERISATION__TYPE); |
| 442 | createEReference(variableCharacterisationEClass, VARIABLE_CHARACTERISATION__SPECIFICATION_VARIABLE_CHARACTERISATION); |
| 443 | createEReference(variableCharacterisationEClass, VARIABLE_CHARACTERISATION__VARIABLE_USAGE_VARIABLE_CHARACTERISATION); |
| 444 | |
| 445 | characterisedVariableEClass = createEClass(CHARACTERISED_VARIABLE); |
| 446 | createEAttribute(characterisedVariableEClass, CHARACTERISED_VARIABLE__CHARACTERISATION_TYPE); |
| 447 | |
| 448 | // Create enums |
| 449 | variableCharacterisationTypeEEnum = createEEnum(VARIABLE_CHARACTERISATION_TYPE); |
| 450 | } |
| 451 | |
| 452 | /** |
| 453 | * <!-- begin-user-doc --> |
| 454 | * <!-- end-user-doc --> |
| 455 | * @generated |
| 456 | */ |
| 457 | private boolean isInitialized = false; |
| 458 | |
| 459 | /** |
| 460 | * Complete the initialization of the package and its meta-model. This |
| 461 | * method is guarded to have no affect on any invocation but its first. |
| 462 | * <!-- begin-user-doc --> |
| 463 | * <!-- end-user-doc --> |
| 464 | * @generated |
| 465 | */ |
| 466 | public void initializePackageContents() { |
| 467 | if (isInitialized) return; |
| 468 | isInitialized = true; |
| 469 | |
| 470 | // Initialize package |
| 471 | setName(eNAME); |
| 472 | setNsPrefix(eNS_PREFIX); |
| 473 | setNsURI(eNS_URI); |
| 474 | |
| 475 | // Obtain other dependent packages |
| 476 | UsagemodelPackage theUsagemodelPackage = (UsagemodelPackage)EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI); |
| 477 | SeffPackage theSeffPackage = (SeffPackage)EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI); |
| 478 | QosannotationsPackage theQosannotationsPackage = (QosannotationsPackage)EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI); |
| 479 | CompositionPackage theCompositionPackage = (CompositionPackage)EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI); |
| 480 | StoexPackage theStoexPackage = (StoexPackage)EPackage.Registry.INSTANCE.getEPackage(StoexPackage.eNS_URI); |
| 481 | CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); |
| 482 | |
| 483 | // Create type parameters |
| 484 | |
| 485 | // Set bounds for type parameters |
| 486 | |
| 487 | // Add supertypes to classes |
| 488 | characterisedVariableEClass.getESuperTypes().add(theStoexPackage.getVariable()); |
| 489 | |
| 490 | // Initialize classes and features; add operations and parameters |
| 491 | initEClass(variableUsageEClass, VariableUsage.class, "VariableUsage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 492 | initEReference(getVariableUsage_VariableCharacterisation_VariableUsage(), this.getVariableCharacterisation(), this.getVariableCharacterisation_VariableUsage_VariableCharacterisation(), "variableCharacterisation_VariableUsage", null, 0, -1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 493 | initEReference(getVariableUsage_UserData_VariableUsage(), theUsagemodelPackage.getUserData(), theUsagemodelPackage.getUserData_UserDataParameterUsages_UserData(), "userData_VariableUsage", null, 0, 1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 494 | initEReference(getVariableUsage_CallAction__VariableUsage(), theSeffPackage.getCallAction(), theSeffPackage.getCallAction_InputVariableUsages__CallAction(), "callAction__VariableUsage", null, 0, 1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 495 | initEReference(getVariableUsage_SynchronisationPoint_VariableUsage(), theSeffPackage.getSynchronisationPoint(), theSeffPackage.getSynchronisationPoint_OutputParameterUsage_SynchronisationPoint(), "synchronisationPoint_VariableUsage", null, 0, 1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 496 | initEReference(getVariableUsage_CallReturnAction__VariableUsage(), theSeffPackage.getCallReturnAction(), theSeffPackage.getCallReturnAction_ReturnVariableUsage__CallReturnAction(), "callReturnAction__VariableUsage", null, 0, 1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 497 | initEReference(getVariableUsage_SetVariableAction_VariableUsage(), theSeffPackage.getSetVariableAction(), theSeffPackage.getSetVariableAction_LocalVariableUsages_SetVariableAction(), "setVariableAction_VariableUsage", null, 0, 1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 498 | initEReference(getVariableUsage_SpecifiedOutputParameterAbstraction_expectedExternalOutputs_VariableUsage(), theQosannotationsPackage.getSpecifiedOutputParameterAbstraction(), theQosannotationsPackage.getSpecifiedOutputParameterAbstraction_ExpectedExternalOutputs_SpecifiedOutputParameterAbstraction(), "specifiedOutputParameterAbstraction_expectedExternalOutputs_VariableUsage", null, 0, 1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 499 | initEReference(getVariableUsage_AssemblyContext__VariableUsage(), theCompositionPackage.getAssemblyContext(), theCompositionPackage.getAssemblyContext_ConfigParameterUsages__AssemblyContext(), "assemblyContext__VariableUsage", null, 0, 1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 500 | initEReference(getVariableUsage_EntryLevelSystemCall_InputParameterUsage(), theUsagemodelPackage.getEntryLevelSystemCall(), theUsagemodelPackage.getEntryLevelSystemCall_InputParameterUsages_EntryLevelSystemCall(), "entryLevelSystemCall_InputParameterUsage", null, 0, 1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 501 | initEReference(getVariableUsage_EntryLevelSystemCall_OutputParameterUsage(), theUsagemodelPackage.getEntryLevelSystemCall(), theUsagemodelPackage.getEntryLevelSystemCall_OutputParameterUsages_EntryLevelSystemCall(), "entryLevelSystemCall_OutputParameterUsage", null, 0, 1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 502 | initEReference(getVariableUsage_NamedReference__VariableUsage(), theStoexPackage.getAbstractNamedReference(), null, "namedReference__VariableUsage", null, 1, 1, VariableUsage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 503 | |
| 504 | initEClass(variableCharacterisationEClass, VariableCharacterisation.class, "VariableCharacterisation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 505 | initEAttribute(getVariableCharacterisation_Type(), this.getVariableCharacterisationType(), "type", null, 1, 1, VariableCharacterisation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 506 | initEReference(getVariableCharacterisation_Specification_VariableCharacterisation(), theCorePackage.getPCMRandomVariable(), theCorePackage.getPCMRandomVariable_VariableCharacterisation_Specification(), "specification_VariableCharacterisation", null, 1, 1, VariableCharacterisation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 507 | initEReference(getVariableCharacterisation_VariableUsage_VariableCharacterisation(), this.getVariableUsage(), this.getVariableUsage_VariableCharacterisation_VariableUsage(), "variableUsage_VariableCharacterisation", null, 0, 1, VariableCharacterisation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 508 | |
| 509 | initEClass(characterisedVariableEClass, CharacterisedVariable.class, "CharacterisedVariable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 510 | initEAttribute(getCharacterisedVariable_CharacterisationType(), this.getVariableCharacterisationType(), "characterisationType", null, 1, 1, CharacterisedVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 511 | |
| 512 | // Initialize enums and add enum literals |
| 513 | initEEnum(variableCharacterisationTypeEEnum, VariableCharacterisationType.class, "VariableCharacterisationType"); |
| 514 | addEEnumLiteral(variableCharacterisationTypeEEnum, VariableCharacterisationType.STRUCTURE); |
| 515 | addEEnumLiteral(variableCharacterisationTypeEEnum, VariableCharacterisationType.NUMBER_OF_ELEMENTS); |
| 516 | addEEnumLiteral(variableCharacterisationTypeEEnum, VariableCharacterisationType.VALUE); |
| 517 | addEEnumLiteral(variableCharacterisationTypeEEnum, VariableCharacterisationType.BYTESIZE); |
| 518 | addEEnumLiteral(variableCharacterisationTypeEEnum, VariableCharacterisationType.TYPE); |
| 519 | } |
| 520 | |
| 521 | } //ParameterPackageImpl |