diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/util')
2 files changed, 0 insertions, 756 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/util/FtAdapterFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/util/FtAdapterFactory.java deleted file mode 100644 index ba7545f4..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/util/FtAdapterFactory.java +++ /dev/null | |||
@@ -1,354 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.util; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.*; | ||
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.ft.FtPackage | ||
20 | * @generated | ||
21 | */ | ||
22 | public class FtAdapterFactory extends AdapterFactoryImpl { | ||
23 | /** | ||
24 | * The cached model package. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | protected static FtPackage modelPackage; | ||
30 | |||
31 | /** | ||
32 | * Creates an instance of the adapter factory. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public FtAdapterFactory() { | ||
38 | if (modelPackage == null) { | ||
39 | modelPackage = FtPackage.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 FtSwitch<Adapter> modelSwitch = | ||
69 | new FtSwitch<Adapter>() { | ||
70 | @Override | ||
71 | public Adapter caseFaultTree(FaultTree object) { | ||
72 | return createFaultTreeAdapter(); | ||
73 | } | ||
74 | @Override | ||
75 | public Adapter caseRandomEvent(RandomEvent object) { | ||
76 | return createRandomEventAdapter(); | ||
77 | } | ||
78 | @Override | ||
79 | public Adapter caseBasicEvent(BasicEvent object) { | ||
80 | return createBasicEventAdapter(); | ||
81 | } | ||
82 | @Override | ||
83 | public Adapter caseGate(Gate object) { | ||
84 | return createGateAdapter(); | ||
85 | } | ||
86 | @Override | ||
87 | public Adapter caseDistribution(Distribution object) { | ||
88 | return createDistributionAdapter(); | ||
89 | } | ||
90 | @Override | ||
91 | public Adapter caseConstantDistribution(ConstantDistribution object) { | ||
92 | return createConstantDistributionAdapter(); | ||
93 | } | ||
94 | @Override | ||
95 | public Adapter caseExponentialDistribution(ExponentialDistribution object) { | ||
96 | return createExponentialDistributionAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseAndGate(AndGate object) { | ||
100 | return createAndGateAdapter(); | ||
101 | } | ||
102 | @Override | ||
103 | public Adapter caseOrGate(OrGate object) { | ||
104 | return createOrGateAdapter(); | ||
105 | } | ||
106 | @Override | ||
107 | public Adapter caseKOfMGate(KOfMGate object) { | ||
108 | return createKOfMGateAdapter(); | ||
109 | } | ||
110 | @Override | ||
111 | public Adapter caseReliabilityModel(ReliabilityModel object) { | ||
112 | return createReliabilityModelAdapter(); | ||
113 | } | ||
114 | @Override | ||
115 | public Adapter caseConstantModel(ConstantModel object) { | ||
116 | return createConstantModelAdapter(); | ||
117 | } | ||
118 | @Override | ||
119 | public Adapter caseEvent(Event object) { | ||
120 | return createEventAdapter(); | ||
121 | } | ||
122 | @Override | ||
123 | public Adapter caseConstantEvent(ConstantEvent object) { | ||
124 | return createConstantEventAdapter(); | ||
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.ft.FaultTree <em>Fault Tree</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.ft.FaultTree | ||
154 | * @generated | ||
155 | */ | ||
156 | public Adapter createFaultTreeAdapter() { | ||
157 | return null; | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent <em>Random Event</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.ft.RandomEvent | ||
168 | * @generated | ||
169 | */ | ||
170 | public Adapter createRandomEventAdapter() { | ||
171 | return null; | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent <em>Basic Event</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.ft.BasicEvent | ||
182 | * @generated | ||
183 | */ | ||
184 | public Adapter createBasicEventAdapter() { | ||
185 | return null; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate <em>Gate</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.ft.Gate | ||
196 | * @generated | ||
197 | */ | ||
198 | public Adapter createGateAdapter() { | ||
199 | return null; | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution <em>Distribution</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.ft.Distribution | ||
210 | * @generated | ||
211 | */ | ||
212 | public Adapter createDistributionAdapter() { | ||
213 | return null; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution <em>Constant Distribution</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.ft.ConstantDistribution | ||
224 | * @generated | ||
225 | */ | ||
226 | public Adapter createConstantDistributionAdapter() { | ||
227 | return null; | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution <em>Exponential Distribution</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.ft.ExponentialDistribution | ||
238 | * @generated | ||
239 | */ | ||
240 | public Adapter createExponentialDistributionAdapter() { | ||
241 | return null; | ||
242 | } | ||
243 | |||
244 | /** | ||
245 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.AndGate <em>And Gate</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.ft.AndGate | ||
252 | * @generated | ||
253 | */ | ||
254 | public Adapter createAndGateAdapter() { | ||
255 | return null; | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.OrGate <em>Or Gate</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.ft.OrGate | ||
266 | * @generated | ||
267 | */ | ||
268 | public Adapter createOrGateAdapter() { | ||
269 | return null; | ||
270 | } | ||
271 | |||
272 | /** | ||
273 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate <em>KOf MGate</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.ft.KOfMGate | ||
280 | * @generated | ||
281 | */ | ||
282 | public Adapter createKOfMGateAdapter() { | ||
283 | return null; | ||
284 | } | ||
285 | |||
286 | /** | ||
287 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ReliabilityModel <em>Reliability Model</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.ft.ReliabilityModel | ||
294 | * @generated | ||
295 | */ | ||
296 | public Adapter createReliabilityModelAdapter() { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantModel <em>Constant Model</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.ft.ConstantModel | ||
308 | * @generated | ||
309 | */ | ||
310 | public Adapter createConstantModelAdapter() { | ||
311 | return null; | ||
312 | } | ||
313 | |||
314 | /** | ||
315 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Event <em>Event</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.ft.Event | ||
322 | * @generated | ||
323 | */ | ||
324 | public Adapter createEventAdapter() { | ||
325 | return null; | ||
326 | } | ||
327 | |||
328 | /** | ||
329 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantEvent <em>Constant Event</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.ft.ConstantEvent | ||
336 | * @generated | ||
337 | */ | ||
338 | public Adapter createConstantEventAdapter() { | ||
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 | } //FtAdapterFactory | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/util/FtSwitch.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/util/FtSwitch.java deleted file mode 100644 index 1da4f8e8..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/util/FtSwitch.java +++ /dev/null | |||
@@ -1,402 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.util; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.*; | ||
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.ft.FtPackage | ||
23 | * @generated | ||
24 | */ | ||
25 | public class FtSwitch<T> extends Switch<T> { | ||
26 | /** | ||
27 | * The cached model package | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | protected static FtPackage modelPackage; | ||
33 | |||
34 | /** | ||
35 | * Creates an instance of the switch. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public FtSwitch() { | ||
41 | if (modelPackage == null) { | ||
42 | modelPackage = FtPackage.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 FtPackage.FAULT_TREE: { | ||
70 | FaultTree faultTree = (FaultTree)theEObject; | ||
71 | T result = caseFaultTree(faultTree); | ||
72 | if (result == null) result = caseReliabilityModel(faultTree); | ||
73 | if (result == null) result = defaultCase(theEObject); | ||
74 | return result; | ||
75 | } | ||
76 | case FtPackage.RANDOM_EVENT: { | ||
77 | RandomEvent randomEvent = (RandomEvent)theEObject; | ||
78 | T result = caseRandomEvent(randomEvent); | ||
79 | if (result == null) result = caseEvent(randomEvent); | ||
80 | if (result == null) result = defaultCase(theEObject); | ||
81 | return result; | ||
82 | } | ||
83 | case FtPackage.BASIC_EVENT: { | ||
84 | BasicEvent basicEvent = (BasicEvent)theEObject; | ||
85 | T result = caseBasicEvent(basicEvent); | ||
86 | if (result == null) result = caseRandomEvent(basicEvent); | ||
87 | if (result == null) result = caseEvent(basicEvent); | ||
88 | if (result == null) result = defaultCase(theEObject); | ||
89 | return result; | ||
90 | } | ||
91 | case FtPackage.GATE: { | ||
92 | Gate gate = (Gate)theEObject; | ||
93 | T result = caseGate(gate); | ||
94 | if (result == null) result = caseRandomEvent(gate); | ||
95 | if (result == null) result = caseEvent(gate); | ||
96 | if (result == null) result = defaultCase(theEObject); | ||
97 | return result; | ||
98 | } | ||
99 | case FtPackage.DISTRIBUTION: { | ||
100 | Distribution distribution = (Distribution)theEObject; | ||
101 | T result = caseDistribution(distribution); | ||
102 | if (result == null) result = defaultCase(theEObject); | ||
103 | return result; | ||
104 | } | ||
105 | case FtPackage.CONSTANT_DISTRIBUTION: { | ||
106 | ConstantDistribution constantDistribution = (ConstantDistribution)theEObject; | ||
107 | T result = caseConstantDistribution(constantDistribution); | ||
108 | if (result == null) result = caseDistribution(constantDistribution); | ||
109 | if (result == null) result = defaultCase(theEObject); | ||
110 | return result; | ||
111 | } | ||
112 | case FtPackage.EXPONENTIAL_DISTRIBUTION: { | ||
113 | ExponentialDistribution exponentialDistribution = (ExponentialDistribution)theEObject; | ||
114 | T result = caseExponentialDistribution(exponentialDistribution); | ||
115 | if (result == null) result = caseDistribution(exponentialDistribution); | ||
116 | if (result == null) result = defaultCase(theEObject); | ||
117 | return result; | ||
118 | } | ||
119 | case FtPackage.AND_GATE: { | ||
120 | AndGate andGate = (AndGate)theEObject; | ||
121 | T result = caseAndGate(andGate); | ||
122 | if (result == null) result = caseGate(andGate); | ||
123 | if (result == null) result = caseRandomEvent(andGate); | ||
124 | if (result == null) result = caseEvent(andGate); | ||
125 | if (result == null) result = defaultCase(theEObject); | ||
126 | return result; | ||
127 | } | ||
128 | case FtPackage.OR_GATE: { | ||
129 | OrGate orGate = (OrGate)theEObject; | ||
130 | T result = caseOrGate(orGate); | ||
131 | if (result == null) result = caseGate(orGate); | ||
132 | if (result == null) result = caseRandomEvent(orGate); | ||
133 | if (result == null) result = caseEvent(orGate); | ||
134 | if (result == null) result = defaultCase(theEObject); | ||
135 | return result; | ||
136 | } | ||
137 | case FtPackage.KOF_MGATE: { | ||
138 | KOfMGate kOfMGate = (KOfMGate)theEObject; | ||
139 | T result = caseKOfMGate(kOfMGate); | ||
140 | if (result == null) result = caseGate(kOfMGate); | ||
141 | if (result == null) result = caseRandomEvent(kOfMGate); | ||
142 | if (result == null) result = caseEvent(kOfMGate); | ||
143 | if (result == null) result = defaultCase(theEObject); | ||
144 | return result; | ||
145 | } | ||
146 | case FtPackage.RELIABILITY_MODEL: { | ||
147 | ReliabilityModel reliabilityModel = (ReliabilityModel)theEObject; | ||
148 | T result = caseReliabilityModel(reliabilityModel); | ||
149 | if (result == null) result = defaultCase(theEObject); | ||
150 | return result; | ||
151 | } | ||
152 | case FtPackage.CONSTANT_MODEL: { | ||
153 | ConstantModel constantModel = (ConstantModel)theEObject; | ||
154 | T result = caseConstantModel(constantModel); | ||
155 | if (result == null) result = caseReliabilityModel(constantModel); | ||
156 | if (result == null) result = defaultCase(theEObject); | ||
157 | return result; | ||
158 | } | ||
159 | case FtPackage.EVENT: { | ||
160 | Event event = (Event)theEObject; | ||
161 | T result = caseEvent(event); | ||
162 | if (result == null) result = defaultCase(theEObject); | ||
163 | return result; | ||
164 | } | ||
165 | case FtPackage.CONSTANT_EVENT: { | ||
166 | ConstantEvent constantEvent = (ConstantEvent)theEObject; | ||
167 | T result = caseConstantEvent(constantEvent); | ||
168 | if (result == null) result = caseEvent(constantEvent); | ||
169 | if (result == null) result = defaultCase(theEObject); | ||
170 | return result; | ||
171 | } | ||
172 | default: return defaultCase(theEObject); | ||
173 | } | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * Returns the result of interpreting the object as an instance of '<em>Fault Tree</em>'. | ||
178 | * <!-- begin-user-doc --> | ||
179 | * This implementation returns null; | ||
180 | * returning a non-null result will terminate the switch. | ||
181 | * <!-- end-user-doc --> | ||
182 | * @param object the target of the switch. | ||
183 | * @return the result of interpreting the object as an instance of '<em>Fault Tree</em>'. | ||
184 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
185 | * @generated | ||
186 | */ | ||
187 | public T caseFaultTree(FaultTree object) { | ||
188 | return null; | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * Returns the result of interpreting the object as an instance of '<em>Random Event</em>'. | ||
193 | * <!-- begin-user-doc --> | ||
194 | * This implementation returns null; | ||
195 | * returning a non-null result will terminate the switch. | ||
196 | * <!-- end-user-doc --> | ||
197 | * @param object the target of the switch. | ||
198 | * @return the result of interpreting the object as an instance of '<em>Random Event</em>'. | ||
199 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
200 | * @generated | ||
201 | */ | ||
202 | public T caseRandomEvent(RandomEvent object) { | ||
203 | return null; | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * Returns the result of interpreting the object as an instance of '<em>Basic Event</em>'. | ||
208 | * <!-- begin-user-doc --> | ||
209 | * This implementation returns null; | ||
210 | * returning a non-null result will terminate the switch. | ||
211 | * <!-- end-user-doc --> | ||
212 | * @param object the target of the switch. | ||
213 | * @return the result of interpreting the object as an instance of '<em>Basic Event</em>'. | ||
214 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
215 | * @generated | ||
216 | */ | ||
217 | public T caseBasicEvent(BasicEvent object) { | ||
218 | return null; | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * Returns the result of interpreting the object as an instance of '<em>Gate</em>'. | ||
223 | * <!-- begin-user-doc --> | ||
224 | * This implementation returns null; | ||
225 | * returning a non-null result will terminate the switch. | ||
226 | * <!-- end-user-doc --> | ||
227 | * @param object the target of the switch. | ||
228 | * @return the result of interpreting the object as an instance of '<em>Gate</em>'. | ||
229 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
230 | * @generated | ||
231 | */ | ||
232 | public T caseGate(Gate object) { | ||
233 | return null; | ||
234 | } | ||
235 | |||
236 | /** | ||
237 | * Returns the result of interpreting the object as an instance of '<em>Distribution</em>'. | ||
238 | * <!-- begin-user-doc --> | ||
239 | * This implementation returns null; | ||
240 | * returning a non-null result will terminate the switch. | ||
241 | * <!-- end-user-doc --> | ||
242 | * @param object the target of the switch. | ||
243 | * @return the result of interpreting the object as an instance of '<em>Distribution</em>'. | ||
244 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
245 | * @generated | ||
246 | */ | ||
247 | public T caseDistribution(Distribution object) { | ||
248 | return null; | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * Returns the result of interpreting the object as an instance of '<em>Constant Distribution</em>'. | ||
253 | * <!-- begin-user-doc --> | ||
254 | * This implementation returns null; | ||
255 | * returning a non-null result will terminate the switch. | ||
256 | * <!-- end-user-doc --> | ||
257 | * @param object the target of the switch. | ||
258 | * @return the result of interpreting the object as an instance of '<em>Constant Distribution</em>'. | ||
259 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
260 | * @generated | ||
261 | */ | ||
262 | public T caseConstantDistribution(ConstantDistribution object) { | ||
263 | return null; | ||
264 | } | ||
265 | |||
266 | /** | ||
267 | * Returns the result of interpreting the object as an instance of '<em>Exponential Distribution</em>'. | ||
268 | * <!-- begin-user-doc --> | ||
269 | * This implementation returns null; | ||
270 | * returning a non-null result will terminate the switch. | ||
271 | * <!-- end-user-doc --> | ||
272 | * @param object the target of the switch. | ||
273 | * @return the result of interpreting the object as an instance of '<em>Exponential Distribution</em>'. | ||
274 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
275 | * @generated | ||
276 | */ | ||
277 | public T caseExponentialDistribution(ExponentialDistribution object) { | ||
278 | return null; | ||
279 | } | ||
280 | |||
281 | /** | ||
282 | * Returns the result of interpreting the object as an instance of '<em>And Gate</em>'. | ||
283 | * <!-- begin-user-doc --> | ||
284 | * This implementation returns null; | ||
285 | * returning a non-null result will terminate the switch. | ||
286 | * <!-- end-user-doc --> | ||
287 | * @param object the target of the switch. | ||
288 | * @return the result of interpreting the object as an instance of '<em>And Gate</em>'. | ||
289 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
290 | * @generated | ||
291 | */ | ||
292 | public T caseAndGate(AndGate object) { | ||
293 | return null; | ||
294 | } | ||
295 | |||
296 | /** | ||
297 | * Returns the result of interpreting the object as an instance of '<em>Or Gate</em>'. | ||
298 | * <!-- begin-user-doc --> | ||
299 | * This implementation returns null; | ||
300 | * returning a non-null result will terminate the switch. | ||
301 | * <!-- end-user-doc --> | ||
302 | * @param object the target of the switch. | ||
303 | * @return the result of interpreting the object as an instance of '<em>Or Gate</em>'. | ||
304 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
305 | * @generated | ||
306 | */ | ||
307 | public T caseOrGate(OrGate object) { | ||
308 | return null; | ||
309 | } | ||
310 | |||
311 | /** | ||
312 | * Returns the result of interpreting the object as an instance of '<em>KOf MGate</em>'. | ||
313 | * <!-- begin-user-doc --> | ||
314 | * This implementation returns null; | ||
315 | * returning a non-null result will terminate the switch. | ||
316 | * <!-- end-user-doc --> | ||
317 | * @param object the target of the switch. | ||
318 | * @return the result of interpreting the object as an instance of '<em>KOf MGate</em>'. | ||
319 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
320 | * @generated | ||
321 | */ | ||
322 | public T caseKOfMGate(KOfMGate object) { | ||
323 | return null; | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * Returns the result of interpreting the object as an instance of '<em>Reliability Model</em>'. | ||
328 | * <!-- begin-user-doc --> | ||
329 | * This implementation returns null; | ||
330 | * returning a non-null result will terminate the switch. | ||
331 | * <!-- end-user-doc --> | ||
332 | * @param object the target of the switch. | ||
333 | * @return the result of interpreting the object as an instance of '<em>Reliability Model</em>'. | ||
334 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
335 | * @generated | ||
336 | */ | ||
337 | public T caseReliabilityModel(ReliabilityModel object) { | ||
338 | return null; | ||
339 | } | ||
340 | |||
341 | /** | ||
342 | * Returns the result of interpreting the object as an instance of '<em>Constant Model</em>'. | ||
343 | * <!-- begin-user-doc --> | ||
344 | * This implementation returns null; | ||
345 | * returning a non-null result will terminate the switch. | ||
346 | * <!-- end-user-doc --> | ||
347 | * @param object the target of the switch. | ||
348 | * @return the result of interpreting the object as an instance of '<em>Constant Model</em>'. | ||
349 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
350 | * @generated | ||
351 | */ | ||
352 | public T caseConstantModel(ConstantModel object) { | ||
353 | return null; | ||
354 | } | ||
355 | |||
356 | /** | ||
357 | * Returns the result of interpreting the object as an instance of '<em>Event</em>'. | ||
358 | * <!-- begin-user-doc --> | ||
359 | * This implementation returns null; | ||
360 | * returning a non-null result will terminate the switch. | ||
361 | * <!-- end-user-doc --> | ||
362 | * @param object the target of the switch. | ||
363 | * @return the result of interpreting the object as an instance of '<em>Event</em>'. | ||
364 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
365 | * @generated | ||
366 | */ | ||
367 | public T caseEvent(Event object) { | ||
368 | return null; | ||
369 | } | ||
370 | |||
371 | /** | ||
372 | * Returns the result of interpreting the object as an instance of '<em>Constant Event</em>'. | ||
373 | * <!-- begin-user-doc --> | ||
374 | * This implementation returns null; | ||
375 | * returning a non-null result will terminate the switch. | ||
376 | * <!-- end-user-doc --> | ||
377 | * @param object the target of the switch. | ||
378 | * @return the result of interpreting the object as an instance of '<em>Constant Event</em>'. | ||
379 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
380 | * @generated | ||
381 | */ | ||
382 | public T caseConstantEvent(ConstantEvent object) { | ||
383 | return null; | ||
384 | } | ||
385 | |||
386 | /** | ||
387 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
388 | * <!-- begin-user-doc --> | ||
389 | * This implementation returns null; | ||
390 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
391 | * <!-- end-user-doc --> | ||
392 | * @param object the target of the switch. | ||
393 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
394 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
395 | * @generated | ||
396 | */ | ||
397 | @Override | ||
398 | public T defaultCase(EObject object) { | ||
399 | return null; | ||
400 | } | ||
401 | |||
402 | } //FtSwitch | ||