aboutsummaryrefslogtreecommitdiffstats
path: root/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.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/ComponentImpl.java')
-rw-r--r--Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java115
1 files changed, 114 insertions, 1 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java
index 847b6ee1..dcbf7660 100644
--- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java
+++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java
@@ -6,6 +6,7 @@ import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage;
6import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; 6import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component;
7import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; 7import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition;
8import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; 8import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input;
9import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality;
9import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; 10import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output;
10 11
11import java.util.Collection; 12import java.util.Collection;
@@ -32,16 +33,38 @@ import org.eclipse.emf.ecore.util.InternalEList;
32 * The following features are implemented: 33 * The following features are implemented:
33 * </p> 34 * </p>
34 * <ul> 35 * <ul>
36 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getExists <em>Exists</em>}</li>
35 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getInputs <em>Inputs</em>}</li> 37 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getInputs <em>Inputs</em>}</li>
36 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getOutputs <em>Outputs</em>}</li> 38 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getOutputs <em>Outputs</em>}</li>
37 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getComponentDefinition <em>Component Definition</em>}</li> 39 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getComponentDefinition <em>Component Definition</em>}</li>
38 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getName <em>Name</em>}</li> 40 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getName <em>Name</em>}</li>
41 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#isMultipleAllowed <em>Multiple Allowed</em>}</li>
39 * </ul> 42 * </ul>
40 * 43 *
41 * @generated 44 * @generated
42 */ 45 */
43public class ComponentImpl extends MinimalEObjectImpl.Container implements Component { 46public class ComponentImpl extends MinimalEObjectImpl.Container implements Component {
44 /** 47 /**
48 * The default value of the '{@link #getExists() <em>Exists</em>}' attribute.
49 * <!-- begin-user-doc -->
50 * <!-- end-user-doc -->
51 * @see #getExists()
52 * @generated
53 * @ordered
54 */
55 protected static final Modality EXISTS_EDEFAULT = Modality.MUST;
56
57 /**
58 * The cached value of the '{@link #getExists() <em>Exists</em>}' attribute.
59 * <!-- begin-user-doc -->
60 * <!-- end-user-doc -->
61 * @see #getExists()
62 * @generated
63 * @ordered
64 */
65 protected Modality exists = EXISTS_EDEFAULT;
66
67 /**
45 * The cached value of the '{@link #getInputs() <em>Inputs</em>}' containment reference list. 68 * The cached value of the '{@link #getInputs() <em>Inputs</em>}' containment reference list.
46 * <!-- begin-user-doc --> 69 * <!-- begin-user-doc -->
47 * <!-- end-user-doc --> 70 * <!-- end-user-doc -->
@@ -92,6 +115,26 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
92 protected String name = NAME_EDEFAULT; 115 protected String name = NAME_EDEFAULT;
93 116
94 /** 117 /**
118 * The default value of the '{@link #isMultipleAllowed() <em>Multiple Allowed</em>}' attribute.
119 * <!-- begin-user-doc -->
120 * <!-- end-user-doc -->
121 * @see #isMultipleAllowed()
122 * @generated
123 * @ordered
124 */
125 protected static final boolean MULTIPLE_ALLOWED_EDEFAULT = false;
126
127 /**
128 * The cached value of the '{@link #isMultipleAllowed() <em>Multiple Allowed</em>}' attribute.
129 * <!-- begin-user-doc -->
130 * <!-- end-user-doc -->
131 * @see #isMultipleAllowed()
132 * @generated
133 * @ordered
134 */
135 protected boolean multipleAllowed = MULTIPLE_ALLOWED_EDEFAULT;
136
137 /**
95 * <!-- begin-user-doc --> 138 * <!-- begin-user-doc -->
96 * <!-- end-user-doc --> 139 * <!-- end-user-doc -->
97 * @generated 140 * @generated
@@ -204,6 +247,52 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
204 * <!-- end-user-doc --> 247 * <!-- end-user-doc -->
205 * @generated 248 * @generated
206 */ 249 */
250 @Override
251 public Modality getExists() {
252 return exists;
253 }
254
255 /**
256 * <!-- begin-user-doc -->
257 * <!-- end-user-doc -->
258 * @generated
259 */
260 @Override
261 public void setExists(Modality newExists) {
262 Modality oldExists = exists;
263 exists = newExists == null ? EXISTS_EDEFAULT : newExists;
264 if (eNotificationRequired())
265 eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__EXISTS, oldExists, exists));
266 }
267
268 /**
269 * <!-- begin-user-doc -->
270 * <!-- end-user-doc -->
271 * @generated
272 */
273 @Override
274 public boolean isMultipleAllowed() {
275 return multipleAllowed;
276 }
277
278 /**
279 * <!-- begin-user-doc -->
280 * <!-- end-user-doc -->
281 * @generated
282 */
283 @Override
284 public void setMultipleAllowed(boolean newMultipleAllowed) {
285 boolean oldMultipleAllowed = multipleAllowed;
286 multipleAllowed = newMultipleAllowed;
287 if (eNotificationRequired())
288 eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__MULTIPLE_ALLOWED, oldMultipleAllowed, multipleAllowed));
289 }
290
291 /**
292 * <!-- begin-user-doc -->
293 * <!-- end-user-doc -->
294 * @generated
295 */
207 @SuppressWarnings("unchecked") 296 @SuppressWarnings("unchecked")
208 @Override 297 @Override
209 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { 298 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
@@ -240,6 +329,8 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
240 @Override 329 @Override
241 public Object eGet(int featureID, boolean resolve, boolean coreType) { 330 public Object eGet(int featureID, boolean resolve, boolean coreType) {
242 switch (featureID) { 331 switch (featureID) {
332 case CftPackage.COMPONENT__EXISTS:
333 return getExists();
243 case CftPackage.COMPONENT__INPUTS: 334 case CftPackage.COMPONENT__INPUTS:
244 return getInputs(); 335 return getInputs();
245 case CftPackage.COMPONENT__OUTPUTS: 336 case CftPackage.COMPONENT__OUTPUTS:
@@ -249,6 +340,8 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
249 return basicGetComponentDefinition(); 340 return basicGetComponentDefinition();
250 case CftPackage.COMPONENT__NAME: 341 case CftPackage.COMPONENT__NAME:
251 return getName(); 342 return getName();
343 case CftPackage.COMPONENT__MULTIPLE_ALLOWED:
344 return isMultipleAllowed();
252 } 345 }
253 return super.eGet(featureID, resolve, coreType); 346 return super.eGet(featureID, resolve, coreType);
254 } 347 }
@@ -262,6 +355,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
262 @Override 355 @Override
263 public void eSet(int featureID, Object newValue) { 356 public void eSet(int featureID, Object newValue) {
264 switch (featureID) { 357 switch (featureID) {
358 case CftPackage.COMPONENT__EXISTS:
359 setExists((Modality)newValue);
360 return;
265 case CftPackage.COMPONENT__INPUTS: 361 case CftPackage.COMPONENT__INPUTS:
266 getInputs().clear(); 362 getInputs().clear();
267 getInputs().addAll((Collection<? extends Input>)newValue); 363 getInputs().addAll((Collection<? extends Input>)newValue);
@@ -276,6 +372,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
276 case CftPackage.COMPONENT__NAME: 372 case CftPackage.COMPONENT__NAME:
277 setName((String)newValue); 373 setName((String)newValue);
278 return; 374 return;
375 case CftPackage.COMPONENT__MULTIPLE_ALLOWED:
376 setMultipleAllowed((Boolean)newValue);
377 return;
279 } 378 }
280 super.eSet(featureID, newValue); 379 super.eSet(featureID, newValue);
281 } 380 }
@@ -288,6 +387,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
288 @Override 387 @Override
289 public void eUnset(int featureID) { 388 public void eUnset(int featureID) {
290 switch (featureID) { 389 switch (featureID) {
390 case CftPackage.COMPONENT__EXISTS:
391 setExists(EXISTS_EDEFAULT);
392 return;
291 case CftPackage.COMPONENT__INPUTS: 393 case CftPackage.COMPONENT__INPUTS:
292 getInputs().clear(); 394 getInputs().clear();
293 return; 395 return;
@@ -300,6 +402,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
300 case CftPackage.COMPONENT__NAME: 402 case CftPackage.COMPONENT__NAME:
301 setName(NAME_EDEFAULT); 403 setName(NAME_EDEFAULT);
302 return; 404 return;
405 case CftPackage.COMPONENT__MULTIPLE_ALLOWED:
406 setMultipleAllowed(MULTIPLE_ALLOWED_EDEFAULT);
407 return;
303 } 408 }
304 super.eUnset(featureID); 409 super.eUnset(featureID);
305 } 410 }
@@ -312,6 +417,8 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
312 @Override 417 @Override
313 public boolean eIsSet(int featureID) { 418 public boolean eIsSet(int featureID) {
314 switch (featureID) { 419 switch (featureID) {
420 case CftPackage.COMPONENT__EXISTS:
421 return exists != EXISTS_EDEFAULT;
315 case CftPackage.COMPONENT__INPUTS: 422 case CftPackage.COMPONENT__INPUTS:
316 return inputs != null && !inputs.isEmpty(); 423 return inputs != null && !inputs.isEmpty();
317 case CftPackage.COMPONENT__OUTPUTS: 424 case CftPackage.COMPONENT__OUTPUTS:
@@ -320,6 +427,8 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
320 return componentDefinition != null; 427 return componentDefinition != null;
321 case CftPackage.COMPONENT__NAME: 428 case CftPackage.COMPONENT__NAME:
322 return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); 429 return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
430 case CftPackage.COMPONENT__MULTIPLE_ALLOWED:
431 return multipleAllowed != MULTIPLE_ALLOWED_EDEFAULT;
323 } 432 }
324 return super.eIsSet(featureID); 433 return super.eIsSet(featureID);
325 } 434 }
@@ -334,8 +443,12 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
334 if (eIsProxy()) return super.toString(); 443 if (eIsProxy()) return super.toString();
335 444
336 StringBuilder result = new StringBuilder(super.toString()); 445 StringBuilder result = new StringBuilder(super.toString());
337 result.append(" (name: "); 446 result.append(" (exists: ");
447 result.append(exists);
448 result.append(", name: ");
338 result.append(name); 449 result.append(name);
450 result.append(", multipleAllowed: ");
451 result.append(multipleAllowed);
339 result.append(')'); 452 result.append(')');
340 return result.toString(); 453 return result.toString();
341 } 454 }