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

COVERAGE SUMMARY FOR SOURCE FILE [SoftwareInducedFailureTypeImpl.java]

nameclass, %method, %block, %line, %
SoftwareInducedFailureTypeImpl.java0%   (0/1)0%   (0/9)0%   (0/105)0%   (0/29)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SoftwareInducedFailureTypeImpl0%   (0/1)0%   (0/9)0%   (0/105)0%   (0/29)
SoftwareInducedFailureTypeImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/17)0%   (0/3)
eSet (int, Object): void 0%   (0/1)0%   (0/17)0%   (0/6)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/10)0%   (0/5)
getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType (): EList 0%   (0/1)0%   (0/15)0%   (0/3)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.reliability.impl;
7 
8import java.util.Collection;
9 
10import org.eclipse.emf.common.notify.NotificationChain;
11import org.eclipse.emf.common.util.EList;
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
15import org.eclipse.emf.ecore.util.InternalEList;
16 
17import de.uka.ipd.sdq.pcm.reliability.InternalFailureOccurrenceDescription;
18import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage;
19import de.uka.ipd.sdq.pcm.reliability.SoftwareInducedFailureType;
20 
21/**
22 * <!-- begin-user-doc -->
23 * An implementation of the model object '<em><b>Software Induced Failure Type</b></em>'.
24 * <!-- end-user-doc -->
25 * <p>
26 * The following features are implemented:
27 * <ul>
28 *   <li>{@link de.uka.ipd.sdq.pcm.reliability.impl.SoftwareInducedFailureTypeImpl#getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType <em>Internal Failure Occurrence Descriptions Software Induced Failure Type</em>}</li>
29 * </ul>
30 * </p>
31 *
32 * @generated
33 */
34public class SoftwareInducedFailureTypeImpl extends FailureTypeImpl implements SoftwareInducedFailureType {
35        /**
36         * <!-- begin-user-doc -->
37         * <!-- end-user-doc -->
38         * @generated
39         */
40        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
41 
42        /**
43         * The cached value of the '{@link #getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType() <em>Internal Failure Occurrence Descriptions Software Induced Failure Type</em>}' reference list.
44         * <!-- begin-user-doc -->
45         * <!-- end-user-doc -->
46         * @see #getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType()
47         * @generated
48         * @ordered
49         */
50        protected EList<InternalFailureOccurrenceDescription> internalFailureOccurrenceDescriptions__SoftwareInducedFailureType;
51 
52        /**
53         * <!-- begin-user-doc -->
54         * <!-- end-user-doc -->
55         * @generated
56         */
57        protected SoftwareInducedFailureTypeImpl() {
58                super();
59        }
60 
61        /**
62         * <!-- begin-user-doc -->
63         * <!-- end-user-doc -->
64         * @generated
65         */
66        @Override
67        protected EClass eStaticClass() {
68                return ReliabilityPackage.Literals.SOFTWARE_INDUCED_FAILURE_TYPE;
69        }
70 
71        /**
72         * <!-- begin-user-doc -->
73         * <!-- end-user-doc -->
74         * @generated
75         */
76        public EList<InternalFailureOccurrenceDescription> getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType() {
77                if (internalFailureOccurrenceDescriptions__SoftwareInducedFailureType == null) {
78                        internalFailureOccurrenceDescriptions__SoftwareInducedFailureType = new EObjectWithInverseResolvingEList<InternalFailureOccurrenceDescription>(InternalFailureOccurrenceDescription.class, this, ReliabilityPackage.SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE, ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION);
79                }
80                return internalFailureOccurrenceDescriptions__SoftwareInducedFailureType;
81        }
82 
83        /**
84         * <!-- begin-user-doc -->
85         * <!-- end-user-doc -->
86         * @generated
87         */
88        @SuppressWarnings("unchecked")
89        @Override
90        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
91                switch (featureID) {
92                        case ReliabilityPackage.SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE:
93                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType()).basicAdd(otherEnd, msgs);
94                }
95                return super.eInverseAdd(otherEnd, featureID, msgs);
96        }
97 
98        /**
99         * <!-- begin-user-doc -->
100         * <!-- end-user-doc -->
101         * @generated
102         */
103        @Override
104        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
105                switch (featureID) {
106                        case ReliabilityPackage.SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE:
107                                return ((InternalEList<?>)getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType()).basicRemove(otherEnd, msgs);
108                }
109                return super.eInverseRemove(otherEnd, featureID, msgs);
110        }
111 
112        /**
113         * <!-- begin-user-doc -->
114         * <!-- end-user-doc -->
115         * @generated
116         */
117        @Override
118        public Object eGet(int featureID, boolean resolve, boolean coreType) {
119                switch (featureID) {
120                        case ReliabilityPackage.SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE:
121                                return getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType();
122                }
123                return super.eGet(featureID, resolve, coreType);
124        }
125 
126        /**
127         * <!-- begin-user-doc -->
128         * <!-- end-user-doc -->
129         * @generated
130         */
131        @SuppressWarnings("unchecked")
132        @Override
133        public void eSet(int featureID, Object newValue) {
134                switch (featureID) {
135                        case ReliabilityPackage.SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE:
136                                getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType().clear();
137                                getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType().addAll((Collection<? extends InternalFailureOccurrenceDescription>)newValue);
138                                return;
139                }
140                super.eSet(featureID, newValue);
141        }
142 
143        /**
144         * <!-- begin-user-doc -->
145         * <!-- end-user-doc -->
146         * @generated
147         */
148        @Override
149        public void eUnset(int featureID) {
150                switch (featureID) {
151                        case ReliabilityPackage.SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE:
152                                getInternalFailureOccurrenceDescriptions__SoftwareInducedFailureType().clear();
153                                return;
154                }
155                super.eUnset(featureID);
156        }
157 
158        /**
159         * <!-- begin-user-doc -->
160         * <!-- end-user-doc -->
161         * @generated
162         */
163        @Override
164        public boolean eIsSet(int featureID) {
165                switch (featureID) {
166                        case ReliabilityPackage.SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE:
167                                return internalFailureOccurrenceDescriptions__SoftwareInducedFailureType != null && !internalFailureOccurrenceDescriptions__SoftwareInducedFailureType.isEmpty();
168                }
169                return super.eIsSet(featureID);
170        }
171 
172} //SoftwareInducedFailureTypeImpl

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