diff options
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/impl/CyberPhysicalSystemImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/impl/CyberPhysicalSystemImpl.java | 289 |
1 files changed, 289 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/impl/CyberPhysicalSystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/impl/CyberPhysicalSystemImpl.java new file mode 100644 index 00000000..4d254f25 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/impl/CyberPhysicalSystemImpl.java | |||
@@ -0,0 +1,289 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.cps.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.cps.ApplicationInstance; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.cps.ApplicationType; | ||
7 | import hu.bme.mit.inf.dslreasoner.domains.cps.CpsPackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.domains.cps.CyberPhysicalSystem; | ||
9 | import hu.bme.mit.inf.dslreasoner.domains.cps.HostInstance; | ||
10 | import hu.bme.mit.inf.dslreasoner.domains.cps.HostType; | ||
11 | import hu.bme.mit.inf.dslreasoner.domains.cps.Request; | ||
12 | |||
13 | import java.util.Collection; | ||
14 | |||
15 | import org.eclipse.emf.common.notify.NotificationChain; | ||
16 | |||
17 | import org.eclipse.emf.common.util.EList; | ||
18 | |||
19 | import org.eclipse.emf.ecore.EClass; | ||
20 | import org.eclipse.emf.ecore.EStructuralFeature; | ||
21 | import org.eclipse.emf.ecore.InternalEObject; | ||
22 | |||
23 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
24 | |||
25 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
26 | import org.eclipse.emf.ecore.util.InternalEList; | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * An implementation of the model object '<em><b>Cyber Physical System</b></em>'. | ||
31 | * <!-- end-user-doc --> | ||
32 | * <p> | ||
33 | * The following features are implemented: | ||
34 | * </p> | ||
35 | * <ul> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.cps.impl.CyberPhysicalSystemImpl#getRequests <em>Requests</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.cps.impl.CyberPhysicalSystemImpl#getApplicationTypes <em>Application Types</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.cps.impl.CyberPhysicalSystemImpl#getHostTypes <em>Host Types</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.cps.impl.CyberPhysicalSystemImpl#getHosts <em>Hosts</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.cps.impl.CyberPhysicalSystemImpl#getApplications <em>Applications</em>}</li> | ||
41 | * </ul> | ||
42 | * | ||
43 | * @generated | ||
44 | */ | ||
45 | public class CyberPhysicalSystemImpl extends MinimalEObjectImpl.Container implements CyberPhysicalSystem { | ||
46 | /** | ||
47 | * The cached value of the '{@link #getRequests() <em>Requests</em>}' containment reference list. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getRequests() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected EList<Request> requests; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #getApplicationTypes() <em>Application Types</em>}' containment reference list. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #getApplicationTypes() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected EList<ApplicationType> applicationTypes; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getHostTypes() <em>Host Types</em>}' containment reference list. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getHostTypes() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected EList<HostType> hostTypes; | ||
75 | |||
76 | /** | ||
77 | * The cached setting delegate for the '{@link #getHosts() <em>Hosts</em>}' reference list. | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @see #getHosts() | ||
81 | * @generated | ||
82 | * @ordered | ||
83 | */ | ||
84 | protected EStructuralFeature.Internal.SettingDelegate HOSTS__ESETTING_DELEGATE = ((EStructuralFeature.Internal) CpsPackage.Literals.CYBER_PHYSICAL_SYSTEM__HOSTS) | ||
85 | .getSettingDelegate(); | ||
86 | |||
87 | /** | ||
88 | * The cached setting delegate for the '{@link #getApplications() <em>Applications</em>}' reference list. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getApplications() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected EStructuralFeature.Internal.SettingDelegate APPLICATIONS__ESETTING_DELEGATE = ((EStructuralFeature.Internal) CpsPackage.Literals.CYBER_PHYSICAL_SYSTEM__APPLICATIONS) | ||
96 | .getSettingDelegate(); | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | protected CyberPhysicalSystemImpl() { | ||
104 | super(); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | protected EClass eStaticClass() { | ||
114 | return CpsPackage.Literals.CYBER_PHYSICAL_SYSTEM; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public EList<Request> getRequests() { | ||
124 | if (requests == null) { | ||
125 | requests = new EObjectContainmentEList<Request>(Request.class, this, | ||
126 | CpsPackage.CYBER_PHYSICAL_SYSTEM__REQUESTS); | ||
127 | } | ||
128 | return requests; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public EList<ApplicationType> getApplicationTypes() { | ||
138 | if (applicationTypes == null) { | ||
139 | applicationTypes = new EObjectContainmentEList<ApplicationType>(ApplicationType.class, this, | ||
140 | CpsPackage.CYBER_PHYSICAL_SYSTEM__APPLICATION_TYPES); | ||
141 | } | ||
142 | return applicationTypes; | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public EList<HostType> getHostTypes() { | ||
152 | if (hostTypes == null) { | ||
153 | hostTypes = new EObjectContainmentEList<HostType>(HostType.class, this, | ||
154 | CpsPackage.CYBER_PHYSICAL_SYSTEM__HOST_TYPES); | ||
155 | } | ||
156 | return hostTypes; | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @SuppressWarnings("unchecked") | ||
165 | @Override | ||
166 | public EList<HostInstance> getHosts() { | ||
167 | return (EList<HostInstance>) HOSTS__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @SuppressWarnings("unchecked") | ||
176 | @Override | ||
177 | public EList<ApplicationInstance> getApplications() { | ||
178 | return (EList<ApplicationInstance>) APPLICATIONS__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
188 | switch (featureID) { | ||
189 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__REQUESTS: | ||
190 | return ((InternalEList<?>) getRequests()).basicRemove(otherEnd, msgs); | ||
191 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__APPLICATION_TYPES: | ||
192 | return ((InternalEList<?>) getApplicationTypes()).basicRemove(otherEnd, msgs); | ||
193 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__HOST_TYPES: | ||
194 | return ((InternalEList<?>) getHostTypes()).basicRemove(otherEnd, msgs); | ||
195 | } | ||
196 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
206 | switch (featureID) { | ||
207 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__REQUESTS: | ||
208 | return getRequests(); | ||
209 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__APPLICATION_TYPES: | ||
210 | return getApplicationTypes(); | ||
211 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__HOST_TYPES: | ||
212 | return getHostTypes(); | ||
213 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__HOSTS: | ||
214 | return getHosts(); | ||
215 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__APPLICATIONS: | ||
216 | return getApplications(); | ||
217 | } | ||
218 | return super.eGet(featureID, resolve, coreType); | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | */ | ||
226 | @SuppressWarnings("unchecked") | ||
227 | @Override | ||
228 | public void eSet(int featureID, Object newValue) { | ||
229 | switch (featureID) { | ||
230 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__REQUESTS: | ||
231 | getRequests().clear(); | ||
232 | getRequests().addAll((Collection<? extends Request>) newValue); | ||
233 | return; | ||
234 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__APPLICATION_TYPES: | ||
235 | getApplicationTypes().clear(); | ||
236 | getApplicationTypes().addAll((Collection<? extends ApplicationType>) newValue); | ||
237 | return; | ||
238 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__HOST_TYPES: | ||
239 | getHostTypes().clear(); | ||
240 | getHostTypes().addAll((Collection<? extends HostType>) newValue); | ||
241 | return; | ||
242 | } | ||
243 | super.eSet(featureID, newValue); | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | @Override | ||
252 | public void eUnset(int featureID) { | ||
253 | switch (featureID) { | ||
254 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__REQUESTS: | ||
255 | getRequests().clear(); | ||
256 | return; | ||
257 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__APPLICATION_TYPES: | ||
258 | getApplicationTypes().clear(); | ||
259 | return; | ||
260 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__HOST_TYPES: | ||
261 | getHostTypes().clear(); | ||
262 | return; | ||
263 | } | ||
264 | super.eUnset(featureID); | ||
265 | } | ||
266 | |||
267 | /** | ||
268 | * <!-- begin-user-doc --> | ||
269 | * <!-- end-user-doc --> | ||
270 | * @generated | ||
271 | */ | ||
272 | @Override | ||
273 | public boolean eIsSet(int featureID) { | ||
274 | switch (featureID) { | ||
275 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__REQUESTS: | ||
276 | return requests != null && !requests.isEmpty(); | ||
277 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__APPLICATION_TYPES: | ||
278 | return applicationTypes != null && !applicationTypes.isEmpty(); | ||
279 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__HOST_TYPES: | ||
280 | return hostTypes != null && !hostTypes.isEmpty(); | ||
281 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__HOSTS: | ||
282 | return HOSTS__ESETTING_DELEGATE.dynamicIsSet(this, null, 0); | ||
283 | case CpsPackage.CYBER_PHYSICAL_SYSTEM__APPLICATIONS: | ||
284 | return APPLICATIONS__ESETTING_DELEGATE.dynamicIsSet(this, null, 0); | ||
285 | } | ||
286 | return super.eIsSet(featureID); | ||
287 | } | ||
288 | |||
289 | } //CyberPhysicalSystemImpl | ||