aboutsummaryrefslogtreecommitdiffstats
path: root/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java')
-rw-r--r--Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java360
1 files changed, 0 insertions, 360 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java
deleted file mode 100644
index aea86ed4..00000000
--- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java
+++ /dev/null
@@ -1,360 +0,0 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl;
4
5import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage;
6import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection;
7import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input;
8import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality;
9import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output;
10
11import org.eclipse.emf.common.notify.Notification;
12import org.eclipse.emf.common.notify.NotificationChain;
13
14import org.eclipse.emf.ecore.EClass;
15import org.eclipse.emf.ecore.InternalEObject;
16
17import org.eclipse.emf.ecore.impl.ENotificationImpl;
18import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
19
20import org.eclipse.emf.ecore.util.EcoreUtil;
21
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>Connection</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * </p>
29 * <ul>
30 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getExists <em>Exists</em>}</li>
31 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getInput <em>Input</em>}</li>
32 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getOutput <em>Output</em>}</li>
33 * </ul>
34 *
35 * @generated
36 */
37public class ConnectionImpl extends MinimalEObjectImpl.Container implements Connection {
38 /**
39 * The default value of the '{@link #getExists() <em>Exists</em>}' attribute.
40 * <!-- begin-user-doc -->
41 * <!-- end-user-doc -->
42 * @see #getExists()
43 * @generated
44 * @ordered
45 */
46 protected static final Modality EXISTS_EDEFAULT = Modality.MUST;
47
48 /**
49 * The cached value of the '{@link #getExists() <em>Exists</em>}' attribute.
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @see #getExists()
53 * @generated
54 * @ordered
55 */
56 protected Modality exists = EXISTS_EDEFAULT;
57
58 /**
59 * The cached value of the '{@link #getOutput() <em>Output</em>}' reference.
60 * <!-- begin-user-doc -->
61 * <!-- end-user-doc -->
62 * @see #getOutput()
63 * @generated
64 * @ordered
65 */
66 protected Output output;
67
68 /**
69 * <!-- begin-user-doc -->
70 * <!-- end-user-doc -->
71 * @generated
72 */
73 protected ConnectionImpl() {
74 super();
75 }
76
77 /**
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @generated
81 */
82 @Override
83 protected EClass eStaticClass() {
84 return CftPackage.Literals.CONNECTION;
85 }
86
87 /**
88 * <!-- begin-user-doc -->
89 * <!-- end-user-doc -->
90 * @generated
91 */
92 @Override
93 public Input getInput() {
94 if (eContainerFeatureID() != CftPackage.CONNECTION__INPUT) return null;
95 return (Input)eInternalContainer();
96 }
97
98 /**
99 * <!-- begin-user-doc -->
100 * <!-- end-user-doc -->
101 * @generated
102 */
103 public NotificationChain basicSetInput(Input newInput, NotificationChain msgs) {
104 msgs = eBasicSetContainer((InternalEObject)newInput, CftPackage.CONNECTION__INPUT, msgs);
105 return msgs;
106 }
107
108 /**
109 * <!-- begin-user-doc -->
110 * <!-- end-user-doc -->
111 * @generated
112 */
113 @Override
114 public void setInput(Input newInput) {
115 if (newInput != eInternalContainer() || (eContainerFeatureID() != CftPackage.CONNECTION__INPUT && newInput != null)) {
116 if (EcoreUtil.isAncestor(this, newInput))
117 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
118 NotificationChain msgs = null;
119 if (eInternalContainer() != null)
120 msgs = eBasicRemoveFromContainer(msgs);
121 if (newInput != null)
122 msgs = ((InternalEObject)newInput).eInverseAdd(this, CftPackage.INPUT__INCOMING_CONNECTIONS, Input.class, msgs);
123 msgs = basicSetInput(newInput, msgs);
124 if (msgs != null) msgs.dispatch();
125 }
126 else if (eNotificationRequired())
127 eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__INPUT, newInput, newInput));
128 }
129
130 /**
131 * <!-- begin-user-doc -->
132 * <!-- end-user-doc -->
133 * @generated
134 */
135 @Override
136 public Output getOutput() {
137 if (output != null && output.eIsProxy()) {
138 InternalEObject oldOutput = (InternalEObject)output;
139 output = (Output)eResolveProxy(oldOutput);
140 if (output != oldOutput) {
141 if (eNotificationRequired())
142 eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.CONNECTION__OUTPUT, oldOutput, output));
143 }
144 }
145 return output;
146 }
147
148 /**
149 * <!-- begin-user-doc -->
150 * <!-- end-user-doc -->
151 * @generated
152 */
153 public Output basicGetOutput() {
154 return output;
155 }
156
157 /**
158 * <!-- begin-user-doc -->
159 * <!-- end-user-doc -->
160 * @generated
161 */
162 public NotificationChain basicSetOutput(Output newOutput, NotificationChain msgs) {
163 Output oldOutput = output;
164 output = newOutput;
165 if (eNotificationRequired()) {
166 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__OUTPUT, oldOutput, newOutput);
167 if (msgs == null) msgs = notification; else msgs.add(notification);
168 }
169 return msgs;
170 }
171
172 /**
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @generated
176 */
177 @Override
178 public void setOutput(Output newOutput) {
179 if (newOutput != output) {
180 NotificationChain msgs = null;
181 if (output != null)
182 msgs = ((InternalEObject)output).eInverseRemove(this, CftPackage.OUTPUT__OUTGOING_CONNECTIONS, Output.class, msgs);
183 if (newOutput != null)
184 msgs = ((InternalEObject)newOutput).eInverseAdd(this, CftPackage.OUTPUT__OUTGOING_CONNECTIONS, Output.class, msgs);
185 msgs = basicSetOutput(newOutput, msgs);
186 if (msgs != null) msgs.dispatch();
187 }
188 else if (eNotificationRequired())
189 eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__OUTPUT, newOutput, newOutput));
190 }
191
192 /**
193 * <!-- begin-user-doc -->
194 * <!-- end-user-doc -->
195 * @generated
196 */
197 @Override
198 public Modality getExists() {
199 return exists;
200 }
201
202 /**
203 * <!-- begin-user-doc -->
204 * <!-- end-user-doc -->
205 * @generated
206 */
207 @Override
208 public void setExists(Modality newExists) {
209 Modality oldExists = exists;
210 exists = newExists == null ? EXISTS_EDEFAULT : newExists;
211 if (eNotificationRequired())
212 eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__EXISTS, oldExists, exists));
213 }
214
215 /**
216 * <!-- begin-user-doc -->
217 * <!-- end-user-doc -->
218 * @generated
219 */
220 @Override
221 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
222 switch (featureID) {
223 case CftPackage.CONNECTION__INPUT:
224 if (eInternalContainer() != null)
225 msgs = eBasicRemoveFromContainer(msgs);
226 return basicSetInput((Input)otherEnd, msgs);
227 case CftPackage.CONNECTION__OUTPUT:
228 if (output != null)
229 msgs = ((InternalEObject)output).eInverseRemove(this, CftPackage.OUTPUT__OUTGOING_CONNECTIONS, Output.class, msgs);
230 return basicSetOutput((Output)otherEnd, msgs);
231 }
232 return super.eInverseAdd(otherEnd, featureID, msgs);
233 }
234
235 /**
236 * <!-- begin-user-doc -->
237 * <!-- end-user-doc -->
238 * @generated
239 */
240 @Override
241 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
242 switch (featureID) {
243 case CftPackage.CONNECTION__INPUT:
244 return basicSetInput(null, msgs);
245 case CftPackage.CONNECTION__OUTPUT:
246 return basicSetOutput(null, msgs);
247 }
248 return super.eInverseRemove(otherEnd, featureID, msgs);
249 }
250
251 /**
252 * <!-- begin-user-doc -->
253 * <!-- end-user-doc -->
254 * @generated
255 */
256 @Override
257 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
258 switch (eContainerFeatureID()) {
259 case CftPackage.CONNECTION__INPUT:
260 return eInternalContainer().eInverseRemove(this, CftPackage.INPUT__INCOMING_CONNECTIONS, Input.class, msgs);
261 }
262 return super.eBasicRemoveFromContainerFeature(msgs);
263 }
264
265 /**
266 * <!-- begin-user-doc -->
267 * <!-- end-user-doc -->
268 * @generated
269 */
270 @Override
271 public Object eGet(int featureID, boolean resolve, boolean coreType) {
272 switch (featureID) {
273 case CftPackage.CONNECTION__EXISTS:
274 return getExists();
275 case CftPackage.CONNECTION__INPUT:
276 return getInput();
277 case CftPackage.CONNECTION__OUTPUT:
278 if (resolve) return getOutput();
279 return basicGetOutput();
280 }
281 return super.eGet(featureID, resolve, coreType);
282 }
283
284 /**
285 * <!-- begin-user-doc -->
286 * <!-- end-user-doc -->
287 * @generated
288 */
289 @Override
290 public void eSet(int featureID, Object newValue) {
291 switch (featureID) {
292 case CftPackage.CONNECTION__EXISTS:
293 setExists((Modality)newValue);
294 return;
295 case CftPackage.CONNECTION__INPUT:
296 setInput((Input)newValue);
297 return;
298 case CftPackage.CONNECTION__OUTPUT:
299 setOutput((Output)newValue);
300 return;
301 }
302 super.eSet(featureID, newValue);
303 }
304
305 /**
306 * <!-- begin-user-doc -->
307 * <!-- end-user-doc -->
308 * @generated
309 */
310 @Override
311 public void eUnset(int featureID) {
312 switch (featureID) {
313 case CftPackage.CONNECTION__EXISTS:
314 setExists(EXISTS_EDEFAULT);
315 return;
316 case CftPackage.CONNECTION__INPUT:
317 setInput((Input)null);
318 return;
319 case CftPackage.CONNECTION__OUTPUT:
320 setOutput((Output)null);
321 return;
322 }
323 super.eUnset(featureID);
324 }
325
326 /**
327 * <!-- begin-user-doc -->
328 * <!-- end-user-doc -->
329 * @generated
330 */
331 @Override
332 public boolean eIsSet(int featureID) {
333 switch (featureID) {
334 case CftPackage.CONNECTION__EXISTS:
335 return exists != EXISTS_EDEFAULT;
336 case CftPackage.CONNECTION__INPUT:
337 return getInput() != null;
338 case CftPackage.CONNECTION__OUTPUT:
339 return output != null;
340 }
341 return super.eIsSet(featureID);
342 }
343
344 /**
345 * <!-- begin-user-doc -->
346 * <!-- end-user-doc -->
347 * @generated
348 */
349 @Override
350 public String toString() {
351 if (eIsProxy()) return super.toString();
352
353 StringBuilder result = new StringBuilder(super.toString());
354 result.append(" (exists: ");
355 result.append(exists);
356 result.append(')');
357 return result.toString();
358 }
359
360} //ConnectionImpl