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

COVERAGE SUMMARY FOR SOURCE FILE [ProbabilityFunctionLiteralImpl.java]

nameclass, %method, %block, %line, %
ProbabilityFunctionLiteralImpl.java0%   (0/1)0%   (0/10)0%   (0/148)0%   (0/40)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProbabilityFunctionLiteralImpl0%   (0/1)0%   (0/10)0%   (0/148)0%   (0/40)
ProbabilityFunctionLiteralImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicSetFunction_ProbabilityFunctionLiteral (ProbabilityFunction, Notificatio... 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/13)0%   (0/3)
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)
getFunction_ProbabilityFunctionLiteral (): ProbabilityFunction 0%   (0/1)0%   (0/3)0%   (0/1)
setFunction_ProbabilityFunctionLiteral (ProbabilityFunction): void 0%   (0/1)0%   (0/52)0%   (0/11)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.stoex.impl;
8 
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject;
13import org.eclipse.emf.ecore.impl.ENotificationImpl;
14 
15import de.uka.ipd.sdq.probfunction.ProbabilityFunction;
16import de.uka.ipd.sdq.stoex.ProbabilityFunctionLiteral;
17import de.uka.ipd.sdq.stoex.StoexPackage;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Probability Function Literal</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * <ul>
26 *   <li>{@link de.uka.ipd.sdq.stoex.impl.ProbabilityFunctionLiteralImpl#getFunction_ProbabilityFunctionLiteral <em>Function Probability Function Literal</em>}</li>
27 * </ul>
28 * </p>
29 *
30 * @generated
31 */
32public class ProbabilityFunctionLiteralImpl extends AtomImpl implements ProbabilityFunctionLiteral {
33        /**
34         * <!-- begin-user-doc -->
35         * <!-- end-user-doc -->
36         * @generated
37         */
38        public static final String copyright = "Copyright 2007-2009, SDQ, IPD, U Karlsruhe";
39        /**
40         * The cached value of the '{@link #getFunction_ProbabilityFunctionLiteral() <em>Function Probability Function Literal</em>}' containment reference.
41         * <!-- begin-user-doc -->
42         * <!-- end-user-doc -->
43         * @see #getFunction_ProbabilityFunctionLiteral()
44         * @generated
45         * @ordered
46         */
47        protected ProbabilityFunction function_ProbabilityFunctionLiteral;
48 
49        /**
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @generated
53         */
54        protected ProbabilityFunctionLiteralImpl() {
55                super();
56        }
57 
58        /**
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @generated
62         */
63        @Override
64        protected EClass eStaticClass() {
65                return StoexPackage.Literals.PROBABILITY_FUNCTION_LITERAL;
66        }
67 
68        /**
69         * <!-- begin-user-doc -->
70         * <!-- end-user-doc -->
71         * @generated
72         */
73        public ProbabilityFunction getFunction_ProbabilityFunctionLiteral() {
74                return function_ProbabilityFunctionLiteral;
75        }
76 
77        /**
78         * <!-- begin-user-doc -->
79         * <!-- end-user-doc -->
80         * @generated
81         */
82        public NotificationChain basicSetFunction_ProbabilityFunctionLiteral(ProbabilityFunction newFunction_ProbabilityFunctionLiteral, NotificationChain msgs) {
83                ProbabilityFunction oldFunction_ProbabilityFunctionLiteral = function_ProbabilityFunctionLiteral;
84                function_ProbabilityFunctionLiteral = newFunction_ProbabilityFunctionLiteral;
85                if (eNotificationRequired()) {
86                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, StoexPackage.PROBABILITY_FUNCTION_LITERAL__FUNCTION_PROBABILITY_FUNCTION_LITERAL, oldFunction_ProbabilityFunctionLiteral, newFunction_ProbabilityFunctionLiteral);
87                        if (msgs == null) msgs = notification; else msgs.add(notification);
88                }
89                return msgs;
90        }
91 
92        /**
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        public void setFunction_ProbabilityFunctionLiteral(ProbabilityFunction newFunction_ProbabilityFunctionLiteral) {
98                if (newFunction_ProbabilityFunctionLiteral != function_ProbabilityFunctionLiteral) {
99                        NotificationChain msgs = null;
100                        if (function_ProbabilityFunctionLiteral != null)
101                                msgs = ((InternalEObject)function_ProbabilityFunctionLiteral).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - StoexPackage.PROBABILITY_FUNCTION_LITERAL__FUNCTION_PROBABILITY_FUNCTION_LITERAL, null, msgs);
102                        if (newFunction_ProbabilityFunctionLiteral != null)
103                                msgs = ((InternalEObject)newFunction_ProbabilityFunctionLiteral).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - StoexPackage.PROBABILITY_FUNCTION_LITERAL__FUNCTION_PROBABILITY_FUNCTION_LITERAL, null, msgs);
104                        msgs = basicSetFunction_ProbabilityFunctionLiteral(newFunction_ProbabilityFunctionLiteral, msgs);
105                        if (msgs != null) msgs.dispatch();
106                }
107                else if (eNotificationRequired())
108                        eNotify(new ENotificationImpl(this, Notification.SET, StoexPackage.PROBABILITY_FUNCTION_LITERAL__FUNCTION_PROBABILITY_FUNCTION_LITERAL, newFunction_ProbabilityFunctionLiteral, newFunction_ProbabilityFunctionLiteral));
109        }
110 
111        /**
112         * <!-- begin-user-doc -->
113         * <!-- end-user-doc -->
114         * @generated
115         */
116        @Override
117        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
118                switch (featureID) {
119                        case StoexPackage.PROBABILITY_FUNCTION_LITERAL__FUNCTION_PROBABILITY_FUNCTION_LITERAL:
120                                return basicSetFunction_ProbabilityFunctionLiteral(null, msgs);
121                }
122                return super.eInverseRemove(otherEnd, featureID, msgs);
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 StoexPackage.PROBABILITY_FUNCTION_LITERAL__FUNCTION_PROBABILITY_FUNCTION_LITERAL:
134                                return getFunction_ProbabilityFunctionLiteral();
135                }
136                return super.eGet(featureID, resolve, coreType);
137        }
138 
139        /**
140         * <!-- begin-user-doc -->
141         * <!-- end-user-doc -->
142         * @generated
143         */
144        @Override
145        public void eSet(int featureID, Object newValue) {
146                switch (featureID) {
147                        case StoexPackage.PROBABILITY_FUNCTION_LITERAL__FUNCTION_PROBABILITY_FUNCTION_LITERAL:
148                                setFunction_ProbabilityFunctionLiteral((ProbabilityFunction)newValue);
149                                return;
150                }
151                super.eSet(featureID, newValue);
152        }
153 
154        /**
155         * <!-- begin-user-doc -->
156         * <!-- end-user-doc -->
157         * @generated
158         */
159        @Override
160        public void eUnset(int featureID) {
161                switch (featureID) {
162                        case StoexPackage.PROBABILITY_FUNCTION_LITERAL__FUNCTION_PROBABILITY_FUNCTION_LITERAL:
163                                setFunction_ProbabilityFunctionLiteral((ProbabilityFunction)null);
164                                return;
165                }
166                super.eUnset(featureID);
167        }
168 
169        /**
170         * <!-- begin-user-doc -->
171         * <!-- end-user-doc -->
172         * @generated
173         */
174        @Override
175        public boolean eIsSet(int featureID) {
176                switch (featureID) {
177                        case StoexPackage.PROBABILITY_FUNCTION_LITERAL__FUNCTION_PROBABILITY_FUNCTION_LITERAL:
178                                return function_ProbabilityFunctionLiteral != null;
179                }
180                return super.eIsSet(featureID);
181        }
182 
183} //ProbabilityFunctionLiteralImpl

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