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

COVERAGE SUMMARY FOR SOURCE FILE [pipesandfiltersPackageImpl.java]

nameclass, %method, %block, %line, %
pipesandfiltersPackageImpl.java0%   (0/1)0%   (0/20)0%   (0/495)0%   (0/87)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class pipesandfiltersPackageImpl0%   (0/1)0%   (0/20)0%   (0/495)0%   (0/87)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
createPackageContents (): void 0%   (0/1)0%   (0/78)0%   (0/17)
getAggregationRecorder (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getAggregationRecorder_Writer (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getEDP2Writer (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getFilter (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getFilter_Successors (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getPipeElement (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getPipesAndFiltersRepository (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getPipesAndFiltersRepository_Elements (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRawRecorder (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getRawRecorder_Writer (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getRecorder (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getSimpleWarmUpFilter (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getSlidingMeanRecorder (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getWriter (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getpipesandfiltersFactory (): pipesandfiltersFactory 0%   (0/1)0%   (0/4)0%   (0/1)
init (): pipesandfiltersPackage 0%   (0/1)0%   (0/34)0%   (0/8)
initializePackageContents (): void 0%   (0/1)0%   (0/277)0%   (0/31)
pipesandfiltersPackageImpl (): void 0%   (0/1)0%   (0/41)0%   (0/14)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.pipesandfilters.impl;
8 
9import de.uka.ipd.sdq.identifier.IdentifierPackage;
10 
11import de.uka.ipd.sdq.pipesandfilters.AggregationRecorder;
12import de.uka.ipd.sdq.pipesandfilters.EDP2Writer;
13import de.uka.ipd.sdq.pipesandfilters.Filter;
14import de.uka.ipd.sdq.pipesandfilters.PipeElement;
15import de.uka.ipd.sdq.pipesandfilters.PipesAndFiltersRepository;
16import de.uka.ipd.sdq.pipesandfilters.RawRecorder;
17import de.uka.ipd.sdq.pipesandfilters.Recorder;
18import de.uka.ipd.sdq.pipesandfilters.SimpleWarmUpFilter;
19import de.uka.ipd.sdq.pipesandfilters.SlidingMeanRecorder;
20import de.uka.ipd.sdq.pipesandfilters.Writer;
21import de.uka.ipd.sdq.pipesandfilters.pipesandfiltersFactory;
22import de.uka.ipd.sdq.pipesandfilters.pipesandfiltersPackage;
23 
24import org.eclipse.emf.ecore.EClass;
25import org.eclipse.emf.ecore.EPackage;
26import org.eclipse.emf.ecore.EReference;
27 
28import org.eclipse.emf.ecore.impl.EPackageImpl;
29 
30/**
31 * <!-- begin-user-doc -->
32 * An implementation of the model <b>Package</b>.
33 * <!-- end-user-doc -->
34 * @generated
35 */
36public class pipesandfiltersPackageImpl extends EPackageImpl implements pipesandfiltersPackage {
37        /**
38         * <!-- begin-user-doc -->
39         * <!-- end-user-doc -->
40         * @generated
41         */
42        private EClass pipeElementEClass = null;
43 
44        /**
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @generated
48         */
49        private EClass filterEClass = null;
50 
51        /**
52         * <!-- begin-user-doc -->
53         * <!-- end-user-doc -->
54         * @generated
55         */
56        private EClass recorderEClass = null;
57 
58        /**
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @generated
62         */
63        private EClass aggregationRecorderEClass = null;
64 
65        /**
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @generated
69         */
70        private EClass writerEClass = null;
71 
72        /**
73         * <!-- begin-user-doc -->
74         * <!-- end-user-doc -->
75         * @generated
76         */
77        private EClass rawRecorderEClass = null;
78 
79        /**
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @generated
83         */
84        private EClass simpleWarmUpFilterEClass = null;
85 
86        /**
87         * <!-- begin-user-doc -->
88         * <!-- end-user-doc -->
89         * @generated
90         */
91        private EClass slidingMeanRecorderEClass = null;
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        private EClass edp2WriterEClass = null;
99 
100        /**
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @generated
104         */
105        private EClass pipesAndFiltersRepositoryEClass = null;
106 
107        /**
108         * Creates an instance of the model <b>Package</b>, registered with
109         * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
110         * package URI value.
111         * <p>Note: the correct way to create the package is via the static
112         * factory method {@link #init init()}, which also performs
113         * initialization of the package, or returns the registered package,
114         * if one already exists.
115         * <!-- begin-user-doc -->
116         * <!-- end-user-doc -->
117         * @see org.eclipse.emf.ecore.EPackage.Registry
118         * @see de.uka.ipd.sdq.pipesandfilters.pipesandfiltersPackage#eNS_URI
119         * @see #init()
120         * @generated
121         */
122        private pipesandfiltersPackageImpl() {
123                super(eNS_URI, pipesandfiltersFactory.eINSTANCE);
124        }
125 
126        /**
127         * <!-- begin-user-doc -->
128         * <!-- end-user-doc -->
129         * @generated
130         */
131        private static boolean isInited = false;
132 
133        /**
134         * Creates, registers, and initializes the <b>Package</b> for this
135         * model, and for any others upon which it depends.  Simple
136         * dependencies are satisfied by calling this method on all
137         * dependent packages before doing anything else.  This method drives
138         * initialization for interdependent packages directly, in parallel
139         * with this package, itself.
140         * <p>Of this package and its interdependencies, all packages which
141         * have not yet been registered by their URI values are first created
142         * and registered.  The packages are then initialized in two steps:
143         * meta-model objects for all of the packages are created before any
144         * are initialized, since one package's meta-model objects may refer to
145         * those of another.
146         * <p>Invocation of this method will not affect any packages that have
147         * already been initialized.
148         * <!-- begin-user-doc -->
149         * <!-- end-user-doc -->
150         * @see #eNS_URI
151         * @see #createPackageContents()
152         * @see #initializePackageContents()
153         * @generated
154         */
155        public static pipesandfiltersPackage init() {
156                if (isInited) return (pipesandfiltersPackage)EPackage.Registry.INSTANCE.getEPackage(pipesandfiltersPackage.eNS_URI);
157 
158                // Obtain or create and register package
159                pipesandfiltersPackageImpl thepipesandfiltersPackage = (pipesandfiltersPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof pipesandfiltersPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new pipesandfiltersPackageImpl());
160 
161                isInited = true;
162 
163                // Initialize simple dependencies
164                IdentifierPackage.eINSTANCE.eClass();
165 
166                // Create package meta-data objects
167                thepipesandfiltersPackage.createPackageContents();
168 
169                // Initialize created meta-data
170                thepipesandfiltersPackage.initializePackageContents();
171 
172                // Mark meta-data to indicate it can't be changed
173                thepipesandfiltersPackage.freeze();
174 
175                return thepipesandfiltersPackage;
176        }
177 
178        /**
179         * <!-- begin-user-doc -->
180         * <!-- end-user-doc -->
181         * @generated
182         */
183        public EClass getPipeElement() {
184                return pipeElementEClass;
185        }
186 
187        /**
188         * <!-- begin-user-doc -->
189         * <!-- end-user-doc -->
190         * @generated
191         */
192        public EClass getFilter() {
193                return filterEClass;
194        }
195 
196        /**
197         * <!-- begin-user-doc -->
198         * <!-- end-user-doc -->
199         * @generated
200         */
201        public EReference getFilter_Successors() {
202                return (EReference)filterEClass.getEStructuralFeatures().get(0);
203        }
204 
205        /**
206         * <!-- begin-user-doc -->
207         * <!-- end-user-doc -->
208         * @generated
209         */
210        public EClass getRecorder() {
211                return recorderEClass;
212        }
213 
214        /**
215         * <!-- begin-user-doc -->
216         * <!-- end-user-doc -->
217         * @generated
218         */
219        public EClass getAggregationRecorder() {
220                return aggregationRecorderEClass;
221        }
222 
223        /**
224         * <!-- begin-user-doc -->
225         * <!-- end-user-doc -->
226         * @generated
227         */
228        public EReference getAggregationRecorder_Writer() {
229                return (EReference)aggregationRecorderEClass.getEStructuralFeatures().get(0);
230        }
231 
232        /**
233         * <!-- begin-user-doc -->
234         * <!-- end-user-doc -->
235         * @generated
236         */
237        public EClass getWriter() {
238                return writerEClass;
239        }
240 
241        /**
242         * <!-- begin-user-doc -->
243         * <!-- end-user-doc -->
244         * @generated
245         */
246        public EClass getRawRecorder() {
247                return rawRecorderEClass;
248        }
249 
250        /**
251         * <!-- begin-user-doc -->
252         * <!-- end-user-doc -->
253         * @generated
254         */
255        public EReference getRawRecorder_Writer() {
256                return (EReference)rawRecorderEClass.getEStructuralFeatures().get(0);
257        }
258 
259        /**
260         * <!-- begin-user-doc -->
261         * <!-- end-user-doc -->
262         * @generated
263         */
264        public EClass getSimpleWarmUpFilter() {
265                return simpleWarmUpFilterEClass;
266        }
267 
268        /**
269         * <!-- begin-user-doc -->
270         * <!-- end-user-doc -->
271         * @generated
272         */
273        public EClass getSlidingMeanRecorder() {
274                return slidingMeanRecorderEClass;
275        }
276 
277        /**
278         * <!-- begin-user-doc -->
279         * <!-- end-user-doc -->
280         * @generated
281         */
282        public EClass getEDP2Writer() {
283                return edp2WriterEClass;
284        }
285 
286        /**
287         * <!-- begin-user-doc -->
288         * <!-- end-user-doc -->
289         * @generated
290         */
291        public EClass getPipesAndFiltersRepository() {
292                return pipesAndFiltersRepositoryEClass;
293        }
294 
295        /**
296         * <!-- begin-user-doc -->
297         * <!-- end-user-doc -->
298         * @generated
299         */
300        public EReference getPipesAndFiltersRepository_Elements() {
301                return (EReference)pipesAndFiltersRepositoryEClass.getEStructuralFeatures().get(0);
302        }
303 
304        /**
305         * <!-- begin-user-doc -->
306         * <!-- end-user-doc -->
307         * @generated
308         */
309        public pipesandfiltersFactory getpipesandfiltersFactory() {
310                return (pipesandfiltersFactory)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                pipeElementEClass = createEClass(PIPE_ELEMENT);
333 
334                filterEClass = createEClass(FILTER);
335                createEReference(filterEClass, FILTER__SUCCESSORS);
336 
337                recorderEClass = createEClass(RECORDER);
338 
339                aggregationRecorderEClass = createEClass(AGGREGATION_RECORDER);
340                createEReference(aggregationRecorderEClass, AGGREGATION_RECORDER__WRITER);
341 
342                writerEClass = createEClass(WRITER);
343 
344                rawRecorderEClass = createEClass(RAW_RECORDER);
345                createEReference(rawRecorderEClass, RAW_RECORDER__WRITER);
346 
347                simpleWarmUpFilterEClass = createEClass(SIMPLE_WARM_UP_FILTER);
348 
349                slidingMeanRecorderEClass = createEClass(SLIDING_MEAN_RECORDER);
350 
351                edp2WriterEClass = createEClass(EDP2_WRITER);
352 
353                pipesAndFiltersRepositoryEClass = createEClass(PIPES_AND_FILTERS_REPOSITORY);
354                createEReference(pipesAndFiltersRepositoryEClass, PIPES_AND_FILTERS_REPOSITORY__ELEMENTS);
355        }
356 
357        /**
358         * <!-- begin-user-doc -->
359         * <!-- end-user-doc -->
360         * @generated
361         */
362        private boolean isInitialized = false;
363 
364        /**
365         * Complete the initialization of the package and its meta-model.  This
366         * method is guarded to have no affect on any invocation but its first.
367         * <!-- begin-user-doc -->
368         * <!-- end-user-doc -->
369         * @generated
370         */
371        public void initializePackageContents() {
372                if (isInitialized) return;
373                isInitialized = true;
374 
375                // Initialize package
376                setName(eNAME);
377                setNsPrefix(eNS_PREFIX);
378                setNsURI(eNS_URI);
379 
380                // Obtain other dependent packages
381                IdentifierPackage theIdentifierPackage = (IdentifierPackage)EPackage.Registry.INSTANCE.getEPackage(IdentifierPackage.eNS_URI);
382 
383                // Create type parameters
384 
385                // Set bounds for type parameters
386 
387                // Add supertypes to classes
388                pipeElementEClass.getESuperTypes().add(theIdentifierPackage.getIdentifier());
389                filterEClass.getESuperTypes().add(this.getPipeElement());
390                recorderEClass.getESuperTypes().add(this.getPipeElement());
391                aggregationRecorderEClass.getESuperTypes().add(this.getRecorder());
392                writerEClass.getESuperTypes().add(theIdentifierPackage.getIdentifier());
393                rawRecorderEClass.getESuperTypes().add(this.getRecorder());
394                simpleWarmUpFilterEClass.getESuperTypes().add(this.getFilter());
395                slidingMeanRecorderEClass.getESuperTypes().add(this.getAggregationRecorder());
396                edp2WriterEClass.getESuperTypes().add(this.getWriter());
397 
398                // Initialize classes and features; add operations and parameters
399                initEClass(pipeElementEClass, PipeElement.class, "PipeElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
400 
401                initEClass(filterEClass, Filter.class, "Filter", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
402                initEReference(getFilter_Successors(), this.getPipeElement(), null, "successors", null, 1, -1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
403 
404                initEClass(recorderEClass, Recorder.class, "Recorder", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
405 
406                initEClass(aggregationRecorderEClass, AggregationRecorder.class, "AggregationRecorder", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
407                initEReference(getAggregationRecorder_Writer(), this.getWriter(), null, "writer", null, 0, -1, AggregationRecorder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
408 
409                initEClass(writerEClass, Writer.class, "Writer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
410 
411                initEClass(rawRecorderEClass, RawRecorder.class, "RawRecorder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
412                initEReference(getRawRecorder_Writer(), this.getWriter(), null, "writer", null, 0, -1, RawRecorder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
413 
414                initEClass(simpleWarmUpFilterEClass, SimpleWarmUpFilter.class, "SimpleWarmUpFilter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
415 
416                initEClass(slidingMeanRecorderEClass, SlidingMeanRecorder.class, "SlidingMeanRecorder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
417 
418                initEClass(edp2WriterEClass, EDP2Writer.class, "EDP2Writer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
419 
420                initEClass(pipesAndFiltersRepositoryEClass, PipesAndFiltersRepository.class, "PipesAndFiltersRepository", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
421                initEReference(getPipesAndFiltersRepository_Elements(), this.getPipeElement(), null, "elements", null, 0, -1, PipesAndFiltersRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
422 
423                // Create resource
424                createResource(eNS_URI);
425        }
426 
427} //pipesandfiltersPackageImpl

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