diff options
author | Kristóf Marussy <kris7topher@gmail.com> | 2019-02-06 18:28:18 +0100 |
---|---|---|
committer | Kristóf Marussy <kris7topher@gmail.com> | 2019-02-19 19:18:25 +0100 |
commit | 615b602f0a9b4ce9eca8c38b9aa780b81d03d8e7 (patch) | |
tree | 1c9fe0f4ae152d84152c8ff1cfb6366ec8b277e9 /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java | |
parent | [Stochastic] Fault tree transformation langauge (diff) | |
download | VIATRA-Generator-615b602f0a9b4ce9eca8c38b9aa780b81d03d8e7.tar.gz VIATRA-Generator-615b602f0a9b4ce9eca8c38b9aa780b81d03d8e7.tar.zst VIATRA-Generator-615b602f0a9b4ce9eca8c38b9aa780b81d03d8e7.zip |
Extract component fault tree model
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java | 398 |
1 files changed, 398 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java new file mode 100644 index 00000000..f2ec9ffb --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java | |||
@@ -0,0 +1,398 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.util; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.*; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | |||
10 | import org.eclipse.emf.ecore.util.Switch; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
15 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
16 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
17 | * starting with the actual class of the object | ||
18 | * and proceeding up the inheritance hierarchy | ||
19 | * until a non-null result is returned, | ||
20 | * which is the result of the switch. | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage | ||
23 | * @generated | ||
24 | */ | ||
25 | public class CftSwitch<T> extends Switch<T> { | ||
26 | /** | ||
27 | * The cached model package | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | protected static CftPackage modelPackage; | ||
33 | |||
34 | /** | ||
35 | * Creates an instance of the switch. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public CftSwitch() { | ||
41 | if (modelPackage == null) { | ||
42 | modelPackage = CftPackage.eINSTANCE; | ||
43 | } | ||
44 | } | ||
45 | |||
46 | /** | ||
47 | * Checks whether this is a switch for the given package. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @param ePackage the package in question. | ||
51 | * @return whether this is a switch for the given package. | ||
52 | * @generated | ||
53 | */ | ||
54 | @Override | ||
55 | protected boolean isSwitchFor(EPackage ePackage) { | ||
56 | return ePackage == modelPackage; | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected T doSwitch(int classifierID, EObject theEObject) { | ||
68 | switch (classifierID) { | ||
69 | case CftPackage.COMPONENT_DEFINITION: { | ||
70 | ComponentDefinition componentDefinition = (ComponentDefinition)theEObject; | ||
71 | T result = caseComponentDefinition(componentDefinition); | ||
72 | if (result == null) result = defaultCase(theEObject); | ||
73 | return result; | ||
74 | } | ||
75 | case CftPackage.EVENT_DEFINITION: { | ||
76 | EventDefinition eventDefinition = (EventDefinition)theEObject; | ||
77 | T result = caseEventDefinition(eventDefinition); | ||
78 | if (result == null) result = caseEventDeclaration(eventDefinition); | ||
79 | if (result == null) result = defaultCase(theEObject); | ||
80 | return result; | ||
81 | } | ||
82 | case CftPackage.GATE_DEFINITION: { | ||
83 | GateDefinition gateDefinition = (GateDefinition)theEObject; | ||
84 | T result = caseGateDefinition(gateDefinition); | ||
85 | if (result == null) result = caseEventDefinition(gateDefinition); | ||
86 | if (result == null) result = caseEventDeclaration(gateDefinition); | ||
87 | if (result == null) result = defaultCase(theEObject); | ||
88 | return result; | ||
89 | } | ||
90 | case CftPackage.BASIC_EVENT_DEFINITION: { | ||
91 | BasicEventDefinition basicEventDefinition = (BasicEventDefinition)theEObject; | ||
92 | T result = caseBasicEventDefinition(basicEventDefinition); | ||
93 | if (result == null) result = caseEventDefinition(basicEventDefinition); | ||
94 | if (result == null) result = caseEventDeclaration(basicEventDefinition); | ||
95 | if (result == null) result = defaultCase(theEObject); | ||
96 | return result; | ||
97 | } | ||
98 | case CftPackage.INTPUT_EVENT: { | ||
99 | IntputEvent intputEvent = (IntputEvent)theEObject; | ||
100 | T result = caseIntputEvent(intputEvent); | ||
101 | if (result == null) result = caseEventDeclaration(intputEvent); | ||
102 | if (result == null) result = defaultCase(theEObject); | ||
103 | return result; | ||
104 | } | ||
105 | case CftPackage.EVENT_DECLARATION: { | ||
106 | EventDeclaration eventDeclaration = (EventDeclaration)theEObject; | ||
107 | T result = caseEventDeclaration(eventDeclaration); | ||
108 | if (result == null) result = defaultCase(theEObject); | ||
109 | return result; | ||
110 | } | ||
111 | case CftPackage.AND_GATE_DEFINITION: { | ||
112 | AndGateDefinition andGateDefinition = (AndGateDefinition)theEObject; | ||
113 | T result = caseAndGateDefinition(andGateDefinition); | ||
114 | if (result == null) result = caseGateDefinition(andGateDefinition); | ||
115 | if (result == null) result = caseEventDefinition(andGateDefinition); | ||
116 | if (result == null) result = caseEventDeclaration(andGateDefinition); | ||
117 | if (result == null) result = defaultCase(theEObject); | ||
118 | return result; | ||
119 | } | ||
120 | case CftPackage.OR_GATE_DEFINITION: { | ||
121 | OrGateDefinition orGateDefinition = (OrGateDefinition)theEObject; | ||
122 | T result = caseOrGateDefinition(orGateDefinition); | ||
123 | if (result == null) result = caseGateDefinition(orGateDefinition); | ||
124 | if (result == null) result = caseEventDefinition(orGateDefinition); | ||
125 | if (result == null) result = caseEventDeclaration(orGateDefinition); | ||
126 | if (result == null) result = defaultCase(theEObject); | ||
127 | return result; | ||
128 | } | ||
129 | case CftPackage.KOF_MGATE_DEFINITION: { | ||
130 | KOfMGateDefinition kOfMGateDefinition = (KOfMGateDefinition)theEObject; | ||
131 | T result = caseKOfMGateDefinition(kOfMGateDefinition); | ||
132 | if (result == null) result = caseGateDefinition(kOfMGateDefinition); | ||
133 | if (result == null) result = caseEventDefinition(kOfMGateDefinition); | ||
134 | if (result == null) result = caseEventDeclaration(kOfMGateDefinition); | ||
135 | if (result == null) result = defaultCase(theEObject); | ||
136 | return result; | ||
137 | } | ||
138 | case CftPackage.COMPONENT_FAULT_TREE: { | ||
139 | ComponentFaultTree componentFaultTree = (ComponentFaultTree)theEObject; | ||
140 | T result = caseComponentFaultTree(componentFaultTree); | ||
141 | if (result == null) result = defaultCase(theEObject); | ||
142 | return result; | ||
143 | } | ||
144 | case CftPackage.COMPONENT: { | ||
145 | Component component = (Component)theEObject; | ||
146 | T result = caseComponent(component); | ||
147 | if (result == null) result = defaultCase(theEObject); | ||
148 | return result; | ||
149 | } | ||
150 | case CftPackage.INPUT: { | ||
151 | Input input = (Input)theEObject; | ||
152 | T result = caseInput(input); | ||
153 | if (result == null) result = defaultCase(theEObject); | ||
154 | return result; | ||
155 | } | ||
156 | case CftPackage.OUTPUT: { | ||
157 | Output output = (Output)theEObject; | ||
158 | T result = caseOutput(output); | ||
159 | if (result == null) result = defaultCase(theEObject); | ||
160 | return result; | ||
161 | } | ||
162 | case CftPackage.CONNECTION: { | ||
163 | Connection connection = (Connection)theEObject; | ||
164 | T result = caseConnection(connection); | ||
165 | if (result == null) result = defaultCase(theEObject); | ||
166 | return result; | ||
167 | } | ||
168 | default: return defaultCase(theEObject); | ||
169 | } | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * Returns the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
174 | * <!-- begin-user-doc --> | ||
175 | * This implementation returns null; | ||
176 | * returning a non-null result will terminate the switch. | ||
177 | * <!-- end-user-doc --> | ||
178 | * @param object the target of the switch. | ||
179 | * @return the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
180 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
181 | * @generated | ||
182 | */ | ||
183 | public T caseComponentDefinition(ComponentDefinition object) { | ||
184 | return null; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * Returns the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
189 | * <!-- begin-user-doc --> | ||
190 | * This implementation returns null; | ||
191 | * returning a non-null result will terminate the switch. | ||
192 | * <!-- end-user-doc --> | ||
193 | * @param object the target of the switch. | ||
194 | * @return the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
195 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
196 | * @generated | ||
197 | */ | ||
198 | public T caseEventDefinition(EventDefinition object) { | ||
199 | return null; | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * Returns the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
204 | * <!-- begin-user-doc --> | ||
205 | * This implementation returns null; | ||
206 | * returning a non-null result will terminate the switch. | ||
207 | * <!-- end-user-doc --> | ||
208 | * @param object the target of the switch. | ||
209 | * @return the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
210 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
211 | * @generated | ||
212 | */ | ||
213 | public T caseGateDefinition(GateDefinition object) { | ||
214 | return null; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * Returns the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * This implementation returns null; | ||
221 | * returning a non-null result will terminate the switch. | ||
222 | * <!-- end-user-doc --> | ||
223 | * @param object the target of the switch. | ||
224 | * @return the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
225 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
226 | * @generated | ||
227 | */ | ||
228 | public T caseBasicEventDefinition(BasicEventDefinition object) { | ||
229 | return null; | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * Returns the result of interpreting the object as an instance of '<em>Intput Event</em>'. | ||
234 | * <!-- begin-user-doc --> | ||
235 | * This implementation returns null; | ||
236 | * returning a non-null result will terminate the switch. | ||
237 | * <!-- end-user-doc --> | ||
238 | * @param object the target of the switch. | ||
239 | * @return the result of interpreting the object as an instance of '<em>Intput Event</em>'. | ||
240 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
241 | * @generated | ||
242 | */ | ||
243 | public T caseIntputEvent(IntputEvent object) { | ||
244 | return null; | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * Returns the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
249 | * <!-- begin-user-doc --> | ||
250 | * This implementation returns null; | ||
251 | * returning a non-null result will terminate the switch. | ||
252 | * <!-- end-user-doc --> | ||
253 | * @param object the target of the switch. | ||
254 | * @return the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
255 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
256 | * @generated | ||
257 | */ | ||
258 | public T caseEventDeclaration(EventDeclaration object) { | ||
259 | return null; | ||
260 | } | ||
261 | |||
262 | /** | ||
263 | * Returns the result of interpreting the object as an instance of '<em>And Gate Definition</em>'. | ||
264 | * <!-- begin-user-doc --> | ||
265 | * This implementation returns null; | ||
266 | * returning a non-null result will terminate the switch. | ||
267 | * <!-- end-user-doc --> | ||
268 | * @param object the target of the switch. | ||
269 | * @return the result of interpreting the object as an instance of '<em>And Gate Definition</em>'. | ||
270 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
271 | * @generated | ||
272 | */ | ||
273 | public T caseAndGateDefinition(AndGateDefinition object) { | ||
274 | return null; | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * Returns the result of interpreting the object as an instance of '<em>Or Gate Definition</em>'. | ||
279 | * <!-- begin-user-doc --> | ||
280 | * This implementation returns null; | ||
281 | * returning a non-null result will terminate the switch. | ||
282 | * <!-- end-user-doc --> | ||
283 | * @param object the target of the switch. | ||
284 | * @return the result of interpreting the object as an instance of '<em>Or Gate Definition</em>'. | ||
285 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
286 | * @generated | ||
287 | */ | ||
288 | public T caseOrGateDefinition(OrGateDefinition object) { | ||
289 | return null; | ||
290 | } | ||
291 | |||
292 | /** | ||
293 | * Returns the result of interpreting the object as an instance of '<em>KOf MGate Definition</em>'. | ||
294 | * <!-- begin-user-doc --> | ||
295 | * This implementation returns null; | ||
296 | * returning a non-null result will terminate the switch. | ||
297 | * <!-- end-user-doc --> | ||
298 | * @param object the target of the switch. | ||
299 | * @return the result of interpreting the object as an instance of '<em>KOf MGate Definition</em>'. | ||
300 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
301 | * @generated | ||
302 | */ | ||
303 | public T caseKOfMGateDefinition(KOfMGateDefinition object) { | ||
304 | return null; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * Returns the result of interpreting the object as an instance of '<em>Component Fault Tree</em>'. | ||
309 | * <!-- begin-user-doc --> | ||
310 | * This implementation returns null; | ||
311 | * returning a non-null result will terminate the switch. | ||
312 | * <!-- end-user-doc --> | ||
313 | * @param object the target of the switch. | ||
314 | * @return the result of interpreting the object as an instance of '<em>Component Fault Tree</em>'. | ||
315 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
316 | * @generated | ||
317 | */ | ||
318 | public T caseComponentFaultTree(ComponentFaultTree object) { | ||
319 | return null; | ||
320 | } | ||
321 | |||
322 | /** | ||
323 | * Returns the result of interpreting the object as an instance of '<em>Component</em>'. | ||
324 | * <!-- begin-user-doc --> | ||
325 | * This implementation returns null; | ||
326 | * returning a non-null result will terminate the switch. | ||
327 | * <!-- end-user-doc --> | ||
328 | * @param object the target of the switch. | ||
329 | * @return the result of interpreting the object as an instance of '<em>Component</em>'. | ||
330 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
331 | * @generated | ||
332 | */ | ||
333 | public T caseComponent(Component object) { | ||
334 | return null; | ||
335 | } | ||
336 | |||
337 | /** | ||
338 | * Returns the result of interpreting the object as an instance of '<em>Input</em>'. | ||
339 | * <!-- begin-user-doc --> | ||
340 | * This implementation returns null; | ||
341 | * returning a non-null result will terminate the switch. | ||
342 | * <!-- end-user-doc --> | ||
343 | * @param object the target of the switch. | ||
344 | * @return the result of interpreting the object as an instance of '<em>Input</em>'. | ||
345 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
346 | * @generated | ||
347 | */ | ||
348 | public T caseInput(Input object) { | ||
349 | return null; | ||
350 | } | ||
351 | |||
352 | /** | ||
353 | * Returns the result of interpreting the object as an instance of '<em>Output</em>'. | ||
354 | * <!-- begin-user-doc --> | ||
355 | * This implementation returns null; | ||
356 | * returning a non-null result will terminate the switch. | ||
357 | * <!-- end-user-doc --> | ||
358 | * @param object the target of the switch. | ||
359 | * @return the result of interpreting the object as an instance of '<em>Output</em>'. | ||
360 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
361 | * @generated | ||
362 | */ | ||
363 | public T caseOutput(Output object) { | ||
364 | return null; | ||
365 | } | ||
366 | |||
367 | /** | ||
368 | * Returns the result of interpreting the object as an instance of '<em>Connection</em>'. | ||
369 | * <!-- begin-user-doc --> | ||
370 | * This implementation returns null; | ||
371 | * returning a non-null result will terminate the switch. | ||
372 | * <!-- end-user-doc --> | ||
373 | * @param object the target of the switch. | ||
374 | * @return the result of interpreting the object as an instance of '<em>Connection</em>'. | ||
375 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
376 | * @generated | ||
377 | */ | ||
378 | public T caseConnection(Connection object) { | ||
379 | return null; | ||
380 | } | ||
381 | |||
382 | /** | ||
383 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
384 | * <!-- begin-user-doc --> | ||
385 | * This implementation returns null; | ||
386 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
387 | * <!-- end-user-doc --> | ||
388 | * @param object the target of the switch. | ||
389 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
390 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
391 | * @generated | ||
392 | */ | ||
393 | @Override | ||
394 | public T defaultCase(EObject object) { | ||
395 | return null; | ||
396 | } | ||
397 | |||
398 | } //CftSwitch | ||