diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java | 308 |
1 files changed, 0 insertions, 308 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java deleted file mode 100644 index aa560064..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java +++ /dev/null | |||
@@ -1,308 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; | ||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; | ||
24 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
25 | import org.eclipse.emf.ecore.util.InternalEList; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Input</b></em>'. | ||
30 | * <!-- end-user-doc --> | ||
31 | * <p> | ||
32 | * The following features are implemented: | ||
33 | * </p> | ||
34 | * <ul> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getInputEvent <em>Input Event</em>}</li> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getComponent <em>Component</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getIncomingConnections <em>Incoming Connections</em>}</li> | ||
38 | * </ul> | ||
39 | * | ||
40 | * @generated | ||
41 | */ | ||
42 | public class InputImpl extends MinimalEObjectImpl.Container implements Input { | ||
43 | /** | ||
44 | * The cached value of the '{@link #getInputEvent() <em>Input Event</em>}' reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getInputEvent() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected InputEvent inputEvent; | ||
52 | |||
53 | /** | ||
54 | * The cached value of the '{@link #getIncomingConnections() <em>Incoming Connections</em>}' containment reference list. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getIncomingConnections() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected EList<Connection> incomingConnections; | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | protected InputImpl() { | ||
69 | super(); | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | protected EClass eStaticClass() { | ||
79 | return CftPackage.Literals.INPUT; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public InputEvent getInputEvent() { | ||
89 | if (inputEvent != null && inputEvent.eIsProxy()) { | ||
90 | InternalEObject oldInputEvent = (InternalEObject)inputEvent; | ||
91 | inputEvent = (InputEvent)eResolveProxy(oldInputEvent); | ||
92 | if (inputEvent != oldInputEvent) { | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.INPUT__INPUT_EVENT, oldInputEvent, inputEvent)); | ||
95 | } | ||
96 | } | ||
97 | return inputEvent; | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | public InputEvent basicGetInputEvent() { | ||
106 | return inputEvent; | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | @Override | ||
115 | public void setInputEvent(InputEvent newInputEvent) { | ||
116 | InputEvent oldInputEvent = inputEvent; | ||
117 | inputEvent = newInputEvent; | ||
118 | if (eNotificationRequired()) | ||
119 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INPUT__INPUT_EVENT, oldInputEvent, inputEvent)); | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public Component getComponent() { | ||
129 | if (eContainerFeatureID() != CftPackage.INPUT__COMPONENT) return null; | ||
130 | return (Component)eInternalContainer(); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetComponent(Component newComponent, NotificationChain msgs) { | ||
139 | msgs = eBasicSetContainer((InternalEObject)newComponent, CftPackage.INPUT__COMPONENT, msgs); | ||
140 | return msgs; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public void setComponent(Component newComponent) { | ||
150 | if (newComponent != eInternalContainer() || (eContainerFeatureID() != CftPackage.INPUT__COMPONENT && newComponent != null)) { | ||
151 | if (EcoreUtil.isAncestor(this, newComponent)) | ||
152 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | ||
153 | NotificationChain msgs = null; | ||
154 | if (eInternalContainer() != null) | ||
155 | msgs = eBasicRemoveFromContainer(msgs); | ||
156 | if (newComponent != null) | ||
157 | msgs = ((InternalEObject)newComponent).eInverseAdd(this, CftPackage.COMPONENT__INPUTS, Component.class, msgs); | ||
158 | msgs = basicSetComponent(newComponent, msgs); | ||
159 | if (msgs != null) msgs.dispatch(); | ||
160 | } | ||
161 | else if (eNotificationRequired()) | ||
162 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INPUT__COMPONENT, newComponent, newComponent)); | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | @Override | ||
171 | public EList<Connection> getIncomingConnections() { | ||
172 | if (incomingConnections == null) { | ||
173 | incomingConnections = new EObjectContainmentWithInverseEList<Connection>(Connection.class, this, CftPackage.INPUT__INCOMING_CONNECTIONS, CftPackage.CONNECTION__INPUT); | ||
174 | } | ||
175 | return incomingConnections; | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | @SuppressWarnings("unchecked") | ||
184 | @Override | ||
185 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
186 | switch (featureID) { | ||
187 | case CftPackage.INPUT__COMPONENT: | ||
188 | if (eInternalContainer() != null) | ||
189 | msgs = eBasicRemoveFromContainer(msgs); | ||
190 | return basicSetComponent((Component)otherEnd, msgs); | ||
191 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
192 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getIncomingConnections()).basicAdd(otherEnd, msgs); | ||
193 | } | ||
194 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | @Override | ||
203 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
204 | switch (featureID) { | ||
205 | case CftPackage.INPUT__COMPONENT: | ||
206 | return basicSetComponent(null, msgs); | ||
207 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
208 | return ((InternalEList<?>)getIncomingConnections()).basicRemove(otherEnd, msgs); | ||
209 | } | ||
210 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | ||
220 | switch (eContainerFeatureID()) { | ||
221 | case CftPackage.INPUT__COMPONENT: | ||
222 | return eInternalContainer().eInverseRemove(this, CftPackage.COMPONENT__INPUTS, Component.class, msgs); | ||
223 | } | ||
224 | return super.eBasicRemoveFromContainerFeature(msgs); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
234 | switch (featureID) { | ||
235 | case CftPackage.INPUT__INPUT_EVENT: | ||
236 | if (resolve) return getInputEvent(); | ||
237 | return basicGetInputEvent(); | ||
238 | case CftPackage.INPUT__COMPONENT: | ||
239 | return getComponent(); | ||
240 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
241 | return getIncomingConnections(); | ||
242 | } | ||
243 | return super.eGet(featureID, resolve, coreType); | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | @SuppressWarnings("unchecked") | ||
252 | @Override | ||
253 | public void eSet(int featureID, Object newValue) { | ||
254 | switch (featureID) { | ||
255 | case CftPackage.INPUT__INPUT_EVENT: | ||
256 | setInputEvent((InputEvent)newValue); | ||
257 | return; | ||
258 | case CftPackage.INPUT__COMPONENT: | ||
259 | setComponent((Component)newValue); | ||
260 | return; | ||
261 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
262 | getIncomingConnections().clear(); | ||
263 | getIncomingConnections().addAll((Collection<? extends Connection>)newValue); | ||
264 | return; | ||
265 | } | ||
266 | super.eSet(featureID, newValue); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | @Override | ||
275 | public void eUnset(int featureID) { | ||
276 | switch (featureID) { | ||
277 | case CftPackage.INPUT__INPUT_EVENT: | ||
278 | setInputEvent((InputEvent)null); | ||
279 | return; | ||
280 | case CftPackage.INPUT__COMPONENT: | ||
281 | setComponent((Component)null); | ||
282 | return; | ||
283 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
284 | getIncomingConnections().clear(); | ||
285 | return; | ||
286 | } | ||
287 | super.eUnset(featureID); | ||
288 | } | ||
289 | |||
290 | /** | ||
291 | * <!-- begin-user-doc --> | ||
292 | * <!-- end-user-doc --> | ||
293 | * @generated | ||
294 | */ | ||
295 | @Override | ||
296 | public boolean eIsSet(int featureID) { | ||
297 | switch (featureID) { | ||
298 | case CftPackage.INPUT__INPUT_EVENT: | ||
299 | return inputEvent != null; | ||
300 | case CftPackage.INPUT__COMPONENT: | ||
301 | return getComponent() != null; | ||
302 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
303 | return incomingConnections != null && !incomingConnections.isEmpty(); | ||
304 | } | ||
305 | return super.eIsSet(featureID); | ||
306 | } | ||
307 | |||
308 | } //InputImpl | ||