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 [CostImpl.java]

nameclass, %method, %block, %line, %
CostImpl.java0%   (0/1)0%   (0/6)0%   (0/78)0%   (0/17)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CostImpl0%   (0/1)0%   (0/6)0%   (0/78)0%   (0/17)
CostImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/24)0%   (0/6)
eIsSet (int): boolean 0%   (0/1)0%   (0/27)0%   (0/5)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
getAnnotatedElement (): EObject 0%   (0/1)0%   (0/15)0%   (0/2)
isSetAnnotatedElement (): boolean 0%   (0/1)0%   (0/7)0%   (0/1)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.pcm.cost.impl;
8 
9import de.uka.ipd.sdq.pcm.cost.Cost;
10import de.uka.ipd.sdq.pcm.cost.costPackage;
11 
12import org.eclipse.emf.ecore.EClass;
13 
14import org.eclipse.emf.ecore.EObject;
15import org.eclipse.emf.ecore.InternalEObject;
16import org.eclipse.emf.ecore.impl.EObjectImpl;
17 
18/**
19 * <!-- begin-user-doc -->
20 * An implementation of the model object '<em><b>Cost</b></em>'.
21 * <!-- end-user-doc -->
22 * <p>
23 * The following features are implemented:
24 * <ul>
25 *   <li>{@link de.uka.ipd.sdq.pcm.cost.impl.CostImpl#getAnnotatedElement <em>Annotated Element</em>}</li>
26 *   <li>{@link de.uka.ipd.sdq.pcm.cost.impl.CostImpl#getOperatingCost <em>Operating Cost</em>}</li>
27 *   <li>{@link de.uka.ipd.sdq.pcm.cost.impl.CostImpl#getInitialCost <em>Initial Cost</em>}</li>
28 * </ul>
29 * </p>
30 *
31 * @generated
32 */
33public abstract class CostImpl extends EObjectImpl implements Cost {
34        /**
35         * The default value of the '{@link #getOperatingCost() <em>Operating Cost</em>}' attribute.
36         * <!-- begin-user-doc -->
37         * <!-- end-user-doc -->
38         * @see #getOperatingCost()
39         * @generated
40         * @ordered
41         */
42        protected static final double OPERATING_COST_EDEFAULT = 0.0;
43 
44        /**
45         * The default value of the '{@link #getInitialCost() <em>Initial Cost</em>}' attribute.
46         * <!-- begin-user-doc -->
47         * <!-- end-user-doc -->
48         * @see #getInitialCost()
49         * @generated
50         * @ordered
51         */
52        protected static final double INITIAL_COST_EDEFAULT = 0.0;
53 
54        /**
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @generated
58         */
59        protected CostImpl() {
60                super();
61        }
62 
63        /**
64         * <!-- begin-user-doc -->
65         * <!-- end-user-doc -->
66         * @generated
67         */
68        @Override
69        protected EClass eStaticClass() {
70                return costPackage.Literals.COST;
71        }
72 
73        /**
74         * <!-- begin-user-doc -->
75         * <!-- end-user-doc -->
76         * @generated
77         */
78        public EObject getAnnotatedElement() {
79                EObject annotatedElement = basicGetAnnotatedElement();
80                return annotatedElement != null && annotatedElement.eIsProxy() ? eResolveProxy((InternalEObject)annotatedElement) : annotatedElement;
81        }
82 
83        /**
84         * <!-- begin-user-doc -->
85         * <!-- end-user-doc -->
86         * @generated not
87         */
88        public abstract EObject basicGetAnnotatedElement();
89                /**
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @generated not
93         */
94        public boolean isSetAnnotatedElement() {
95                return getAnnotatedElement() != null;
96        }
97 
98        // TODO: implement this method to return the 'Annotated Element' reference
99                // -> do not perform proxy resolution
100                // Ensure that you remove @generated or mark it @generated NOT
101        
102 
103        /**
104         * <!-- begin-user-doc -->
105         * <!-- end-user-doc -->
106         * @generated not
107         */
108        public abstract double getOperatingCost();/* {
109                // TODO: implement this method to return the 'Operating Cost' attribute
110                // Ensure that you remove @generated or mark it @generated NOT
111                throw new UnsupportedOperationException();
112        }*/
113 
114        /**
115         * <!-- begin-user-doc -->
116         * <!-- end-user-doc -->
117         * @generated not
118         */
119        public abstract double getInitialCost(); /* {
120                // TODO: implement this method to return the 'Initial Cost' attribute
121                // Ensure that you remove @generated or mark it @generated NOT
122                throw new UnsupportedOperationException();
123        }*/
124 
125        /**
126         * <!-- begin-user-doc -->
127         * <!-- end-user-doc -->
128         * @generated
129         */
130        @Override
131        public Object eGet(int featureID, boolean resolve, boolean coreType) {
132                switch (featureID) {
133                        case costPackage.COST__ANNOTATED_ELEMENT:
134                                if (resolve) return getAnnotatedElement();
135                                return basicGetAnnotatedElement();
136                        case costPackage.COST__OPERATING_COST:
137                                return getOperatingCost();
138                        case costPackage.COST__INITIAL_COST:
139                                return getInitialCost();
140                }
141                return super.eGet(featureID, resolve, coreType);
142        }
143 
144        /**
145         * <!-- begin-user-doc -->
146         * <!-- end-user-doc -->
147         * @generated
148         */
149        @Override
150        public boolean eIsSet(int featureID) {
151                switch (featureID) {
152                        case costPackage.COST__ANNOTATED_ELEMENT:
153                                return isSetAnnotatedElement();
154                        case costPackage.COST__OPERATING_COST:
155                                return getOperatingCost() != OPERATING_COST_EDEFAULT;
156                        case costPackage.COST__INITIAL_COST:
157                                return getInitialCost() != INITIAL_COST_EDEFAULT;
158                }
159                return super.eIsSet(featureID);
160        }
161 
162} //CostImpl

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