EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.allocation.impl]

COVERAGE SUMMARY FOR SOURCE FILE [AllocationPackageImpl.java]

nameclass, %method, %block, %line, %
AllocationPackageImpl.java0%   (0/2)0%   (0/17)0%   (0/903)0%   (0/147)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AllocationPackageImpl0%   (0/1)0%   (0/15)0%   (0/898)0%   (0/145)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
AllocationPackageImpl (): void 0%   (0/1)0%   (0/17)0%   (0/6)
createPackageContents (): void 0%   (0/1)0%   (0/53)0%   (0/12)
getAllocation (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getAllocationContext (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getAllocationContext_Allocation_AllocationContext (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getAllocationContext_AssemblyContext_AllocationContext (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getAllocationContext_EventChannel__AllocationContext (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getAllocationContext_ResourceContainer_AllocationContext (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getAllocationFactory (): AllocationFactory 0%   (0/1)0%   (0/4)0%   (0/1)
getAllocation_AllocationContexts_Allocation (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getAllocation_System_Allocation (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getAllocation_TargetResourceEnvironment_Allocation (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
init (): AllocationPackage 0%   (0/1)0%   (0/353)0%   (0/70)
initializePackageContents (): void 0%   (0/1)0%   (0/413)0%   (0/45)
     
class AllocationPackageImpl$10%   (0/1)0%   (0/2)0%   (0/5)0%   (0/3)
AllocationPackageImpl$1 (): void 0%   (0/1)0%   (0/3)0%   (0/2)
getEValidator (): EValidator 0%   (0/1)0%   (0/2)0%   (0/1)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.allocation.impl;
7 
8import org.eclipse.emf.ecore.EClass;
9import org.eclipse.emf.ecore.EGenericType;
10import org.eclipse.emf.ecore.EOperation;
11import org.eclipse.emf.ecore.EPackage;
12import org.eclipse.emf.ecore.EReference;
13import org.eclipse.emf.ecore.EValidator;
14import org.eclipse.emf.ecore.impl.EPackageImpl;
15 
16import de.uka.ipd.sdq.identifier.IdentifierPackage;
17import de.uka.ipd.sdq.pcm.PcmPackage;
18import de.uka.ipd.sdq.pcm.allocation.Allocation;
19import de.uka.ipd.sdq.pcm.allocation.AllocationContext;
20import de.uka.ipd.sdq.pcm.allocation.AllocationFactory;
21import de.uka.ipd.sdq.pcm.allocation.AllocationPackage;
22import de.uka.ipd.sdq.pcm.allocation.util.AllocationValidator;
23import de.uka.ipd.sdq.pcm.core.CorePackage;
24import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
25import de.uka.ipd.sdq.pcm.core.composition.impl.CompositionPackageImpl;
26import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
27import de.uka.ipd.sdq.pcm.core.entity.impl.EntityPackageImpl;
28import de.uka.ipd.sdq.pcm.core.impl.CorePackageImpl;
29import de.uka.ipd.sdq.pcm.impl.PcmPackageImpl;
30import de.uka.ipd.sdq.pcm.parameter.ParameterPackage;
31import de.uka.ipd.sdq.pcm.parameter.impl.ParameterPackageImpl;
32import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage;
33import de.uka.ipd.sdq.pcm.protocol.impl.ProtocolPackageImpl;
34import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage;
35import de.uka.ipd.sdq.pcm.qosannotations.impl.QosannotationsPackageImpl;
36import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.Qos_performancePackage;
37import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl.Qos_performancePackageImpl;
38import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.Qos_reliabilityPackage;
39import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.impl.Qos_reliabilityPackageImpl;
40import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage;
41import de.uka.ipd.sdq.pcm.reliability.impl.ReliabilityPackageImpl;
42import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
43import de.uka.ipd.sdq.pcm.repository.impl.RepositoryPackageImpl;
44import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage;
45import de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceenvironmentPackageImpl;
46import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage;
47import de.uka.ipd.sdq.pcm.resourcetype.impl.ResourcetypePackageImpl;
48import de.uka.ipd.sdq.pcm.seff.SeffPackage;
49import de.uka.ipd.sdq.pcm.seff.impl.SeffPackageImpl;
50import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage;
51import de.uka.ipd.sdq.pcm.seff.seff_performance.impl.Seff_performancePackageImpl;
52import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage;
53import de.uka.ipd.sdq.pcm.seff.seff_reliability.impl.Seff_reliabilityPackageImpl;
54import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage;
55import de.uka.ipd.sdq.pcm.subsystem.impl.SubsystemPackageImpl;
56import de.uka.ipd.sdq.pcm.system.SystemPackage;
57import de.uka.ipd.sdq.pcm.system.impl.SystemPackageImpl;
58import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage;
59import de.uka.ipd.sdq.pcm.usagemodel.impl.UsagemodelPackageImpl;
60import 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 */
68public class AllocationPackageImpl extends EPackageImpl implements AllocationPackage {
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 allocationContextEClass = null;
82 
83        /**
84         * <!-- begin-user-doc -->
85         * <!-- end-user-doc -->
86         * @generated
87         */
88        private EClass allocationEClass = null;
89 
90        /**
91         * Creates an instance of the model <b>Package</b>, registered with
92         * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
93         * package URI value.
94         * <p>Note: the correct way to create the package is via the static
95         * factory method {@link #init init()}, which also performs
96         * initialization of the package, or returns the registered package,
97         * if one already exists.
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @see org.eclipse.emf.ecore.EPackage.Registry
101         * @see de.uka.ipd.sdq.pcm.allocation.AllocationPackage#eNS_URI
102         * @see #init()
103         * @generated
104         */
105        private AllocationPackageImpl() {
106                super(eNS_URI, AllocationFactory.eINSTANCE);
107        }
108 
109        /**
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @generated
113         */
114        private static boolean isInited = false;
115 
116        /**
117         * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
118         * 
119         * <p>This method is used to initialize {@link AllocationPackage#eINSTANCE} when that field is accessed.
120         * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
121         * <!-- begin-user-doc -->
122         * <!-- end-user-doc -->
123         * @see #eNS_URI
124         * @see #createPackageContents()
125         * @see #initializePackageContents()
126         * @generated
127         */
128        public static AllocationPackage init() {
129                if (isInited) return (AllocationPackage)EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI);
130 
131                // Obtain or create and register package
132                AllocationPackageImpl theAllocationPackage = (AllocationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AllocationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AllocationPackageImpl());
133 
134                isInited = true;
135 
136                // Initialize simple dependencies
137                IdentifierPackage.eINSTANCE.eClass();
138                StoexPackage.eINSTANCE.eClass();
139 
140                // Obtain or create and register interdependencies
141                PcmPackageImpl thePcmPackage = (PcmPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) instanceof PcmPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) : PcmPackage.eINSTANCE);
142                CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) : CorePackage.eINSTANCE);
143                EntityPackageImpl theEntityPackage = (EntityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) instanceof EntityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) : EntityPackage.eINSTANCE);
144                CompositionPackageImpl theCompositionPackage = (CompositionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) instanceof CompositionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) : CompositionPackage.eINSTANCE);
145                UsagemodelPackageImpl theUsagemodelPackage = (UsagemodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) instanceof UsagemodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) : UsagemodelPackage.eINSTANCE);
146                RepositoryPackageImpl theRepositoryPackage = (RepositoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) instanceof RepositoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) : RepositoryPackage.eINSTANCE);
147                ResourcetypePackageImpl theResourcetypePackage = (ResourcetypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) instanceof ResourcetypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) : ResourcetypePackage.eINSTANCE);
148                ProtocolPackageImpl theProtocolPackage = (ProtocolPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) instanceof ProtocolPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) : ProtocolPackage.eINSTANCE);
149                ParameterPackageImpl theParameterPackage = (ParameterPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) instanceof ParameterPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) : ParameterPackage.eINSTANCE);
150                ReliabilityPackageImpl theReliabilityPackage = (ReliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) instanceof ReliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) : ReliabilityPackage.eINSTANCE);
151                SeffPackageImpl theSeffPackage = (SeffPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) instanceof SeffPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) : SeffPackage.eINSTANCE);
152                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);
153                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);
154                QosannotationsPackageImpl theQosannotationsPackage = (QosannotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) instanceof QosannotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) : QosannotationsPackage.eINSTANCE);
155                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);
156                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);
157                SystemPackageImpl theSystemPackage = (SystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) instanceof SystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) : SystemPackage.eINSTANCE);
158                ResourceenvironmentPackageImpl theResourceenvironmentPackage = (ResourceenvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) instanceof ResourceenvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) : ResourceenvironmentPackage.eINSTANCE);
159                SubsystemPackageImpl theSubsystemPackage = (SubsystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) instanceof SubsystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) : SubsystemPackage.eINSTANCE);
160 
161                // Create package meta-data objects
162                theAllocationPackage.createPackageContents();
163                thePcmPackage.createPackageContents();
164                theCorePackage.createPackageContents();
165                theEntityPackage.createPackageContents();
166                theCompositionPackage.createPackageContents();
167                theUsagemodelPackage.createPackageContents();
168                theRepositoryPackage.createPackageContents();
169                theResourcetypePackage.createPackageContents();
170                theProtocolPackage.createPackageContents();
171                theParameterPackage.createPackageContents();
172                theReliabilityPackage.createPackageContents();
173                theSeffPackage.createPackageContents();
174                theSeff_performancePackage.createPackageContents();
175                theSeff_reliabilityPackage.createPackageContents();
176                theQosannotationsPackage.createPackageContents();
177                theQos_performancePackage.createPackageContents();
178                theQos_reliabilityPackage.createPackageContents();
179                theSystemPackage.createPackageContents();
180                theResourceenvironmentPackage.createPackageContents();
181                theSubsystemPackage.createPackageContents();
182 
183                // Initialize created meta-data
184                theAllocationPackage.initializePackageContents();
185                thePcmPackage.initializePackageContents();
186                theCorePackage.initializePackageContents();
187                theEntityPackage.initializePackageContents();
188                theCompositionPackage.initializePackageContents();
189                theUsagemodelPackage.initializePackageContents();
190                theRepositoryPackage.initializePackageContents();
191                theResourcetypePackage.initializePackageContents();
192                theProtocolPackage.initializePackageContents();
193                theParameterPackage.initializePackageContents();
194                theReliabilityPackage.initializePackageContents();
195                theSeffPackage.initializePackageContents();
196                theSeff_performancePackage.initializePackageContents();
197                theSeff_reliabilityPackage.initializePackageContents();
198                theQosannotationsPackage.initializePackageContents();
199                theQos_performancePackage.initializePackageContents();
200                theQos_reliabilityPackage.initializePackageContents();
201                theSystemPackage.initializePackageContents();
202                theResourceenvironmentPackage.initializePackageContents();
203                theSubsystemPackage.initializePackageContents();
204 
205                // Register package validator
206                EValidator.Registry.INSTANCE.put
207                        (theAllocationPackage, 
208                         new EValidator.Descriptor() {
209                                 public EValidator getEValidator() {
210                                         return AllocationValidator.INSTANCE;
211                                 }
212                         });
213 
214                // Mark meta-data to indicate it can't be changed
215                theAllocationPackage.freeze();
216 
217  
218                // Update the registry and return the package
219                EPackage.Registry.INSTANCE.put(AllocationPackage.eNS_URI, theAllocationPackage);
220                return theAllocationPackage;
221        }
222 
223        /**
224         * <!-- begin-user-doc -->
225         * <!-- end-user-doc -->
226         * @generated
227         */
228        public EClass getAllocationContext() {
229                return allocationContextEClass;
230        }
231 
232        /**
233         * <!-- begin-user-doc -->
234         * <!-- end-user-doc -->
235         * @generated
236         */
237        public EReference getAllocationContext_ResourceContainer_AllocationContext() {
238                return (EReference)allocationContextEClass.getEStructuralFeatures().get(0);
239        }
240 
241        /**
242         * <!-- begin-user-doc -->
243         * <!-- end-user-doc -->
244         * @generated
245         */
246        public EReference getAllocationContext_AssemblyContext_AllocationContext() {
247                return (EReference)allocationContextEClass.getEStructuralFeatures().get(1);
248        }
249 
250        /**
251         * <!-- begin-user-doc -->
252         * <!-- end-user-doc -->
253         * @generated
254         */
255        public EReference getAllocationContext_Allocation_AllocationContext() {
256                return (EReference)allocationContextEClass.getEStructuralFeatures().get(2);
257        }
258 
259        /**
260         * <!-- begin-user-doc -->
261         * <!-- end-user-doc -->
262         * @generated
263         */
264        public EReference getAllocationContext_EventChannel__AllocationContext() {
265                return (EReference)allocationContextEClass.getEStructuralFeatures().get(3);
266        }
267 
268        /**
269         * <!-- begin-user-doc -->
270         * <!-- end-user-doc -->
271         * @generated
272         */
273        public EClass getAllocation() {
274                return allocationEClass;
275        }
276 
277        /**
278         * <!-- begin-user-doc -->
279         * <!-- end-user-doc -->
280         * @generated
281         */
282        public EReference getAllocation_TargetResourceEnvironment_Allocation() {
283                return (EReference)allocationEClass.getEStructuralFeatures().get(0);
284        }
285 
286        /**
287         * <!-- begin-user-doc -->
288         * <!-- end-user-doc -->
289         * @generated
290         */
291        public EReference getAllocation_System_Allocation() {
292                return (EReference)allocationEClass.getEStructuralFeatures().get(1);
293        }
294 
295        /**
296         * <!-- begin-user-doc -->
297         * <!-- end-user-doc -->
298         * @generated
299         */
300        public EReference getAllocation_AllocationContexts_Allocation() {
301                return (EReference)allocationEClass.getEStructuralFeatures().get(2);
302        }
303 
304        /**
305         * <!-- begin-user-doc -->
306         * <!-- end-user-doc -->
307         * @generated
308         */
309        public AllocationFactory getAllocationFactory() {
310                return (AllocationFactory)getEFactoryInstance();
311        }
312 
313        /**
314         * <!-- begin-user-doc -->
315         * <!-- end-user-doc -->
316         * @generated
317         */
318        private boolean isCreated = false;
319 
320        /**
321         * Creates the meta-model objects for the package.  This method is
322         * guarded to have no affect on any invocation but its first.
323         * <!-- begin-user-doc -->
324         * <!-- end-user-doc -->
325         * @generated
326         */
327        public void createPackageContents() {
328                if (isCreated) return;
329                isCreated = true;
330 
331                // Create classes and their features
332                allocationContextEClass = createEClass(ALLOCATION_CONTEXT);
333                createEReference(allocationContextEClass, ALLOCATION_CONTEXT__RESOURCE_CONTAINER_ALLOCATION_CONTEXT);
334                createEReference(allocationContextEClass, ALLOCATION_CONTEXT__ASSEMBLY_CONTEXT_ALLOCATION_CONTEXT);
335                createEReference(allocationContextEClass, ALLOCATION_CONTEXT__ALLOCATION_ALLOCATION_CONTEXT);
336                createEReference(allocationContextEClass, ALLOCATION_CONTEXT__EVENT_CHANNEL_ALLOCATION_CONTEXT);
337 
338                allocationEClass = createEClass(ALLOCATION);
339                createEReference(allocationEClass, ALLOCATION__TARGET_RESOURCE_ENVIRONMENT_ALLOCATION);
340                createEReference(allocationEClass, ALLOCATION__SYSTEM_ALLOCATION);
341                createEReference(allocationEClass, ALLOCATION__ALLOCATION_CONTEXTS_ALLOCATION);
342        }
343 
344        /**
345         * <!-- begin-user-doc -->
346         * <!-- end-user-doc -->
347         * @generated
348         */
349        private boolean isInitialized = false;
350 
351        /**
352         * Complete the initialization of the package and its meta-model.  This
353         * method is guarded to have no affect on any invocation but its first.
354         * <!-- begin-user-doc -->
355         * <!-- end-user-doc -->
356         * @generated
357         */
358        public void initializePackageContents() {
359                if (isInitialized) return;
360                isInitialized = true;
361 
362                // Initialize package
363                setName(eNAME);
364                setNsPrefix(eNS_PREFIX);
365                setNsURI(eNS_URI);
366 
367                // Obtain other dependent packages
368                EntityPackage theEntityPackage = (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI);
369                ResourceenvironmentPackage theResourceenvironmentPackage = (ResourceenvironmentPackage)EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI);
370                CompositionPackage theCompositionPackage = (CompositionPackage)EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI);
371                SystemPackage theSystemPackage = (SystemPackage)EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI);
372 
373                // Create type parameters
374 
375                // Set bounds for type parameters
376 
377                // Add supertypes to classes
378                allocationContextEClass.getESuperTypes().add(theEntityPackage.getEntity());
379                allocationEClass.getESuperTypes().add(theEntityPackage.getEntity());
380 
381                // Initialize classes and features; add operations and parameters
382                initEClass(allocationContextEClass, AllocationContext.class, "AllocationContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
383                initEReference(getAllocationContext_ResourceContainer_AllocationContext(), theResourceenvironmentPackage.getResourceContainer(), null, "resourceContainer_AllocationContext", null, 1, 1, AllocationContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
384                initEReference(getAllocationContext_AssemblyContext_AllocationContext(), theCompositionPackage.getAssemblyContext(), null, "assemblyContext_AllocationContext", null, 0, 1, AllocationContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
385                initEReference(getAllocationContext_Allocation_AllocationContext(), this.getAllocation(), this.getAllocation_AllocationContexts_Allocation(), "allocation_AllocationContext", null, 1, 1, AllocationContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
386                initEReference(getAllocationContext_EventChannel__AllocationContext(), theCompositionPackage.getEventChannel(), null, "eventChannel__AllocationContext", null, 0, 1, AllocationContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
387 
388                EOperation op = addEOperation(allocationContextEClass, ecorePackage.getEBoolean(), "OneAssemblyContextOrOneEventChannelShouldBeReferred", 0, 1, IS_UNIQUE, IS_ORDERED);
389                addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED);
390                EGenericType g1 = createEGenericType(ecorePackage.getEMap());
391                EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject());
392                g1.getETypeArguments().add(g2);
393                g2 = createEGenericType(ecorePackage.getEJavaObject());
394                g1.getETypeArguments().add(g2);
395                addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
396 
397                initEClass(allocationEClass, Allocation.class, "Allocation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
398                initEReference(getAllocation_TargetResourceEnvironment_Allocation(), theResourceenvironmentPackage.getResourceEnvironment(), null, "targetResourceEnvironment_Allocation", null, 0, 1, Allocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
399                initEReference(getAllocation_System_Allocation(), theSystemPackage.getSystem(), null, "system_Allocation", null, 1, 1, Allocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
400                initEReference(getAllocation_AllocationContexts_Allocation(), this.getAllocationContext(), this.getAllocationContext_Allocation_AllocationContext(), "allocationContexts_Allocation", null, 0, -1, Allocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
401 
402                op = addEOperation(allocationEClass, ecorePackage.getEBoolean(), "EachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce", 0, 1, IS_UNIQUE, IS_ORDERED);
403                addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED);
404                g1 = createEGenericType(ecorePackage.getEMap());
405                g2 = createEGenericType(ecorePackage.getEJavaObject());
406                g1.getETypeArguments().add(g2);
407                g2 = createEGenericType(ecorePackage.getEJavaObject());
408                g1.getETypeArguments().add(g2);
409                addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
410 
411                op = addEOperation(allocationEClass, ecorePackage.getEBoolean(), "CommunicatingServersHaveToBeConnectedByLinkingResource", 0, 1, IS_UNIQUE, IS_ORDERED);
412                addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED);
413                g1 = createEGenericType(ecorePackage.getEMap());
414                g2 = createEGenericType(ecorePackage.getEJavaObject());
415                g1.getETypeArguments().add(g2);
416                g2 = createEGenericType(ecorePackage.getEJavaObject());
417                g1.getETypeArguments().add(g2);
418                addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
419        }
420 
421} //AllocationPackageImpl

[all classes][de.uka.ipd.sdq.pcm.allocation.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov