diff options
author | 2019-02-05 23:54:03 +0100 | |
---|---|---|
committer | 2019-02-19 19:18:25 +0100 | |
commit | 7f7f934fe6ad11df96906d009eec68583fd46660 (patch) | |
tree | 17828b0e833bc89b2b796fcc7da6cb74d6ec3e9c /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java | |
parent | Generated files change (diff) | |
download | VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.tar.gz VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.tar.zst VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.zip |
[Stochastic] Fault tree transformation langauge
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java | 244 |
1 files changed, 244 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java new file mode 100644 index 00000000..f10ae8a2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java | |||
@@ -0,0 +1,244 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Event Reference</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl#getComponent <em>Component</em>}</li> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl#getEvent <em>Event</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class EventReferenceImpl extends MinimalEObjectImpl.Container implements EventReference | ||
34 | { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getComponent() <em>Component</em>}' reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getComponent() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected Variable component; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getEvent() <em>Event</em>}' reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getEvent() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected EventDeclaration event; | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | protected EventReferenceImpl() | ||
61 | { | ||
62 | super(); | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | protected EClass eStaticClass() | ||
72 | { | ||
73 | return CftLanguagePackage.Literals.EVENT_REFERENCE; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | public Variable getComponent() | ||
83 | { | ||
84 | if (component != null && component.eIsProxy()) | ||
85 | { | ||
86 | InternalEObject oldComponent = (InternalEObject)component; | ||
87 | component = (Variable)eResolveProxy(oldComponent); | ||
88 | if (component != oldComponent) | ||
89 | { | ||
90 | if (eNotificationRequired()) | ||
91 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.EVENT_REFERENCE__COMPONENT, oldComponent, component)); | ||
92 | } | ||
93 | } | ||
94 | return component; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public Variable basicGetComponent() | ||
103 | { | ||
104 | return component; | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | public void setComponent(Variable newComponent) | ||
114 | { | ||
115 | Variable oldComponent = component; | ||
116 | component = newComponent; | ||
117 | if (eNotificationRequired()) | ||
118 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_REFERENCE__COMPONENT, oldComponent, component)); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public EventDeclaration getEvent() | ||
128 | { | ||
129 | if (event != null && event.eIsProxy()) | ||
130 | { | ||
131 | InternalEObject oldEvent = (InternalEObject)event; | ||
132 | event = (EventDeclaration)eResolveProxy(oldEvent); | ||
133 | if (event != oldEvent) | ||
134 | { | ||
135 | if (eNotificationRequired()) | ||
136 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.EVENT_REFERENCE__EVENT, oldEvent, event)); | ||
137 | } | ||
138 | } | ||
139 | return event; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | public EventDeclaration basicGetEvent() | ||
148 | { | ||
149 | return event; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | @Override | ||
158 | public void setEvent(EventDeclaration newEvent) | ||
159 | { | ||
160 | EventDeclaration oldEvent = event; | ||
161 | event = newEvent; | ||
162 | if (eNotificationRequired()) | ||
163 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_REFERENCE__EVENT, oldEvent, event)); | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
173 | { | ||
174 | switch (featureID) | ||
175 | { | ||
176 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
177 | if (resolve) return getComponent(); | ||
178 | return basicGetComponent(); | ||
179 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
180 | if (resolve) return getEvent(); | ||
181 | return basicGetEvent(); | ||
182 | } | ||
183 | return super.eGet(featureID, resolve, coreType); | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | @Override | ||
192 | public void eSet(int featureID, Object newValue) | ||
193 | { | ||
194 | switch (featureID) | ||
195 | { | ||
196 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
197 | setComponent((Variable)newValue); | ||
198 | return; | ||
199 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
200 | setEvent((EventDeclaration)newValue); | ||
201 | return; | ||
202 | } | ||
203 | super.eSet(featureID, newValue); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public void eUnset(int featureID) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
217 | setComponent((Variable)null); | ||
218 | return; | ||
219 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
220 | setEvent((EventDeclaration)null); | ||
221 | return; | ||
222 | } | ||
223 | super.eUnset(featureID); | ||
224 | } | ||
225 | |||
226 | /** | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | */ | ||
231 | @Override | ||
232 | public boolean eIsSet(int featureID) | ||
233 | { | ||
234 | switch (featureID) | ||
235 | { | ||
236 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
237 | return component != null; | ||
238 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
239 | return event != null; | ||
240 | } | ||
241 | return super.eIsSet(featureID); | ||
242 | } | ||
243 | |||
244 | } //EventReferenceImpl | ||