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

COVERAGE SUMMARY FOR SOURCE FILE [SequentialResourceUsageImpl.java]

nameclass, %method, %block, %line, %
SequentialResourceUsageImpl.java0%   (0/1)0%   (0/8)0%   (0/92)0%   (0/27)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SequentialResourceUsageImpl0%   (0/1)0%   (0/8)0%   (0/92)0%   (0/27)
SequentialResourceUsageImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)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)
getResourceUsages (): EList 0%   (0/1)0%   (0/14)0%   (0/3)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.spa.resourcemodel.impl;
8 
9import java.util.Collection;
10 
11import org.eclipse.emf.common.notify.NotificationChain;
12import org.eclipse.emf.common.util.EList;
13import org.eclipse.emf.ecore.EClass;
14import org.eclipse.emf.ecore.InternalEObject;
15import org.eclipse.emf.ecore.util.EObjectContainmentEList;
16import org.eclipse.emf.ecore.util.InternalEList;
17 
18import de.uka.ipd.sdq.spa.resourcemodel.AbstractResourceUsage;
19import de.uka.ipd.sdq.spa.resourcemodel.ResourceModelPackage;
20import de.uka.ipd.sdq.spa.resourcemodel.SequentialResourceUsage;
21 
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>Sequential Resource Usage</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * <ul>
29 *   <li>{@link de.uka.ipd.sdq.spa.resourcemodel.impl.SequentialResourceUsageImpl#getResourceUsages <em>Resource Usages</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public class SequentialResourceUsageImpl extends AbstractResourceUsageImpl implements SequentialResourceUsage {
36        /**
37         * The cached value of the '{@link #getResourceUsages() <em>Resource Usages</em>}' containment reference list.
38         * <!-- begin-user-doc -->
39         * <!-- end-user-doc -->
40         * @see #getResourceUsages()
41         * @generated
42         * @ordered
43         */
44        protected EList resourceUsages = null;
45 
46        /**
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @generated
50         */
51        protected SequentialResourceUsageImpl() {
52                super();
53        }
54 
55        /**
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @generated
59         */
60        protected EClass eStaticClass() {
61                return ResourceModelPackage.Literals.SEQUENTIAL_RESOURCE_USAGE;
62        }
63 
64        /**
65         * <!-- begin-user-doc -->
66         * <!-- end-user-doc -->
67         * @generated
68         */
69        public EList getResourceUsages() {
70                if (resourceUsages == null) {
71                        resourceUsages = new EObjectContainmentEList(AbstractResourceUsage.class, this, ResourceModelPackage.SEQUENTIAL_RESOURCE_USAGE__RESOURCE_USAGES);
72                }
73                return resourceUsages;
74        }
75 
76        /**
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
82                switch (featureID) {
83                        case ResourceModelPackage.SEQUENTIAL_RESOURCE_USAGE__RESOURCE_USAGES:
84                                return ((InternalEList)getResourceUsages()).basicRemove(otherEnd, msgs);
85                }
86                return super.eInverseRemove(otherEnd, featureID, msgs);
87        }
88 
89        /**
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @generated
93         */
94        public Object eGet(int featureID, boolean resolve, boolean coreType) {
95                switch (featureID) {
96                        case ResourceModelPackage.SEQUENTIAL_RESOURCE_USAGE__RESOURCE_USAGES:
97                                return getResourceUsages();
98                }
99                return super.eGet(featureID, resolve, coreType);
100        }
101 
102        /**
103         * <!-- begin-user-doc -->
104         * <!-- end-user-doc -->
105         * @generated
106         */
107        public void eSet(int featureID, Object newValue) {
108                switch (featureID) {
109                        case ResourceModelPackage.SEQUENTIAL_RESOURCE_USAGE__RESOURCE_USAGES:
110                                getResourceUsages().clear();
111                                getResourceUsages().addAll((Collection)newValue);
112                                return;
113                }
114                super.eSet(featureID, newValue);
115        }
116 
117        /**
118         * <!-- begin-user-doc -->
119         * <!-- end-user-doc -->
120         * @generated
121         */
122        public void eUnset(int featureID) {
123                switch (featureID) {
124                        case ResourceModelPackage.SEQUENTIAL_RESOURCE_USAGE__RESOURCE_USAGES:
125                                getResourceUsages().clear();
126                                return;
127                }
128                super.eUnset(featureID);
129        }
130 
131        /**
132         * <!-- begin-user-doc -->
133         * <!-- end-user-doc -->
134         * @generated
135         */
136        public boolean eIsSet(int featureID) {
137                switch (featureID) {
138                        case ResourceModelPackage.SEQUENTIAL_RESOURCE_USAGE__RESOURCE_USAGES:
139                                return resourceUsages != null && !resourceUsages.isEmpty();
140                }
141                return super.eIsSet(featureID);
142        }
143 
144} //SequentialResourceUsageImpl

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