diff options
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.java | 71 |
1 files changed, 71 insertions, 0 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 index 7506e4d7..aea86ed4 100644 --- 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 | |||
@@ -5,6 +5,7 @@ package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | 5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; |
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; | 6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; |
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; | 7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; |
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | 9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; |
9 | 10 | ||
10 | import org.eclipse.emf.common.notify.Notification; | 11 | import org.eclipse.emf.common.notify.Notification; |
@@ -26,6 +27,7 @@ import org.eclipse.emf.ecore.util.EcoreUtil; | |||
26 | * The following features are implemented: | 27 | * The following features are implemented: |
27 | * </p> | 28 | * </p> |
28 | * <ul> | 29 | * <ul> |
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getExists <em>Exists</em>}</li> | ||
29 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getInput <em>Input</em>}</li> | 31 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getInput <em>Input</em>}</li> |
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getOutput <em>Output</em>}</li> | 32 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getOutput <em>Output</em>}</li> |
31 | * </ul> | 33 | * </ul> |
@@ -34,6 +36,26 @@ import org.eclipse.emf.ecore.util.EcoreUtil; | |||
34 | */ | 36 | */ |
35 | public class ConnectionImpl extends MinimalEObjectImpl.Container implements Connection { | 37 | public class ConnectionImpl extends MinimalEObjectImpl.Container implements Connection { |
36 | /** | 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 | /** | ||
37 | * The cached value of the '{@link #getOutput() <em>Output</em>}' reference. | 59 | * The cached value of the '{@link #getOutput() <em>Output</em>}' reference. |
38 | * <!-- begin-user-doc --> | 60 | * <!-- begin-user-doc --> |
39 | * <!-- end-user-doc --> | 61 | * <!-- end-user-doc --> |
@@ -173,6 +195,29 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
173 | * @generated | 195 | * @generated |
174 | */ | 196 | */ |
175 | @Override | 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 | ||
176 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 221 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
177 | switch (featureID) { | 222 | switch (featureID) { |
178 | case CftPackage.CONNECTION__INPUT: | 223 | case CftPackage.CONNECTION__INPUT: |
@@ -225,6 +270,8 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
225 | @Override | 270 | @Override |
226 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 271 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
227 | switch (featureID) { | 272 | switch (featureID) { |
273 | case CftPackage.CONNECTION__EXISTS: | ||
274 | return getExists(); | ||
228 | case CftPackage.CONNECTION__INPUT: | 275 | case CftPackage.CONNECTION__INPUT: |
229 | return getInput(); | 276 | return getInput(); |
230 | case CftPackage.CONNECTION__OUTPUT: | 277 | case CftPackage.CONNECTION__OUTPUT: |
@@ -242,6 +289,9 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
242 | @Override | 289 | @Override |
243 | public void eSet(int featureID, Object newValue) { | 290 | public void eSet(int featureID, Object newValue) { |
244 | switch (featureID) { | 291 | switch (featureID) { |
292 | case CftPackage.CONNECTION__EXISTS: | ||
293 | setExists((Modality)newValue); | ||
294 | return; | ||
245 | case CftPackage.CONNECTION__INPUT: | 295 | case CftPackage.CONNECTION__INPUT: |
246 | setInput((Input)newValue); | 296 | setInput((Input)newValue); |
247 | return; | 297 | return; |
@@ -260,6 +310,9 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
260 | @Override | 310 | @Override |
261 | public void eUnset(int featureID) { | 311 | public void eUnset(int featureID) { |
262 | switch (featureID) { | 312 | switch (featureID) { |
313 | case CftPackage.CONNECTION__EXISTS: | ||
314 | setExists(EXISTS_EDEFAULT); | ||
315 | return; | ||
263 | case CftPackage.CONNECTION__INPUT: | 316 | case CftPackage.CONNECTION__INPUT: |
264 | setInput((Input)null); | 317 | setInput((Input)null); |
265 | return; | 318 | return; |
@@ -278,6 +331,8 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
278 | @Override | 331 | @Override |
279 | public boolean eIsSet(int featureID) { | 332 | public boolean eIsSet(int featureID) { |
280 | switch (featureID) { | 333 | switch (featureID) { |
334 | case CftPackage.CONNECTION__EXISTS: | ||
335 | return exists != EXISTS_EDEFAULT; | ||
281 | case CftPackage.CONNECTION__INPUT: | 336 | case CftPackage.CONNECTION__INPUT: |
282 | return getInput() != null; | 337 | return getInput() != null; |
283 | case CftPackage.CONNECTION__OUTPUT: | 338 | case CftPackage.CONNECTION__OUTPUT: |
@@ -286,4 +341,20 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
286 | return super.eIsSet(featureID); | 341 | return super.eIsSet(featureID); |
287 | } | 342 | } |
288 | 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 | |||
289 | } //ConnectionImpl | 360 | } //ConnectionImpl |