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

COVERAGE SUMMARY FOR SOURCE FILE [ProtocolPackageImpl.java]

nameclass, %method, %block, %line, %
ProtocolPackageImpl.java0%   (0/1)0%   (0/8)0%   (0/443)0%   (0/90)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProtocolPackageImpl0%   (0/1)0%   (0/8)0%   (0/443)0%   (0/90)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
ProtocolPackageImpl (): void 0%   (0/1)0%   (0/14)0%   (0/5)
createPackageContents (): void 0%   (0/1)0%   (0/18)0%   (0/5)
getProtocol (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getProtocolFactory (): ProtocolFactory 0%   (0/1)0%   (0/4)0%   (0/1)
getProtocol_ProtocolTypeID (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
init (): ProtocolPackage 0%   (0/1)0%   (0/346)0%   (0/67)
initializePackageContents (): void 0%   (0/1)0%   (0/48)0%   (0/8)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.protocol.impl;
7 
8import org.eclipse.emf.ecore.EAttribute;
9import org.eclipse.emf.ecore.EClass;
10import org.eclipse.emf.ecore.EPackage;
11import org.eclipse.emf.ecore.impl.EPackageImpl;
12 
13import de.uka.ipd.sdq.identifier.IdentifierPackage;
14import de.uka.ipd.sdq.pcm.PcmPackage;
15import de.uka.ipd.sdq.pcm.allocation.AllocationPackage;
16import de.uka.ipd.sdq.pcm.allocation.impl.AllocationPackageImpl;
17import de.uka.ipd.sdq.pcm.core.CorePackage;
18import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
19import de.uka.ipd.sdq.pcm.core.composition.impl.CompositionPackageImpl;
20import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
21import de.uka.ipd.sdq.pcm.core.entity.impl.EntityPackageImpl;
22import de.uka.ipd.sdq.pcm.core.impl.CorePackageImpl;
23import de.uka.ipd.sdq.pcm.impl.PcmPackageImpl;
24import de.uka.ipd.sdq.pcm.parameter.ParameterPackage;
25import de.uka.ipd.sdq.pcm.parameter.impl.ParameterPackageImpl;
26import de.uka.ipd.sdq.pcm.protocol.Protocol;
27import de.uka.ipd.sdq.pcm.protocol.ProtocolFactory;
28import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage;
29import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage;
30import de.uka.ipd.sdq.pcm.qosannotations.impl.QosannotationsPackageImpl;
31import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.Qos_performancePackage;
32import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl.Qos_performancePackageImpl;
33import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.Qos_reliabilityPackage;
34import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.impl.Qos_reliabilityPackageImpl;
35import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage;
36import de.uka.ipd.sdq.pcm.reliability.impl.ReliabilityPackageImpl;
37import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
38import de.uka.ipd.sdq.pcm.repository.impl.RepositoryPackageImpl;
39import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage;
40import de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceenvironmentPackageImpl;
41import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage;
42import de.uka.ipd.sdq.pcm.resourcetype.impl.ResourcetypePackageImpl;
43import de.uka.ipd.sdq.pcm.seff.SeffPackage;
44import de.uka.ipd.sdq.pcm.seff.impl.SeffPackageImpl;
45import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage;
46import de.uka.ipd.sdq.pcm.seff.seff_performance.impl.Seff_performancePackageImpl;
47import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage;
48import de.uka.ipd.sdq.pcm.seff.seff_reliability.impl.Seff_reliabilityPackageImpl;
49import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage;
50import de.uka.ipd.sdq.pcm.subsystem.impl.SubsystemPackageImpl;
51import de.uka.ipd.sdq.pcm.system.SystemPackage;
52import de.uka.ipd.sdq.pcm.system.impl.SystemPackageImpl;
53import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage;
54import de.uka.ipd.sdq.pcm.usagemodel.impl.UsagemodelPackageImpl;
55import de.uka.ipd.sdq.stoex.StoexPackage;
56 
57/**
58 * <!-- begin-user-doc -->
59 * An implementation of the model <b>Package</b>.
60 * <!-- end-user-doc -->
61 * @generated
62 */
63public class ProtocolPackageImpl extends EPackageImpl implements ProtocolPackage {
64        /**
65         * <!-- begin-user-doc -->
66         * <!-- end-user-doc -->
67         * @generated
68         */
69        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
70 
71        /**
72         * <!-- begin-user-doc -->
73         * <!-- end-user-doc -->
74         * @generated
75         */
76        private EClass protocolEClass = null;
77 
78        /**
79         * Creates an instance of the model <b>Package</b>, registered with
80         * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
81         * package URI value.
82         * <p>Note: the correct way to create the package is via the static
83         * factory method {@link #init init()}, which also performs
84         * initialization of the package, or returns the registered package,
85         * if one already exists.
86         * <!-- begin-user-doc -->
87         * <!-- end-user-doc -->
88         * @see org.eclipse.emf.ecore.EPackage.Registry
89         * @see de.uka.ipd.sdq.pcm.protocol.ProtocolPackage#eNS_URI
90         * @see #init()
91         * @generated
92         */
93        private ProtocolPackageImpl() {
94                super(eNS_URI, ProtocolFactory.eINSTANCE);
95        }
96 
97        /**
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @generated
101         */
102        private static boolean isInited = false;
103 
104        /**
105         * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
106         * 
107         * <p>This method is used to initialize {@link ProtocolPackage#eINSTANCE} when that field is accessed.
108         * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @see #eNS_URI
112         * @see #createPackageContents()
113         * @see #initializePackageContents()
114         * @generated
115         */
116        public static ProtocolPackage init() {
117                if (isInited) return (ProtocolPackage)EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI);
118 
119                // Obtain or create and register package
120                ProtocolPackageImpl theProtocolPackage = (ProtocolPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ProtocolPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ProtocolPackageImpl());
121 
122                isInited = true;
123 
124                // Initialize simple dependencies
125                IdentifierPackage.eINSTANCE.eClass();
126                StoexPackage.eINSTANCE.eClass();
127 
128                // Obtain or create and register interdependencies
129                PcmPackageImpl thePcmPackage = (PcmPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) instanceof PcmPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) : PcmPackage.eINSTANCE);
130                CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) : CorePackage.eINSTANCE);
131                EntityPackageImpl theEntityPackage = (EntityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) instanceof EntityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) : EntityPackage.eINSTANCE);
132                CompositionPackageImpl theCompositionPackage = (CompositionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) instanceof CompositionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) : CompositionPackage.eINSTANCE);
133                UsagemodelPackageImpl theUsagemodelPackage = (UsagemodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) instanceof UsagemodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) : UsagemodelPackage.eINSTANCE);
134                RepositoryPackageImpl theRepositoryPackage = (RepositoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) instanceof RepositoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) : RepositoryPackage.eINSTANCE);
135                ResourcetypePackageImpl theResourcetypePackage = (ResourcetypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) instanceof ResourcetypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) : ResourcetypePackage.eINSTANCE);
136                ParameterPackageImpl theParameterPackage = (ParameterPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) instanceof ParameterPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) : ParameterPackage.eINSTANCE);
137                ReliabilityPackageImpl theReliabilityPackage = (ReliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) instanceof ReliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) : ReliabilityPackage.eINSTANCE);
138                SeffPackageImpl theSeffPackage = (SeffPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) instanceof SeffPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) : SeffPackage.eINSTANCE);
139                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);
140                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);
141                QosannotationsPackageImpl theQosannotationsPackage = (QosannotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) instanceof QosannotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) : QosannotationsPackage.eINSTANCE);
142                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);
143                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);
144                SystemPackageImpl theSystemPackage = (SystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) instanceof SystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) : SystemPackage.eINSTANCE);
145                ResourceenvironmentPackageImpl theResourceenvironmentPackage = (ResourceenvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) instanceof ResourceenvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) : ResourceenvironmentPackage.eINSTANCE);
146                AllocationPackageImpl theAllocationPackage = (AllocationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) instanceof AllocationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) : AllocationPackage.eINSTANCE);
147                SubsystemPackageImpl theSubsystemPackage = (SubsystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) instanceof SubsystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) : SubsystemPackage.eINSTANCE);
148 
149                // Create package meta-data objects
150                theProtocolPackage.createPackageContents();
151                thePcmPackage.createPackageContents();
152                theCorePackage.createPackageContents();
153                theEntityPackage.createPackageContents();
154                theCompositionPackage.createPackageContents();
155                theUsagemodelPackage.createPackageContents();
156                theRepositoryPackage.createPackageContents();
157                theResourcetypePackage.createPackageContents();
158                theParameterPackage.createPackageContents();
159                theReliabilityPackage.createPackageContents();
160                theSeffPackage.createPackageContents();
161                theSeff_performancePackage.createPackageContents();
162                theSeff_reliabilityPackage.createPackageContents();
163                theQosannotationsPackage.createPackageContents();
164                theQos_performancePackage.createPackageContents();
165                theQos_reliabilityPackage.createPackageContents();
166                theSystemPackage.createPackageContents();
167                theResourceenvironmentPackage.createPackageContents();
168                theAllocationPackage.createPackageContents();
169                theSubsystemPackage.createPackageContents();
170 
171                // Initialize created meta-data
172                theProtocolPackage.initializePackageContents();
173                thePcmPackage.initializePackageContents();
174                theCorePackage.initializePackageContents();
175                theEntityPackage.initializePackageContents();
176                theCompositionPackage.initializePackageContents();
177                theUsagemodelPackage.initializePackageContents();
178                theRepositoryPackage.initializePackageContents();
179                theResourcetypePackage.initializePackageContents();
180                theParameterPackage.initializePackageContents();
181                theReliabilityPackage.initializePackageContents();
182                theSeffPackage.initializePackageContents();
183                theSeff_performancePackage.initializePackageContents();
184                theSeff_reliabilityPackage.initializePackageContents();
185                theQosannotationsPackage.initializePackageContents();
186                theQos_performancePackage.initializePackageContents();
187                theQos_reliabilityPackage.initializePackageContents();
188                theSystemPackage.initializePackageContents();
189                theResourceenvironmentPackage.initializePackageContents();
190                theAllocationPackage.initializePackageContents();
191                theSubsystemPackage.initializePackageContents();
192 
193                // Mark meta-data to indicate it can't be changed
194                theProtocolPackage.freeze();
195 
196  
197                // Update the registry and return the package
198                EPackage.Registry.INSTANCE.put(ProtocolPackage.eNS_URI, theProtocolPackage);
199                return theProtocolPackage;
200        }
201 
202        /**
203         * <!-- begin-user-doc -->
204         * <!-- end-user-doc -->
205         * @generated
206         */
207        public EClass getProtocol() {
208                return protocolEClass;
209        }
210 
211        /**
212         * <!-- begin-user-doc -->
213         * <!-- end-user-doc -->
214         * @generated
215         */
216        public EAttribute getProtocol_ProtocolTypeID() {
217                return (EAttribute)protocolEClass.getEStructuralFeatures().get(0);
218        }
219 
220        /**
221         * <!-- begin-user-doc -->
222         * <!-- end-user-doc -->
223         * @generated
224         */
225        public ProtocolFactory getProtocolFactory() {
226                return (ProtocolFactory)getEFactoryInstance();
227        }
228 
229        /**
230         * <!-- begin-user-doc -->
231         * <!-- end-user-doc -->
232         * @generated
233         */
234        private boolean isCreated = false;
235 
236        /**
237         * Creates the meta-model objects for the package.  This method is
238         * guarded to have no affect on any invocation but its first.
239         * <!-- begin-user-doc -->
240         * <!-- end-user-doc -->
241         * @generated
242         */
243        public void createPackageContents() {
244                if (isCreated) return;
245                isCreated = true;
246 
247                // Create classes and their features
248                protocolEClass = createEClass(PROTOCOL);
249                createEAttribute(protocolEClass, PROTOCOL__PROTOCOL_TYPE_ID);
250        }
251 
252        /**
253         * <!-- begin-user-doc -->
254         * <!-- end-user-doc -->
255         * @generated
256         */
257        private boolean isInitialized = false;
258 
259        /**
260         * Complete the initialization of the package and its meta-model.  This
261         * method is guarded to have no affect on any invocation but its first.
262         * <!-- begin-user-doc -->
263         * <!-- end-user-doc -->
264         * @generated
265         */
266        public void initializePackageContents() {
267                if (isInitialized) return;
268                isInitialized = true;
269 
270                // Initialize package
271                setName(eNAME);
272                setNsPrefix(eNS_PREFIX);
273                setNsURI(eNS_URI);
274 
275                // Create type parameters
276 
277                // Set bounds for type parameters
278 
279                // Add supertypes to classes
280 
281                // Initialize classes and features; add operations and parameters
282                initEClass(protocolEClass, Protocol.class, "Protocol", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
283                initEAttribute(getProtocol_ProtocolTypeID(), ecorePackage.getEString(), "protocolTypeID", null, 1, 1, Protocol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
284        }
285 
286} //ProtocolPackageImpl

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