aboutsummaryrefslogtreecommitdiffstats
path: root/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FaultTreeImpl.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/ft/impl/FaultTreeImpl.java')
-rw-r--r--Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FaultTreeImpl.java29
1 files changed, 14 insertions, 15 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FaultTreeImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FaultTreeImpl.java
index 9c716c21..23f1d056 100644
--- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FaultTreeImpl.java
+++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FaultTreeImpl.java
@@ -2,9 +2,9 @@
2 */ 2 */
3package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; 3package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl;
4 4
5import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Event;
6import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree; 5import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree;
7import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; 6import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage;
7import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent;
8 8
9import java.util.Collection; 9import java.util.Collection;
10 10
@@ -17,7 +17,6 @@ import org.eclipse.emf.ecore.EClass;
17import org.eclipse.emf.ecore.InternalEObject; 17import org.eclipse.emf.ecore.InternalEObject;
18 18
19import org.eclipse.emf.ecore.impl.ENotificationImpl; 19import org.eclipse.emf.ecore.impl.ENotificationImpl;
20import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
21 20
22import org.eclipse.emf.ecore.util.EObjectContainmentEList; 21import org.eclipse.emf.ecore.util.EObjectContainmentEList;
23import org.eclipse.emf.ecore.util.InternalEList; 22import org.eclipse.emf.ecore.util.InternalEList;
@@ -36,7 +35,7 @@ import org.eclipse.emf.ecore.util.InternalEList;
36 * 35 *
37 * @generated 36 * @generated
38 */ 37 */
39public class FaultTreeImpl extends MinimalEObjectImpl.Container implements FaultTree { 38public class FaultTreeImpl extends ReliabilityModelImpl implements FaultTree {
40 /** 39 /**
41 * The cached value of the '{@link #getEvents() <em>Events</em>}' containment reference list. 40 * The cached value of the '{@link #getEvents() <em>Events</em>}' containment reference list.
42 * <!-- begin-user-doc --> 41 * <!-- begin-user-doc -->
@@ -45,7 +44,7 @@ public class FaultTreeImpl extends MinimalEObjectImpl.Container implements Fault
45 * @generated 44 * @generated
46 * @ordered 45 * @ordered
47 */ 46 */
48 protected EList<Event> events; 47 protected EList<RandomEvent> events;
49 48
50 /** 49 /**
51 * The cached value of the '{@link #getTopEvent() <em>Top Event</em>}' reference. 50 * The cached value of the '{@link #getTopEvent() <em>Top Event</em>}' reference.
@@ -55,7 +54,7 @@ public class FaultTreeImpl extends MinimalEObjectImpl.Container implements Fault
55 * @generated 54 * @generated
56 * @ordered 55 * @ordered
57 */ 56 */
58 protected Event topEvent; 57 protected RandomEvent topEvent;
59 58
60 /** 59 /**
61 * <!-- begin-user-doc --> 60 * <!-- begin-user-doc -->
@@ -82,9 +81,9 @@ public class FaultTreeImpl extends MinimalEObjectImpl.Container implements Fault
82 * @generated 81 * @generated
83 */ 82 */
84 @Override 83 @Override
85 public EList<Event> getEvents() { 84 public EList<RandomEvent> getEvents() {
86 if (events == null) { 85 if (events == null) {
87 events = new EObjectContainmentEList<Event>(Event.class, this, FtPackage.FAULT_TREE__EVENTS); 86 events = new EObjectContainmentEList<RandomEvent>(RandomEvent.class, this, FtPackage.FAULT_TREE__EVENTS);
88 } 87 }
89 return events; 88 return events;
90 } 89 }
@@ -95,10 +94,10 @@ public class FaultTreeImpl extends MinimalEObjectImpl.Container implements Fault
95 * @generated 94 * @generated
96 */ 95 */
97 @Override 96 @Override
98 public Event getTopEvent() { 97 public RandomEvent getTopEvent() {
99 if (topEvent != null && topEvent.eIsProxy()) { 98 if (topEvent != null && topEvent.eIsProxy()) {
100 InternalEObject oldTopEvent = (InternalEObject)topEvent; 99 InternalEObject oldTopEvent = (InternalEObject)topEvent;
101 topEvent = (Event)eResolveProxy(oldTopEvent); 100 topEvent = (RandomEvent)eResolveProxy(oldTopEvent);
102 if (topEvent != oldTopEvent) { 101 if (topEvent != oldTopEvent) {
103 if (eNotificationRequired()) 102 if (eNotificationRequired())
104 eNotify(new ENotificationImpl(this, Notification.RESOLVE, FtPackage.FAULT_TREE__TOP_EVENT, oldTopEvent, topEvent)); 103 eNotify(new ENotificationImpl(this, Notification.RESOLVE, FtPackage.FAULT_TREE__TOP_EVENT, oldTopEvent, topEvent));
@@ -112,7 +111,7 @@ public class FaultTreeImpl extends MinimalEObjectImpl.Container implements Fault
112 * <!-- end-user-doc --> 111 * <!-- end-user-doc -->
113 * @generated 112 * @generated
114 */ 113 */
115 public Event basicGetTopEvent() { 114 public RandomEvent basicGetTopEvent() {
116 return topEvent; 115 return topEvent;
117 } 116 }
118 117
@@ -122,8 +121,8 @@ public class FaultTreeImpl extends MinimalEObjectImpl.Container implements Fault
122 * @generated 121 * @generated
123 */ 122 */
124 @Override 123 @Override
125 public void setTopEvent(Event newTopEvent) { 124 public void setTopEvent(RandomEvent newTopEvent) {
126 Event oldTopEvent = topEvent; 125 RandomEvent oldTopEvent = topEvent;
127 topEvent = newTopEvent; 126 topEvent = newTopEvent;
128 if (eNotificationRequired()) 127 if (eNotificationRequired())
129 eNotify(new ENotificationImpl(this, Notification.SET, FtPackage.FAULT_TREE__TOP_EVENT, oldTopEvent, topEvent)); 128 eNotify(new ENotificationImpl(this, Notification.SET, FtPackage.FAULT_TREE__TOP_EVENT, oldTopEvent, topEvent));
@@ -171,10 +170,10 @@ public class FaultTreeImpl extends MinimalEObjectImpl.Container implements Fault
171 switch (featureID) { 170 switch (featureID) {
172 case FtPackage.FAULT_TREE__EVENTS: 171 case FtPackage.FAULT_TREE__EVENTS:
173 getEvents().clear(); 172 getEvents().clear();
174 getEvents().addAll((Collection<? extends Event>)newValue); 173 getEvents().addAll((Collection<? extends RandomEvent>)newValue);
175 return; 174 return;
176 case FtPackage.FAULT_TREE__TOP_EVENT: 175 case FtPackage.FAULT_TREE__TOP_EVENT:
177 setTopEvent((Event)newValue); 176 setTopEvent((RandomEvent)newValue);
178 return; 177 return;
179 } 178 }
180 super.eSet(featureID, newValue); 179 super.eSet(featureID, newValue);
@@ -192,7 +191,7 @@ public class FaultTreeImpl extends MinimalEObjectImpl.Container implements Fault
192 getEvents().clear(); 191 getEvents().clear();
193 return; 192 return;
194 case FtPackage.FAULT_TREE__TOP_EVENT: 193 case FtPackage.FAULT_TREE__TOP_EVENT:
195 setTopEvent((Event)null); 194 setTopEvent((RandomEvent)null);
196 return; 195 return;
197 } 196 }
198 super.eUnset(featureID); 197 super.eUnset(featureID);