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

COVERAGE SUMMARY FOR SOURCE FILE [costPackageImpl.java]

nameclass, %method, %block, %line, %
costPackageImpl.java0%   (0/1)0%   (0/39)0%   (0/1144)0%   (0/161)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class costPackageImpl0%   (0/1)0%   (0/39)0%   (0/1144)0%   (0/161)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
costPackageImpl (): void 0%   (0/1)0%   (0/47)0%   (0/16)
createExtendedMetaDataAnnotations (): void 0%   (0/1)0%   (0/18)0%   (0/7)
createPackageContents (): void 0%   (0/1)0%   (0/168)0%   (0/35)
getComponentCost (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getComponentCostPerInstance (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getComponentCostPerInstance_Allocation (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getComponentCost_ComponentInitialCost (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getComponentCost_ComponentOperatingCost (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getComponentCost_RepositoryComponent (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getCost (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getCostRepository (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getCostRepository_Cost (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getCost_AnnotatedElement (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getCost_InitialCost (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getCost_OperatingCost (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getFixedLinkingResourceCost (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getFixedProcessingResourceCost (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getFixedProcessingResourceCost_FixedInitialCost (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getFixedProcessingResourceCost_FixedOperatingCost (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getLinkingResourceCost (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getLinkingResourceCost_Linkingresource (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getProcessingResourceCost (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getProcessingResourceCost_Processingresourcespecification (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getScalarFunction (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getScalarFunction_Specification (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getScalarFunction_Term (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getVariableCost (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getVariableCost_FixedInitialCost (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getVariableCost_FixedOperatingCost (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getVariableLinkingResourceCost (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getVariableLinkingResourceCost_BandwidthOperatingFactor (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getVariableLinkingResourceCost_BandwithInitialFactor (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getVariableProcessingResourceCost (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getVariableProcessingResourceCost_ProcessingRateInitialFunction (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getVariableProcessingResourceCost_ProcessingRateOperatingFunction (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getcostFactory (): costFactory 0%   (0/1)0%   (0/4)0%   (0/1)
init (): costPackage 0%   (0/1)0%   (0/42)0%   (0/10)
initializePackageContents (): void 0%   (0/1)0%   (0/686)0%   (0/58)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.pcm.cost.impl;
8 
9import de.uka.ipd.sdq.pcm.PcmPackage;
10import de.uka.ipd.sdq.pcm.allocation.AllocationPackage;
11 
12import de.uka.ipd.sdq.pcm.cost.ComponentCost;
13import de.uka.ipd.sdq.pcm.cost.ComponentCostPerInstance;
14import de.uka.ipd.sdq.pcm.cost.ComponentCostPerType;
15import de.uka.ipd.sdq.pcm.core.CorePackage;
16 
17import de.uka.ipd.sdq.pcm.cost.Cost;
18import de.uka.ipd.sdq.pcm.cost.CostRepository;
19import de.uka.ipd.sdq.pcm.cost.FixedLinkingResourceCost;
20import de.uka.ipd.sdq.pcm.cost.FixedProcessingResourceCost;
21import de.uka.ipd.sdq.pcm.cost.LinkingResourceCost;
22import de.uka.ipd.sdq.pcm.cost.ProcessingResourceCost;
23import de.uka.ipd.sdq.pcm.cost.ScalarFunction;
24import de.uka.ipd.sdq.pcm.cost.VariableCost;
25import de.uka.ipd.sdq.pcm.cost.VariableLinkingResourceCost;
26import de.uka.ipd.sdq.pcm.cost.VariableProcessingResourceCost;
27import de.uka.ipd.sdq.pcm.cost.costFactory;
28import de.uka.ipd.sdq.pcm.cost.costPackage;
29 
30import de.uka.ipd.sdq.pcm.parameter.ParameterPackage;
31 
32import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage;
33 
34import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage;
35 
36import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
37 
38import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage;
39 
40import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage;
41 
42import de.uka.ipd.sdq.pcm.seff.SeffPackage;
43 
44import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage;
45 
46import de.uka.ipd.sdq.pcm.system.SystemPackage;
47 
48import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage;
49 
50import de.uka.ipd.sdq.stoex.StoexPackage;
51import org.eclipse.emf.ecore.EAttribute;
52import org.eclipse.emf.ecore.EClass;
53import org.eclipse.emf.ecore.EPackage;
54import org.eclipse.emf.ecore.EReference;
55 
56import org.eclipse.emf.ecore.EcorePackage;
57import org.eclipse.emf.ecore.impl.EPackageImpl;
58 
59/**
60 * <!-- begin-user-doc -->
61 * An implementation of the model <b>Package</b>.
62 * <!-- end-user-doc -->
63 * @generated
64 */
65public class costPackageImpl extends EPackageImpl implements costPackage {
66        /**
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @generated
70         */
71        private EClass componentCostEClass = null;
72 
73        /**
74         * <!-- begin-user-doc -->
75         * <!-- end-user-doc -->
76         * @generated
77         */
78        private EClass costEClass = null;
79 
80        /**
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @generated
84         */
85        private EClass fixedLinkingResourceCostEClass = null;
86 
87        /**
88         * <!-- begin-user-doc -->
89         * <!-- end-user-doc -->
90         * @generated
91         */
92        private EClass linkingResourceCostEClass = null;
93 
94        /**
95         * <!-- begin-user-doc -->
96         * <!-- end-user-doc -->
97         * @generated
98         */
99        private EClass fixedProcessingResourceCostEClass = null;
100 
101        /**
102         * <!-- begin-user-doc -->
103         * <!-- end-user-doc -->
104         * @generated
105         */
106        private EClass processingResourceCostEClass = null;
107 
108        /**
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @generated
112         */
113        private EClass variableCostEClass = null;
114 
115        /**
116         * <!-- begin-user-doc -->
117         * <!-- end-user-doc -->
118         * @generated
119         */
120        private EClass variableLinkingResourceCostEClass = null;
121 
122        /**
123         * <!-- begin-user-doc -->
124         * <!-- end-user-doc -->
125         * @generated
126         */
127        private EClass variableProcessingResourceCostEClass = null;
128 
129        /**
130         * <!-- begin-user-doc -->
131         * <!-- end-user-doc -->
132         * @generated
133         */
134        private EClass scalarFunctionEClass = null;
135 
136        /**
137         * <!-- begin-user-doc -->
138         * <!-- end-user-doc -->
139         * @generated
140         */
141        private EClass costRepositoryEClass = null;
142 
143        /**
144         * <!-- begin-user-doc -->
145         * <!-- end-user-doc -->
146         * @generated
147         */
148        private EClass componentCostPerInstanceEClass = null;
149 
150        /**
151         * Creates an instance of the model <b>Package</b>, registered with
152         * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
153         * package URI value.
154         * <p>Note: the correct way to create the package is via the static
155         * factory method {@link #init init()}, which also performs
156         * initialization of the package, or returns the registered package,
157         * if one already exists.
158         * <!-- begin-user-doc -->
159         * <!-- end-user-doc -->
160         * @see org.eclipse.emf.ecore.EPackage.Registry
161         * @see de.uka.ipd.sdq.pcm.cost.costPackage#eNS_URI
162         * @see #init()
163         * @generated
164         */
165        private costPackageImpl() {
166                super(eNS_URI, costFactory.eINSTANCE);
167        }
168 
169        /**
170         * <!-- begin-user-doc -->
171         * <!-- end-user-doc -->
172         * @generated
173         */
174        private static boolean isInited = false;
175 
176        /**
177         * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
178         * 
179         * <p>This method is used to initialize {@link costPackage#eINSTANCE} when that field is accessed.
180         * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
181         * <!-- begin-user-doc -->
182         * <!-- end-user-doc -->
183         * @see #eNS_URI
184         * @see #createPackageContents()
185         * @see #initializePackageContents()
186         * @generated
187         */
188        public static costPackage init() {
189                if (isInited) return (costPackage)EPackage.Registry.INSTANCE.getEPackage(costPackage.eNS_URI);
190 
191                // Obtain or create and register package
192                costPackageImpl thecostPackage = (costPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof costPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new costPackageImpl());
193 
194                isInited = true;
195 
196                // Initialize simple dependencies
197                EcorePackage.eINSTANCE.eClass();
198                PcmPackage.eINSTANCE.eClass();
199 
200                // Create package meta-data objects
201                thecostPackage.createPackageContents();
202 
203                // Initialize created meta-data
204                thecostPackage.initializePackageContents();
205 
206                // Mark meta-data to indicate it can't be changed
207                thecostPackage.freeze();
208 
209  
210                // Update the registry and return the package
211                EPackage.Registry.INSTANCE.put(costPackage.eNS_URI, thecostPackage);
212                return thecostPackage;
213        }
214 
215        /**
216         * <!-- begin-user-doc -->
217         * <!-- end-user-doc -->
218         * @generated
219         */
220        public EClass getComponentCost() {
221                return componentCostEClass;
222        }
223 
224        /**
225         * <!-- begin-user-doc -->
226         * <!-- end-user-doc -->
227         * @generated
228         */
229        public EAttribute getComponentCost_ComponentOperatingCost() {
230                return (EAttribute)componentCostEClass.getEStructuralFeatures().get(0);
231        }
232 
233        /**
234         * <!-- begin-user-doc -->
235         * <!-- end-user-doc -->
236         * @generated
237         */
238        public EAttribute getComponentCost_ComponentInitialCost() {
239                return (EAttribute)componentCostEClass.getEStructuralFeatures().get(1);
240        }
241 
242        /**
243         * <!-- begin-user-doc -->
244         * <!-- end-user-doc -->
245         * @generated
246         */
247        public EReference getComponentCost_RepositoryComponent() {
248                return (EReference)componentCostEClass.getEStructuralFeatures().get(2);
249        }
250 
251        /**
252         * <!-- begin-user-doc -->
253         * <!-- end-user-doc -->
254         * @generated
255         */
256        public EClass getCost() {
257                return costEClass;
258        }
259 
260        /**
261         * <!-- begin-user-doc -->
262         * <!-- end-user-doc -->
263         * @generated
264         */
265        public EReference getCost_AnnotatedElement() {
266                return (EReference)costEClass.getEStructuralFeatures().get(0);
267        }
268 
269        /**
270         * <!-- begin-user-doc -->
271         * <!-- end-user-doc -->
272         * @generated
273         */
274        public EAttribute getCost_OperatingCost() {
275                return (EAttribute)costEClass.getEStructuralFeatures().get(1);
276        }
277 
278        /**
279         * <!-- begin-user-doc -->
280         * <!-- end-user-doc -->
281         * @generated
282         */
283        public EAttribute getCost_InitialCost() {
284                return (EAttribute)costEClass.getEStructuralFeatures().get(2);
285        }
286 
287        /**
288         * <!-- begin-user-doc -->
289         * <!-- end-user-doc -->
290         * @generated
291         */
292        public EClass getFixedLinkingResourceCost() {
293                return fixedLinkingResourceCostEClass;
294        }
295 
296        /**
297         * <!-- begin-user-doc -->
298         * <!-- end-user-doc -->
299         * @generated
300         */
301        public EClass getLinkingResourceCost() {
302                return linkingResourceCostEClass;
303        }
304 
305        /**
306         * <!-- begin-user-doc -->
307         * <!-- end-user-doc -->
308         * @generated
309         */
310        public EReference getLinkingResourceCost_Linkingresource() {
311                return (EReference)linkingResourceCostEClass.getEStructuralFeatures().get(0);
312        }
313 
314        /**
315         * <!-- begin-user-doc -->
316         * <!-- end-user-doc -->
317         * @generated
318         */
319        public EClass getFixedProcessingResourceCost() {
320                return fixedProcessingResourceCostEClass;
321        }
322 
323        /**
324         * <!-- begin-user-doc -->
325         * <!-- end-user-doc -->
326         * @generated
327         */
328        public EAttribute getFixedProcessingResourceCost_FixedOperatingCost() {
329                return (EAttribute)fixedProcessingResourceCostEClass.getEStructuralFeatures().get(0);
330        }
331 
332        /**
333         * <!-- begin-user-doc -->
334         * <!-- end-user-doc -->
335         * @generated
336         */
337        public EAttribute getFixedProcessingResourceCost_FixedInitialCost() {
338                return (EAttribute)fixedProcessingResourceCostEClass.getEStructuralFeatures().get(1);
339        }
340 
341        /**
342         * <!-- begin-user-doc -->
343         * <!-- end-user-doc -->
344         * @generated
345         */
346        public EClass getProcessingResourceCost() {
347                return processingResourceCostEClass;
348        }
349 
350        /**
351         * <!-- begin-user-doc -->
352         * <!-- end-user-doc -->
353         * @generated
354         */
355        public EReference getProcessingResourceCost_Processingresourcespecification() {
356                return (EReference)processingResourceCostEClass.getEStructuralFeatures().get(0);
357        }
358 
359        /**
360         * <!-- begin-user-doc -->
361         * <!-- end-user-doc -->
362         * @generated
363         */
364        public EClass getVariableCost() {
365                return variableCostEClass;
366        }
367 
368        /**
369         * <!-- begin-user-doc -->
370         * <!-- end-user-doc -->
371         * @generated
372         */
373        public EAttribute getVariableCost_FixedInitialCost() {
374                return (EAttribute)variableCostEClass.getEStructuralFeatures().get(0);
375        }
376 
377        /**
378         * <!-- begin-user-doc -->
379         * <!-- end-user-doc -->
380         * @generated
381         */
382        public EAttribute getVariableCost_FixedOperatingCost() {
383                return (EAttribute)variableCostEClass.getEStructuralFeatures().get(1);
384        }
385 
386        /**
387         * <!-- begin-user-doc -->
388         * <!-- end-user-doc -->
389         * @generated
390         */
391        public EClass getVariableLinkingResourceCost() {
392                return variableLinkingResourceCostEClass;
393        }
394 
395        /**
396         * <!-- begin-user-doc -->
397         * <!-- end-user-doc -->
398         * @generated
399         */
400        public EAttribute getVariableLinkingResourceCost_BandwithInitialFactor() {
401                return (EAttribute)variableLinkingResourceCostEClass.getEStructuralFeatures().get(0);
402        }
403 
404        /**
405         * <!-- begin-user-doc -->
406         * <!-- end-user-doc -->
407         * @generated
408         */
409        public EAttribute getVariableLinkingResourceCost_BandwidthOperatingFactor() {
410                return (EAttribute)variableLinkingResourceCostEClass.getEStructuralFeatures().get(1);
411        }
412 
413        /**
414         * <!-- begin-user-doc -->
415         * <!-- end-user-doc -->
416         * @generated
417         */
418        public EClass getVariableProcessingResourceCost() {
419                return variableProcessingResourceCostEClass;
420        }
421 
422        /**
423         * <!-- begin-user-doc -->
424         * <!-- end-user-doc -->
425         * @generated
426         */
427        public EReference getVariableProcessingResourceCost_ProcessingRateInitialFunction() {
428                return (EReference)variableProcessingResourceCostEClass.getEStructuralFeatures().get(0);
429        }
430 
431        /**
432         * <!-- begin-user-doc -->
433         * <!-- end-user-doc -->
434         * @generated
435         */
436        public EReference getVariableProcessingResourceCost_ProcessingRateOperatingFunction() {
437                return (EReference)variableProcessingResourceCostEClass.getEStructuralFeatures().get(1);
438        }
439 
440        /**
441         * <!-- begin-user-doc -->
442         * <!-- end-user-doc -->
443         * @generated
444         */
445        public EClass getScalarFunction() {
446                return scalarFunctionEClass;
447        }
448 
449        /**
450         * <!-- begin-user-doc -->
451         * <!-- end-user-doc -->
452         * @generated
453         */
454        public EAttribute getScalarFunction_Specification() {
455                return (EAttribute)scalarFunctionEClass.getEStructuralFeatures().get(0);
456        }
457 
458        /**
459         * <!-- begin-user-doc -->
460         * <!-- end-user-doc -->
461         * @generated
462         */
463        public EReference getScalarFunction_Term() {
464                return (EReference)scalarFunctionEClass.getEStructuralFeatures().get(1);
465        }
466 
467        /**
468         * <!-- begin-user-doc -->
469         * <!-- end-user-doc -->
470         * @generated
471         */
472        public EClass getCostRepository() {
473                return costRepositoryEClass;
474        }
475 
476        /**
477         * <!-- begin-user-doc -->
478         * <!-- end-user-doc -->
479         * @generated
480         */
481        public EReference getCostRepository_Cost() {
482                return (EReference)costRepositoryEClass.getEStructuralFeatures().get(0);
483        }
484 
485        /**
486         * <!-- begin-user-doc -->
487         * <!-- end-user-doc -->
488         * @generated
489         */
490        public EClass getComponentCostPerInstance() {
491                return componentCostPerInstanceEClass;
492        }
493 
494        /**
495         * <!-- begin-user-doc -->
496         * <!-- end-user-doc -->
497         * @generated
498         */
499        public EReference getComponentCostPerInstance_Allocation() {
500                return (EReference)componentCostPerInstanceEClass.getEStructuralFeatures().get(0);
501        }
502 
503        /**
504         * <!-- begin-user-doc -->
505         * <!-- end-user-doc -->
506         * @generated
507         */
508        public costFactory getcostFactory() {
509                return (costFactory)getEFactoryInstance();
510        }
511 
512        /**
513         * <!-- begin-user-doc -->
514         * <!-- end-user-doc -->
515         * @generated
516         */
517        private boolean isCreated = false;
518 
519        /**
520         * Creates the meta-model objects for the package.  This method is
521         * guarded to have no affect on any invocation but its first.
522         * <!-- begin-user-doc -->
523         * <!-- end-user-doc -->
524         * @generated
525         */
526        public void createPackageContents() {
527                if (isCreated) return;
528                isCreated = true;
529 
530                // Create classes and their features
531                componentCostEClass = createEClass(COMPONENT_COST);
532                createEAttribute(componentCostEClass, COMPONENT_COST__COMPONENT_OPERATING_COST);
533                createEAttribute(componentCostEClass, COMPONENT_COST__COMPONENT_INITIAL_COST);
534                createEReference(componentCostEClass, COMPONENT_COST__REPOSITORY_COMPONENT);
535 
536                costEClass = createEClass(COST);
537                createEReference(costEClass, COST__ANNOTATED_ELEMENT);
538                createEAttribute(costEClass, COST__OPERATING_COST);
539                createEAttribute(costEClass, COST__INITIAL_COST);
540 
541                fixedLinkingResourceCostEClass = createEClass(FIXED_LINKING_RESOURCE_COST);
542 
543                linkingResourceCostEClass = createEClass(LINKING_RESOURCE_COST);
544                createEReference(linkingResourceCostEClass, LINKING_RESOURCE_COST__LINKINGRESOURCE);
545 
546                fixedProcessingResourceCostEClass = createEClass(FIXED_PROCESSING_RESOURCE_COST);
547                createEAttribute(fixedProcessingResourceCostEClass, FIXED_PROCESSING_RESOURCE_COST__FIXED_OPERATING_COST);
548                createEAttribute(fixedProcessingResourceCostEClass, FIXED_PROCESSING_RESOURCE_COST__FIXED_INITIAL_COST);
549 
550                processingResourceCostEClass = createEClass(PROCESSING_RESOURCE_COST);
551                createEReference(processingResourceCostEClass, PROCESSING_RESOURCE_COST__PROCESSINGRESOURCESPECIFICATION);
552 
553                variableCostEClass = createEClass(VARIABLE_COST);
554                createEAttribute(variableCostEClass, VARIABLE_COST__FIXED_INITIAL_COST);
555                createEAttribute(variableCostEClass, VARIABLE_COST__FIXED_OPERATING_COST);
556 
557                variableLinkingResourceCostEClass = createEClass(VARIABLE_LINKING_RESOURCE_COST);
558                createEAttribute(variableLinkingResourceCostEClass, VARIABLE_LINKING_RESOURCE_COST__BANDWITH_INITIAL_FACTOR);
559                createEAttribute(variableLinkingResourceCostEClass, VARIABLE_LINKING_RESOURCE_COST__BANDWIDTH_OPERATING_FACTOR);
560 
561                variableProcessingResourceCostEClass = createEClass(VARIABLE_PROCESSING_RESOURCE_COST);
562                createEReference(variableProcessingResourceCostEClass, VARIABLE_PROCESSING_RESOURCE_COST__PROCESSING_RATE_INITIAL_FUNCTION);
563                createEReference(variableProcessingResourceCostEClass, VARIABLE_PROCESSING_RESOURCE_COST__PROCESSING_RATE_OPERATING_FUNCTION);
564 
565                scalarFunctionEClass = createEClass(SCALAR_FUNCTION);
566                createEAttribute(scalarFunctionEClass, SCALAR_FUNCTION__SPECIFICATION);
567                createEReference(scalarFunctionEClass, SCALAR_FUNCTION__TERM);
568 
569                costRepositoryEClass = createEClass(COST_REPOSITORY);
570                createEReference(costRepositoryEClass, COST_REPOSITORY__COST);
571 
572                componentCostPerInstanceEClass = createEClass(COMPONENT_COST_PER_INSTANCE);
573                createEReference(componentCostPerInstanceEClass, COMPONENT_COST_PER_INSTANCE__ALLOCATION);
574        }
575 
576        /**
577         * <!-- begin-user-doc -->
578         * <!-- end-user-doc -->
579         * @generated
580         */
581        private boolean isInitialized = false;
582 
583        /**
584         * Complete the initialization of the package and its meta-model.  This
585         * method is guarded to have no affect on any invocation but its first.
586         * <!-- begin-user-doc -->
587         * <!-- end-user-doc -->
588         * @generated
589         */
590        public void initializePackageContents() {
591                if (isInitialized) return;
592                isInitialized = true;
593 
594                // Initialize package
595                setName(eNAME);
596                setNsPrefix(eNS_PREFIX);
597                setNsURI(eNS_URI);
598 
599                // Obtain other dependent packages
600                RepositoryPackage theRepositoryPackage = (RepositoryPackage)EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI);
601                EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
602                ResourceenvironmentPackage theResourceenvironmentPackage = (ResourceenvironmentPackage)EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI);
603                StoexPackage theStoexPackage = (StoexPackage)EPackage.Registry.INSTANCE.getEPackage(StoexPackage.eNS_URI);
604                AllocationPackage theAllocationPackage = (AllocationPackage)EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI);
605 
606                // Create type parameters
607 
608                // Set bounds for type parameters
609 
610                // Add supertypes to classes
611                componentCostEClass.getESuperTypes().add(this.getCost());
612                fixedLinkingResourceCostEClass.getESuperTypes().add(this.getLinkingResourceCost());
613                fixedLinkingResourceCostEClass.getESuperTypes().add(this.getCost());
614                linkingResourceCostEClass.getESuperTypes().add(this.getCost());
615                fixedProcessingResourceCostEClass.getESuperTypes().add(this.getProcessingResourceCost());
616                fixedProcessingResourceCostEClass.getESuperTypes().add(this.getCost());
617                processingResourceCostEClass.getESuperTypes().add(this.getCost());
618                variableCostEClass.getESuperTypes().add(this.getCost());
619                variableLinkingResourceCostEClass.getESuperTypes().add(this.getVariableCost());
620                variableLinkingResourceCostEClass.getESuperTypes().add(this.getLinkingResourceCost());
621                variableProcessingResourceCostEClass.getESuperTypes().add(this.getVariableCost());
622                variableProcessingResourceCostEClass.getESuperTypes().add(this.getProcessingResourceCost());
623                componentCostPerInstanceEClass.getESuperTypes().add(this.getComponentCost());
624 
625                // Initialize classes and features; add operations and parameters
626                initEClass(componentCostEClass, ComponentCost.class, "ComponentCost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
627                initEAttribute(getComponentCost_ComponentOperatingCost(), ecorePackage.getEDouble(), "componentOperatingCost", null, 1, 1, ComponentCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
628                initEAttribute(getComponentCost_ComponentInitialCost(), ecorePackage.getEDouble(), "componentInitialCost", null, 1, 1, ComponentCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
629                initEReference(getComponentCost_RepositoryComponent(), theRepositoryPackage.getRepositoryComponent(), null, "repositoryComponent", null, 1, 1, ComponentCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
630 
631                initEClass(costEClass, Cost.class, "Cost", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
632                initEReference(getCost_AnnotatedElement(), theEcorePackage.getEObject(), null, "annotatedElement", null, 1, 1, Cost.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
633                initEAttribute(getCost_OperatingCost(), ecorePackage.getEDouble(), "operatingCost", null, 1, 1, Cost.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
634                initEAttribute(getCost_InitialCost(), ecorePackage.getEDouble(), "initialCost", null, 1, 1, Cost.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
635 
636                initEClass(fixedLinkingResourceCostEClass, FixedLinkingResourceCost.class, "FixedLinkingResourceCost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
637 
638                initEClass(linkingResourceCostEClass, LinkingResourceCost.class, "LinkingResourceCost", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
639                initEReference(getLinkingResourceCost_Linkingresource(), theResourceenvironmentPackage.getLinkingResource(), null, "linkingresource", null, 1, 1, LinkingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
640 
641                initEClass(fixedProcessingResourceCostEClass, FixedProcessingResourceCost.class, "FixedProcessingResourceCost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
642                initEAttribute(getFixedProcessingResourceCost_FixedOperatingCost(), theEcorePackage.getEDouble(), "fixedOperatingCost", null, 1, 1, FixedProcessingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
643                initEAttribute(getFixedProcessingResourceCost_FixedInitialCost(), theEcorePackage.getEDouble(), "fixedInitialCost", null, 1, 1, FixedProcessingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
644 
645                initEClass(processingResourceCostEClass, ProcessingResourceCost.class, "ProcessingResourceCost", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
646                initEReference(getProcessingResourceCost_Processingresourcespecification(), theResourceenvironmentPackage.getProcessingResourceSpecification(), null, "processingresourcespecification", null, 1, 1, ProcessingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
647 
648                initEClass(variableCostEClass, VariableCost.class, "VariableCost", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
649                initEAttribute(getVariableCost_FixedInitialCost(), ecorePackage.getEDouble(), "fixedInitialCost", null, 1, 1, VariableCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
650                initEAttribute(getVariableCost_FixedOperatingCost(), ecorePackage.getEDouble(), "fixedOperatingCost", null, 1, 1, VariableCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
651 
652                initEClass(variableLinkingResourceCostEClass, VariableLinkingResourceCost.class, "VariableLinkingResourceCost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
653                initEAttribute(getVariableLinkingResourceCost_BandwithInitialFactor(), ecorePackage.getEDouble(), "bandwithInitialFactor", null, 1, 1, VariableLinkingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
654                initEAttribute(getVariableLinkingResourceCost_BandwidthOperatingFactor(), ecorePackage.getEDouble(), "bandwidthOperatingFactor", null, 1, 1, VariableLinkingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
655 
656                initEClass(variableProcessingResourceCostEClass, VariableProcessingResourceCost.class, "VariableProcessingResourceCost", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
657                initEReference(getVariableProcessingResourceCost_ProcessingRateInitialFunction(), this.getScalarFunction(), null, "processingRateInitialFunction", null, 1, 1, VariableProcessingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
658                initEReference(getVariableProcessingResourceCost_ProcessingRateOperatingFunction(), this.getScalarFunction(), null, "processingRateOperatingFunction", null, 1, 1, VariableProcessingResourceCost.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
659 
660                initEClass(scalarFunctionEClass, ScalarFunction.class, "ScalarFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
661                initEAttribute(getScalarFunction_Specification(), ecorePackage.getEString(), "specification", null, 1, 1, ScalarFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
662                initEReference(getScalarFunction_Term(), theStoexPackage.getTerm(), null, "term", null, 1, 1, ScalarFunction.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
663 
664                initEClass(costRepositoryEClass, CostRepository.class, "CostRepository", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
665                initEReference(getCostRepository_Cost(), this.getCost(), null, "cost", null, 0, -1, CostRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
666 
667                initEClass(componentCostPerInstanceEClass, ComponentCostPerInstance.class, "ComponentCostPerInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
668                initEReference(getComponentCostPerInstance_Allocation(), theAllocationPackage.getAllocation(), null, "allocation", null, 0, 1, ComponentCostPerInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
669 
670                // Create resource
671                createResource(eNS_URI);
672 
673                // Create annotations
674                // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
675                createExtendedMetaDataAnnotations();
676        }
677 
678        /**
679         * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
680         * <!-- begin-user-doc -->
681         * <!-- end-user-doc -->
682         * @generated
683         */
684        protected void createExtendedMetaDataAnnotations() {
685                String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";                                                                                
686                addAnnotation
687                  (getScalarFunction_Term(), 
688                   source, 
689                   new String[] {
690                         "namespace", ""
691                   });                        
692        }
693 
694} //costPackageImpl

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