diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util')
2 files changed, 752 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/CftAdapterFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftAdapterFactory.java new file mode 100644 index 00000000..c6b82734 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftAdapterFactory.java | |||
@@ -0,0 +1,354 @@ | |||
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.common.notify.Adapter; | ||
8 | import org.eclipse.emf.common.notify.Notifier; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EObject; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * The <b>Adapter Factory</b> for the model. | ||
17 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
18 | * <!-- end-user-doc --> | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage | ||
20 | * @generated | ||
21 | */ | ||
22 | public class CftAdapterFactory extends AdapterFactoryImpl { | ||
23 | /** | ||
24 | * The cached model package. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | protected static CftPackage modelPackage; | ||
30 | |||
31 | /** | ||
32 | * Creates an instance of the adapter factory. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public CftAdapterFactory() { | ||
38 | if (modelPackage == null) { | ||
39 | modelPackage = CftPackage.eINSTANCE; | ||
40 | } | ||
41 | } | ||
42 | |||
43 | /** | ||
44 | * Returns whether this factory is applicable for the type of the object. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return whether this factory is applicable for the type of the object. | ||
49 | * @generated | ||
50 | */ | ||
51 | @Override | ||
52 | public boolean isFactoryForType(Object object) { | ||
53 | if (object == modelPackage) { | ||
54 | return true; | ||
55 | } | ||
56 | if (object instanceof EObject) { | ||
57 | return ((EObject)object).eClass().getEPackage() == modelPackage; | ||
58 | } | ||
59 | return false; | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * The switch that delegates to the <code>createXXX</code> methods. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | protected CftSwitch<Adapter> modelSwitch = | ||
69 | new CftSwitch<Adapter>() { | ||
70 | @Override | ||
71 | public Adapter caseComponentDefinition(ComponentDefinition object) { | ||
72 | return createComponentDefinitionAdapter(); | ||
73 | } | ||
74 | @Override | ||
75 | public Adapter caseEventDefinition(EventDefinition object) { | ||
76 | return createEventDefinitionAdapter(); | ||
77 | } | ||
78 | @Override | ||
79 | public Adapter caseGateDefinition(GateDefinition object) { | ||
80 | return createGateDefinitionAdapter(); | ||
81 | } | ||
82 | @Override | ||
83 | public Adapter caseBasicEventDefinition(BasicEventDefinition object) { | ||
84 | return createBasicEventDefinitionAdapter(); | ||
85 | } | ||
86 | @Override | ||
87 | public Adapter caseIntputEvent(IntputEvent object) { | ||
88 | return createIntputEventAdapter(); | ||
89 | } | ||
90 | @Override | ||
91 | public Adapter caseEventDeclaration(EventDeclaration object) { | ||
92 | return createEventDeclarationAdapter(); | ||
93 | } | ||
94 | @Override | ||
95 | public Adapter caseAndGateDefinition(AndGateDefinition object) { | ||
96 | return createAndGateDefinitionAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseOrGateDefinition(OrGateDefinition object) { | ||
100 | return createOrGateDefinitionAdapter(); | ||
101 | } | ||
102 | @Override | ||
103 | public Adapter caseKOfMGateDefinition(KOfMGateDefinition object) { | ||
104 | return createKOfMGateDefinitionAdapter(); | ||
105 | } | ||
106 | @Override | ||
107 | public Adapter caseComponentFaultTree(ComponentFaultTree object) { | ||
108 | return createComponentFaultTreeAdapter(); | ||
109 | } | ||
110 | @Override | ||
111 | public Adapter caseComponent(Component object) { | ||
112 | return createComponentAdapter(); | ||
113 | } | ||
114 | @Override | ||
115 | public Adapter caseInput(Input object) { | ||
116 | return createInputAdapter(); | ||
117 | } | ||
118 | @Override | ||
119 | public Adapter caseOutput(Output object) { | ||
120 | return createOutputAdapter(); | ||
121 | } | ||
122 | @Override | ||
123 | public Adapter caseConnection(Connection object) { | ||
124 | return createConnectionAdapter(); | ||
125 | } | ||
126 | @Override | ||
127 | public Adapter defaultCase(EObject object) { | ||
128 | return createEObjectAdapter(); | ||
129 | } | ||
130 | }; | ||
131 | |||
132 | /** | ||
133 | * Creates an adapter for the <code>target</code>. | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @param target the object to adapt. | ||
137 | * @return the adapter for the <code>target</code>. | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public Adapter createAdapter(Notifier target) { | ||
142 | return modelSwitch.doSwitch((EObject)target); | ||
143 | } | ||
144 | |||
145 | |||
146 | /** | ||
147 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition <em>Component Definition</em>}'. | ||
148 | * <!-- begin-user-doc --> | ||
149 | * This default implementation returns null so that we can easily ignore cases; | ||
150 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
151 | * <!-- end-user-doc --> | ||
152 | * @return the new adapter. | ||
153 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition | ||
154 | * @generated | ||
155 | */ | ||
156 | public Adapter createComponentDefinitionAdapter() { | ||
157 | return null; | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition <em>Event Definition</em>}'. | ||
162 | * <!-- begin-user-doc --> | ||
163 | * This default implementation returns null so that we can easily ignore cases; | ||
164 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
165 | * <!-- end-user-doc --> | ||
166 | * @return the new adapter. | ||
167 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition | ||
168 | * @generated | ||
169 | */ | ||
170 | public Adapter createEventDefinitionAdapter() { | ||
171 | return null; | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition <em>Gate Definition</em>}'. | ||
176 | * <!-- begin-user-doc --> | ||
177 | * This default implementation returns null so that we can easily ignore cases; | ||
178 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
179 | * <!-- end-user-doc --> | ||
180 | * @return the new adapter. | ||
181 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition | ||
182 | * @generated | ||
183 | */ | ||
184 | public Adapter createGateDefinitionAdapter() { | ||
185 | return null; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
190 | * <!-- begin-user-doc --> | ||
191 | * This default implementation returns null so that we can easily ignore cases; | ||
192 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
193 | * <!-- end-user-doc --> | ||
194 | * @return the new adapter. | ||
195 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition | ||
196 | * @generated | ||
197 | */ | ||
198 | public Adapter createBasicEventDefinitionAdapter() { | ||
199 | return null; | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent <em>Intput Event</em>}'. | ||
204 | * <!-- begin-user-doc --> | ||
205 | * This default implementation returns null so that we can easily ignore cases; | ||
206 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
207 | * <!-- end-user-doc --> | ||
208 | * @return the new adapter. | ||
209 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent | ||
210 | * @generated | ||
211 | */ | ||
212 | public Adapter createIntputEventAdapter() { | ||
213 | return null; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration <em>Event Declaration</em>}'. | ||
218 | * <!-- begin-user-doc --> | ||
219 | * This default implementation returns null so that we can easily ignore cases; | ||
220 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
221 | * <!-- end-user-doc --> | ||
222 | * @return the new adapter. | ||
223 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration | ||
224 | * @generated | ||
225 | */ | ||
226 | public Adapter createEventDeclarationAdapter() { | ||
227 | return null; | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition <em>And Gate Definition</em>}'. | ||
232 | * <!-- begin-user-doc --> | ||
233 | * This default implementation returns null so that we can easily ignore cases; | ||
234 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
235 | * <!-- end-user-doc --> | ||
236 | * @return the new adapter. | ||
237 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition | ||
238 | * @generated | ||
239 | */ | ||
240 | public Adapter createAndGateDefinitionAdapter() { | ||
241 | return null; | ||
242 | } | ||
243 | |||
244 | /** | ||
245 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition <em>Or Gate Definition</em>}'. | ||
246 | * <!-- begin-user-doc --> | ||
247 | * This default implementation returns null so that we can easily ignore cases; | ||
248 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
249 | * <!-- end-user-doc --> | ||
250 | * @return the new adapter. | ||
251 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition | ||
252 | * @generated | ||
253 | */ | ||
254 | public Adapter createOrGateDefinitionAdapter() { | ||
255 | return null; | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition <em>KOf MGate Definition</em>}'. | ||
260 | * <!-- begin-user-doc --> | ||
261 | * This default implementation returns null so that we can easily ignore cases; | ||
262 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
263 | * <!-- end-user-doc --> | ||
264 | * @return the new adapter. | ||
265 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition | ||
266 | * @generated | ||
267 | */ | ||
268 | public Adapter createKOfMGateDefinitionAdapter() { | ||
269 | return null; | ||
270 | } | ||
271 | |||
272 | /** | ||
273 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree <em>Component Fault Tree</em>}'. | ||
274 | * <!-- begin-user-doc --> | ||
275 | * This default implementation returns null so that we can easily ignore cases; | ||
276 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
277 | * <!-- end-user-doc --> | ||
278 | * @return the new adapter. | ||
279 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree | ||
280 | * @generated | ||
281 | */ | ||
282 | public Adapter createComponentFaultTreeAdapter() { | ||
283 | return null; | ||
284 | } | ||
285 | |||
286 | /** | ||
287 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component <em>Component</em>}'. | ||
288 | * <!-- begin-user-doc --> | ||
289 | * This default implementation returns null so that we can easily ignore cases; | ||
290 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
291 | * <!-- end-user-doc --> | ||
292 | * @return the new adapter. | ||
293 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component | ||
294 | * @generated | ||
295 | */ | ||
296 | public Adapter createComponentAdapter() { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input <em>Input</em>}'. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * This default implementation returns null so that we can easily ignore cases; | ||
304 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
305 | * <!-- end-user-doc --> | ||
306 | * @return the new adapter. | ||
307 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input | ||
308 | * @generated | ||
309 | */ | ||
310 | public Adapter createInputAdapter() { | ||
311 | return null; | ||
312 | } | ||
313 | |||
314 | /** | ||
315 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output <em>Output</em>}'. | ||
316 | * <!-- begin-user-doc --> | ||
317 | * This default implementation returns null so that we can easily ignore cases; | ||
318 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
319 | * <!-- end-user-doc --> | ||
320 | * @return the new adapter. | ||
321 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output | ||
322 | * @generated | ||
323 | */ | ||
324 | public Adapter createOutputAdapter() { | ||
325 | return null; | ||
326 | } | ||
327 | |||
328 | /** | ||
329 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection <em>Connection</em>}'. | ||
330 | * <!-- begin-user-doc --> | ||
331 | * This default implementation returns null so that we can easily ignore cases; | ||
332 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
333 | * <!-- end-user-doc --> | ||
334 | * @return the new adapter. | ||
335 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection | ||
336 | * @generated | ||
337 | */ | ||
338 | public Adapter createConnectionAdapter() { | ||
339 | return null; | ||
340 | } | ||
341 | |||
342 | /** | ||
343 | * Creates a new adapter for the default case. | ||
344 | * <!-- begin-user-doc --> | ||
345 | * This default implementation returns null. | ||
346 | * <!-- end-user-doc --> | ||
347 | * @return the new adapter. | ||
348 | * @generated | ||
349 | */ | ||
350 | public Adapter createEObjectAdapter() { | ||
351 | return null; | ||
352 | } | ||
353 | |||
354 | } //CftAdapterFactory | ||
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 | ||