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

COVERAGE SUMMARY FOR SOURCE FILE [ActionImpl.java]

nameclass, %method, %block, %line, %
ActionImpl.java0%   (0/1)0%   (0/11)0%   (0/145)0%   (0/40)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ActionImpl0%   (0/1)0%   (0/11)0%   (0/145)0%   (0/40)
ActionImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/20)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/24)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/19)0%   (0/7)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getActionDuration (): double 0%   (0/1)0%   (0/4)0%   (0/1)
getActionStartTime (): double 0%   (0/1)0%   (0/3)0%   (0/1)
setActionDuration (double): void 0%   (0/1)0%   (0/4)0%   (0/1)
setActionStartTime (double): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1/**
2 * Copyright 2008, sdq.ipd.uka.de, U KA
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.simucomframework.simucomstatus.impl;
7 
8import de.uka.ipd.sdq.simucomframework.simucomstatus.Action;
9import de.uka.ipd.sdq.simucomframework.simucomstatus.SimucomstatusPackage;
10 
11import org.eclipse.emf.common.notify.Notification;
12 
13import org.eclipse.emf.ecore.EClass;
14 
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16import org.eclipse.emf.ecore.impl.EObjectImpl;
17 
18/**
19 * <!-- begin-user-doc -->
20 * An implementation of the model object '<em><b>Action</b></em>'.
21 * <!-- end-user-doc -->
22 * <p>
23 * The following features are implemented:
24 * <ul>
25 *   <li>{@link de.uka.ipd.sdq.simucomframework.simucomstatus.impl.ActionImpl#getActionStartTime <em>Action Start Time</em>}</li>
26 *   <li>{@link de.uka.ipd.sdq.simucomframework.simucomstatus.impl.ActionImpl#getActionDuration <em>Action Duration</em>}</li>
27 * </ul>
28 * </p>
29 *
30 * @generated
31 */
32public abstract class ActionImpl extends EObjectImpl implements Action {
33        /**
34         * The default value of the '{@link #getActionStartTime() <em>Action Start Time</em>}' attribute.
35         * <!-- begin-user-doc -->
36         * <!-- end-user-doc -->
37         * @see #getActionStartTime()
38         * @generated
39         * @ordered
40         */
41        protected static final double ACTION_START_TIME_EDEFAULT = 0.0;
42 
43        /**
44         * The cached value of the '{@link #getActionStartTime() <em>Action Start Time</em>}' attribute.
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @see #getActionStartTime()
48         * @generated
49         * @ordered
50         */
51        protected double actionStartTime = ACTION_START_TIME_EDEFAULT;
52 
53        /**
54         * The default value of the '{@link #getActionDuration() <em>Action Duration</em>}' attribute.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @see #getActionDuration()
58         * @generated
59         * @ordered
60         */
61        protected static final double ACTION_DURATION_EDEFAULT = 0.0;
62 
63        /**
64         * <!-- begin-user-doc -->
65         * <!-- end-user-doc -->
66         * @generated
67         */
68        protected ActionImpl() {
69                super();
70        }
71 
72        /**
73         * <!-- begin-user-doc -->
74         * <!-- end-user-doc -->
75         * @generated
76         */
77        @Override
78        protected EClass eStaticClass() {
79                return SimucomstatusPackage.Literals.ACTION;
80        }
81 
82        /**
83         * <!-- begin-user-doc -->
84         * <!-- end-user-doc -->
85         * @generated
86         */
87        public double getActionStartTime() {
88                return actionStartTime;
89        }
90 
91        /**
92         * <!-- begin-user-doc -->
93         * <!-- end-user-doc -->
94         * @generated
95         */
96        public void setActionStartTime(double newActionStartTime) {
97                double oldActionStartTime = actionStartTime;
98                actionStartTime = newActionStartTime;
99                if (eNotificationRequired())
100                        eNotify(new ENotificationImpl(this, Notification.SET, SimucomstatusPackage.ACTION__ACTION_START_TIME, oldActionStartTime, actionStartTime));
101        }
102 
103        /**
104         * <!-- begin-user-doc -->
105         * <!-- end-user-doc -->
106         * @generated
107         */
108        public double getActionDuration() {
109                // TODO: implement this method to return the 'Action Duration' 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
118         */
119        public void setActionDuration(double newActionDuration) {
120                // TODO: implement this method to set the 'Action Duration' 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 SimucomstatusPackage.ACTION__ACTION_START_TIME:
134                                return new Double(getActionStartTime());
135                        case SimucomstatusPackage.ACTION__ACTION_DURATION:
136                                return new Double(getActionDuration());
137                }
138                return super.eGet(featureID, resolve, coreType);
139        }
140 
141        /**
142         * <!-- begin-user-doc -->
143         * <!-- end-user-doc -->
144         * @generated
145         */
146        @Override
147        public void eSet(int featureID, Object newValue) {
148                switch (featureID) {
149                        case SimucomstatusPackage.ACTION__ACTION_START_TIME:
150                                setActionStartTime(((Double)newValue).doubleValue());
151                                return;
152                        case SimucomstatusPackage.ACTION__ACTION_DURATION:
153                                setActionDuration(((Double)newValue).doubleValue());
154                                return;
155                }
156                super.eSet(featureID, newValue);
157        }
158 
159        /**
160         * <!-- begin-user-doc -->
161         * <!-- end-user-doc -->
162         * @generated
163         */
164        @Override
165        public void eUnset(int featureID) {
166                switch (featureID) {
167                        case SimucomstatusPackage.ACTION__ACTION_START_TIME:
168                                setActionStartTime(ACTION_START_TIME_EDEFAULT);
169                                return;
170                        case SimucomstatusPackage.ACTION__ACTION_DURATION:
171                                setActionDuration(ACTION_DURATION_EDEFAULT);
172                                return;
173                }
174                super.eUnset(featureID);
175        }
176 
177        /**
178         * <!-- begin-user-doc -->
179         * <!-- end-user-doc -->
180         * @generated
181         */
182        @Override
183        public boolean eIsSet(int featureID) {
184                switch (featureID) {
185                        case SimucomstatusPackage.ACTION__ACTION_START_TIME:
186                                return actionStartTime != ACTION_START_TIME_EDEFAULT;
187                        case SimucomstatusPackage.ACTION__ACTION_DURATION:
188                                return getActionDuration() != ACTION_DURATION_EDEFAULT;
189                }
190                return super.eIsSet(featureID);
191        }
192 
193        /**
194         * <!-- begin-user-doc -->
195         * <!-- end-user-doc -->
196         * @generated
197         */
198        @Override
199        public String toString() {
200                if (eIsProxy()) return super.toString();
201 
202                StringBuffer result = new StringBuffer(super.toString());
203                result.append(" (actionStartTime: ");
204                result.append(actionStartTime);
205                result.append(')');
206                return result.toString();
207        }
208 
209} //ActionImpl

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