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

COVERAGE SUMMARY FOR SOURCE FILE [ComponentSpecifiedExecutionTimeImpl.java]

nameclass, %method, %block, %line, %
ComponentSpecifiedExecutionTimeImpl.java0%   (0/1)0%   (0/9)0%   (0/118)0%   (0/33)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ComponentSpecifiedExecutionTimeImpl0%   (0/1)0%   (0/9)0%   (0/118)0%   (0/33)
ComponentSpecifiedExecutionTimeImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetAssemblyContext_ComponentSpecifiedExecutionTime (): AssemblyContext 0%   (0/1)0%   (0/3)0%   (0/1)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/16)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/13)0%   (0/3)
eSet (int, Object): void 0%   (0/1)0%   (0/12)0%   (0/5)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/10)0%   (0/5)
getAssemblyContext_ComponentSpecifiedExecutionTime (): AssemblyContext 0%   (0/1)0%   (0/38)0%   (0/7)
setAssemblyContext_ComponentSpecifiedExecutionTime (AssemblyContext): void 0%   (0/1)0%   (0/21)0%   (0/5)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl;
7 
8import org.eclipse.emf.common.notify.Notification;
9import org.eclipse.emf.ecore.EClass;
10import org.eclipse.emf.ecore.InternalEObject;
11import org.eclipse.emf.ecore.impl.ENotificationImpl;
12 
13import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext;
14import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.ComponentSpecifiedExecutionTime;
15import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.Qos_performancePackage;
16 
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Component Specified Execution Time</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * <ul>
24 *   <li>{@link de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl.ComponentSpecifiedExecutionTimeImpl#getAssemblyContext_ComponentSpecifiedExecutionTime <em>Assembly Context Component Specified Execution Time</em>}</li>
25 * </ul>
26 * </p>
27 *
28 * @generated
29 */
30public class ComponentSpecifiedExecutionTimeImpl extends SpecifiedExecutionTimeImpl implements ComponentSpecifiedExecutionTime {
31        /**
32         * <!-- begin-user-doc -->
33         * <!-- end-user-doc -->
34         * @generated
35         */
36        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
37 
38        /**
39         * The cached value of the '{@link #getAssemblyContext_ComponentSpecifiedExecutionTime() <em>Assembly Context Component Specified Execution Time</em>}' reference.
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @see #getAssemblyContext_ComponentSpecifiedExecutionTime()
43         * @generated
44         * @ordered
45         */
46        protected AssemblyContext assemblyContext_ComponentSpecifiedExecutionTime;
47 
48        /**
49         * <!-- begin-user-doc -->
50         * <!-- end-user-doc -->
51         * @generated
52         */
53        protected ComponentSpecifiedExecutionTimeImpl() {
54                super();
55        }
56 
57        /**
58         * <!-- begin-user-doc -->
59         * <!-- end-user-doc -->
60         * @generated
61         */
62        @Override
63        protected EClass eStaticClass() {
64                return Qos_performancePackage.Literals.COMPONENT_SPECIFIED_EXECUTION_TIME;
65        }
66 
67        /**
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        public AssemblyContext getAssemblyContext_ComponentSpecifiedExecutionTime() {
73                if (assemblyContext_ComponentSpecifiedExecutionTime != null && assemblyContext_ComponentSpecifiedExecutionTime.eIsProxy()) {
74                        InternalEObject oldAssemblyContext_ComponentSpecifiedExecutionTime = (InternalEObject)assemblyContext_ComponentSpecifiedExecutionTime;
75                        assemblyContext_ComponentSpecifiedExecutionTime = (AssemblyContext)eResolveProxy(oldAssemblyContext_ComponentSpecifiedExecutionTime);
76                        if (assemblyContext_ComponentSpecifiedExecutionTime != oldAssemblyContext_ComponentSpecifiedExecutionTime) {
77                                if (eNotificationRequired())
78                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, Qos_performancePackage.COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME, oldAssemblyContext_ComponentSpecifiedExecutionTime, assemblyContext_ComponentSpecifiedExecutionTime));
79                        }
80                }
81                return assemblyContext_ComponentSpecifiedExecutionTime;
82        }
83 
84        /**
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        public AssemblyContext basicGetAssemblyContext_ComponentSpecifiedExecutionTime() {
90                return assemblyContext_ComponentSpecifiedExecutionTime;
91        }
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        public void setAssemblyContext_ComponentSpecifiedExecutionTime(AssemblyContext newAssemblyContext_ComponentSpecifiedExecutionTime) {
99                AssemblyContext oldAssemblyContext_ComponentSpecifiedExecutionTime = assemblyContext_ComponentSpecifiedExecutionTime;
100                assemblyContext_ComponentSpecifiedExecutionTime = newAssemblyContext_ComponentSpecifiedExecutionTime;
101                if (eNotificationRequired())
102                        eNotify(new ENotificationImpl(this, Notification.SET, Qos_performancePackage.COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME, oldAssemblyContext_ComponentSpecifiedExecutionTime, assemblyContext_ComponentSpecifiedExecutionTime));
103        }
104 
105        /**
106         * <!-- begin-user-doc -->
107         * <!-- end-user-doc -->
108         * @generated
109         */
110        @Override
111        public Object eGet(int featureID, boolean resolve, boolean coreType) {
112                switch (featureID) {
113                        case Qos_performancePackage.COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME:
114                                if (resolve) return getAssemblyContext_ComponentSpecifiedExecutionTime();
115                                return basicGetAssemblyContext_ComponentSpecifiedExecutionTime();
116                }
117                return super.eGet(featureID, resolve, coreType);
118        }
119 
120        /**
121         * <!-- begin-user-doc -->
122         * <!-- end-user-doc -->
123         * @generated
124         */
125        @Override
126        public void eSet(int featureID, Object newValue) {
127                switch (featureID) {
128                        case Qos_performancePackage.COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME:
129                                setAssemblyContext_ComponentSpecifiedExecutionTime((AssemblyContext)newValue);
130                                return;
131                }
132                super.eSet(featureID, newValue);
133        }
134 
135        /**
136         * <!-- begin-user-doc -->
137         * <!-- end-user-doc -->
138         * @generated
139         */
140        @Override
141        public void eUnset(int featureID) {
142                switch (featureID) {
143                        case Qos_performancePackage.COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME:
144                                setAssemblyContext_ComponentSpecifiedExecutionTime((AssemblyContext)null);
145                                return;
146                }
147                super.eUnset(featureID);
148        }
149 
150        /**
151         * <!-- begin-user-doc -->
152         * <!-- end-user-doc -->
153         * @generated
154         */
155        @Override
156        public boolean eIsSet(int featureID) {
157                switch (featureID) {
158                        case Qos_performancePackage.COMPONENT_SPECIFIED_EXECUTION_TIME__ASSEMBLY_CONTEXT_COMPONENT_SPECIFIED_EXECUTION_TIME:
159                                return assemblyContext_ComponentSpecifiedExecutionTime != null;
160                }
161                return super.eIsSet(featureID);
162        }
163 
164} //ComponentSpecifiedExecutionTimeImpl

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