diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu')
70 files changed, 0 insertions, 12824 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/AndGateDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/AndGateDefinition.java deleted file mode 100644 index cdae0f09..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/AndGateDefinition.java +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>And Gate Definition</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * | ||
12 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getAndGateDefinition() | ||
13 | * @model | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface AndGateDefinition extends GateDefinition { | ||
17 | } // AndGateDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/BasicEventDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/BasicEventDefinition.java deleted file mode 100644 index c963dbfe..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/BasicEventDefinition.java +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Basic Event Definition</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition#getDistribution <em>Distribution</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getBasicEventDefinition() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface BasicEventDefinition extends EventDefinition { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>Distribution</b></em>' containment reference. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <p> | ||
28 | * If the meaning of the '<em>Distribution</em>' containment reference isn't clear, | ||
29 | * there really should be more of a description here... | ||
30 | * </p> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @return the value of the '<em>Distribution</em>' containment reference. | ||
33 | * @see #setDistribution(Distribution) | ||
34 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getBasicEventDefinition_Distribution() | ||
35 | * @model containment="true" required="true" | ||
36 | * @generated | ||
37 | */ | ||
38 | Distribution getDistribution(); | ||
39 | |||
40 | /** | ||
41 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition#getDistribution <em>Distribution</em>}' containment reference. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @param value the new value of the '<em>Distribution</em>' containment reference. | ||
45 | * @see #getDistribution() | ||
46 | * @generated | ||
47 | */ | ||
48 | void setDistribution(Distribution value); | ||
49 | |||
50 | } // BasicEventDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftFactory.java deleted file mode 100644 index 8b5d54a0..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftFactory.java +++ /dev/null | |||
@@ -1,132 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EFactory; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * The <b>Factory</b> for the model. | ||
10 | * It provides a create method for each non-abstract class of the model. | ||
11 | * <!-- end-user-doc --> | ||
12 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage | ||
13 | * @generated | ||
14 | */ | ||
15 | public interface CftFactory extends EFactory { | ||
16 | /** | ||
17 | * The singleton instance of the factory. | ||
18 | * <!-- begin-user-doc --> | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | CftFactory eINSTANCE = hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftFactoryImpl.init(); | ||
23 | |||
24 | /** | ||
25 | * Returns a new object of class '<em>Component Definition</em>'. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @return a new object of class '<em>Component Definition</em>'. | ||
29 | * @generated | ||
30 | */ | ||
31 | ComponentDefinition createComponentDefinition(); | ||
32 | |||
33 | /** | ||
34 | * Returns a new object of class '<em>Basic Event Definition</em>'. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @return a new object of class '<em>Basic Event Definition</em>'. | ||
38 | * @generated | ||
39 | */ | ||
40 | BasicEventDefinition createBasicEventDefinition(); | ||
41 | |||
42 | /** | ||
43 | * Returns a new object of class '<em>Input Event</em>'. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @return a new object of class '<em>Input Event</em>'. | ||
47 | * @generated | ||
48 | */ | ||
49 | InputEvent createInputEvent(); | ||
50 | |||
51 | /** | ||
52 | * Returns a new object of class '<em>And Gate Definition</em>'. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @return a new object of class '<em>And Gate Definition</em>'. | ||
56 | * @generated | ||
57 | */ | ||
58 | AndGateDefinition createAndGateDefinition(); | ||
59 | |||
60 | /** | ||
61 | * Returns a new object of class '<em>Or Gate Definition</em>'. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @return a new object of class '<em>Or Gate Definition</em>'. | ||
65 | * @generated | ||
66 | */ | ||
67 | OrGateDefinition createOrGateDefinition(); | ||
68 | |||
69 | /** | ||
70 | * Returns a new object of class '<em>KOf MGate Definition</em>'. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @return a new object of class '<em>KOf MGate Definition</em>'. | ||
74 | * @generated | ||
75 | */ | ||
76 | KOfMGateDefinition createKOfMGateDefinition(); | ||
77 | |||
78 | /** | ||
79 | * Returns a new object of class '<em>Component Fault Tree</em>'. | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @return a new object of class '<em>Component Fault Tree</em>'. | ||
83 | * @generated | ||
84 | */ | ||
85 | ComponentFaultTree createComponentFaultTree(); | ||
86 | |||
87 | /** | ||
88 | * Returns a new object of class '<em>Component</em>'. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @return a new object of class '<em>Component</em>'. | ||
92 | * @generated | ||
93 | */ | ||
94 | Component createComponent(); | ||
95 | |||
96 | /** | ||
97 | * Returns a new object of class '<em>Input</em>'. | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @return a new object of class '<em>Input</em>'. | ||
101 | * @generated | ||
102 | */ | ||
103 | Input createInput(); | ||
104 | |||
105 | /** | ||
106 | * Returns a new object of class '<em>Output</em>'. | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @return a new object of class '<em>Output</em>'. | ||
110 | * @generated | ||
111 | */ | ||
112 | Output createOutput(); | ||
113 | |||
114 | /** | ||
115 | * Returns a new object of class '<em>Connection</em>'. | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @return a new object of class '<em>Connection</em>'. | ||
119 | * @generated | ||
120 | */ | ||
121 | Connection createConnection(); | ||
122 | |||
123 | /** | ||
124 | * Returns the package supported by this factory. | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @return the package supported by this factory. | ||
128 | * @generated | ||
129 | */ | ||
130 | CftPackage getCftPackage(); | ||
131 | |||
132 | } //CftFactory | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftPackage.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftPackage.java deleted file mode 100644 index 07200ab2..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftPackage.java +++ /dev/null | |||
@@ -1,1673 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EEnum; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * The <b>Package</b> for the model. | ||
14 | * It contains accessors for the meta objects to represent | ||
15 | * <ul> | ||
16 | * <li>each class,</li> | ||
17 | * <li>each feature of each class,</li> | ||
18 | * <li>each operation of each class,</li> | ||
19 | * <li>each enum,</li> | ||
20 | * <li>and each data type</li> | ||
21 | * </ul> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftFactory | ||
24 | * @model kind="package" | ||
25 | * @generated | ||
26 | */ | ||
27 | public interface CftPackage extends EPackage { | ||
28 | /** | ||
29 | * The package name. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | String eNAME = "cft"; | ||
35 | |||
36 | /** | ||
37 | * The package namespace URI. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @generated | ||
41 | */ | ||
42 | String eNS_URI = "http://www.bme.hu/mit/inf/dslreasoner/faulttree/model/cft"; | ||
43 | |||
44 | /** | ||
45 | * The package namespace name. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | String eNS_PREFIX = "cft"; | ||
51 | |||
52 | /** | ||
53 | * The singleton instance of the package. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | CftPackage eINSTANCE = hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl.init(); | ||
59 | |||
60 | /** | ||
61 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl <em>Component Definition</em>}' class. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl | ||
65 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponentDefinition() | ||
66 | * @generated | ||
67 | */ | ||
68 | int COMPONENT_DEFINITION = 0; | ||
69 | |||
70 | /** | ||
71 | * The feature id for the '<em><b>Input Events</b></em>' containment reference list. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | int COMPONENT_DEFINITION__INPUT_EVENTS = 0; | ||
78 | |||
79 | /** | ||
80 | * The feature id for the '<em><b>Event Definitions</b></em>' containment reference list. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | * @ordered | ||
85 | */ | ||
86 | int COMPONENT_DEFINITION__EVENT_DEFINITIONS = 1; | ||
87 | |||
88 | /** | ||
89 | * The feature id for the '<em><b>Output Events</b></em>' reference list. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | int COMPONENT_DEFINITION__OUTPUT_EVENTS = 2; | ||
96 | |||
97 | /** | ||
98 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | * @ordered | ||
103 | */ | ||
104 | int COMPONENT_DEFINITION__NAME = 3; | ||
105 | |||
106 | /** | ||
107 | * The number of structural features of the '<em>Component Definition</em>' class. | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | * @ordered | ||
112 | */ | ||
113 | int COMPONENT_DEFINITION_FEATURE_COUNT = 4; | ||
114 | |||
115 | /** | ||
116 | * The number of operations of the '<em>Component Definition</em>' class. | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | * @ordered | ||
121 | */ | ||
122 | int COMPONENT_DEFINITION_OPERATION_COUNT = 0; | ||
123 | |||
124 | /** | ||
125 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDeclarationImpl <em>Event Declaration</em>}' class. | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDeclarationImpl | ||
129 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getEventDeclaration() | ||
130 | * @generated | ||
131 | */ | ||
132 | int EVENT_DECLARATION = 5; | ||
133 | |||
134 | /** | ||
135 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | * @ordered | ||
140 | */ | ||
141 | int EVENT_DECLARATION__NAME = 0; | ||
142 | |||
143 | /** | ||
144 | * The number of structural features of the '<em>Event Declaration</em>' class. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | * @ordered | ||
149 | */ | ||
150 | int EVENT_DECLARATION_FEATURE_COUNT = 1; | ||
151 | |||
152 | /** | ||
153 | * The number of operations of the '<em>Event Declaration</em>' class. | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | * @ordered | ||
158 | */ | ||
159 | int EVENT_DECLARATION_OPERATION_COUNT = 0; | ||
160 | |||
161 | /** | ||
162 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDefinitionImpl <em>Event Definition</em>}' class. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDefinitionImpl | ||
166 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getEventDefinition() | ||
167 | * @generated | ||
168 | */ | ||
169 | int EVENT_DEFINITION = 1; | ||
170 | |||
171 | /** | ||
172 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | * @ordered | ||
177 | */ | ||
178 | int EVENT_DEFINITION__NAME = EVENT_DECLARATION__NAME; | ||
179 | |||
180 | /** | ||
181 | * The number of structural features of the '<em>Event Definition</em>' class. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | * @ordered | ||
186 | */ | ||
187 | int EVENT_DEFINITION_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 0; | ||
188 | |||
189 | /** | ||
190 | * The number of operations of the '<em>Event Definition</em>' class. | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | * @ordered | ||
195 | */ | ||
196 | int EVENT_DEFINITION_OPERATION_COUNT = EVENT_DECLARATION_OPERATION_COUNT + 0; | ||
197 | |||
198 | /** | ||
199 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.GateDefinitionImpl <em>Gate Definition</em>}' class. | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.GateDefinitionImpl | ||
203 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getGateDefinition() | ||
204 | * @generated | ||
205 | */ | ||
206 | int GATE_DEFINITION = 2; | ||
207 | |||
208 | /** | ||
209 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | * @ordered | ||
214 | */ | ||
215 | int GATE_DEFINITION__NAME = EVENT_DEFINITION__NAME; | ||
216 | |||
217 | /** | ||
218 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | * @ordered | ||
223 | */ | ||
224 | int GATE_DEFINITION__INPUT_EVENTS = EVENT_DEFINITION_FEATURE_COUNT + 0; | ||
225 | |||
226 | /** | ||
227 | * The number of structural features of the '<em>Gate Definition</em>' class. | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | * @ordered | ||
232 | */ | ||
233 | int GATE_DEFINITION_FEATURE_COUNT = EVENT_DEFINITION_FEATURE_COUNT + 1; | ||
234 | |||
235 | /** | ||
236 | * The number of operations of the '<em>Gate Definition</em>' class. | ||
237 | * <!-- begin-user-doc --> | ||
238 | * <!-- end-user-doc --> | ||
239 | * @generated | ||
240 | * @ordered | ||
241 | */ | ||
242 | int GATE_DEFINITION_OPERATION_COUNT = EVENT_DEFINITION_OPERATION_COUNT + 0; | ||
243 | |||
244 | /** | ||
245 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.BasicEventDefinitionImpl <em>Basic Event Definition</em>}' class. | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.BasicEventDefinitionImpl | ||
249 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getBasicEventDefinition() | ||
250 | * @generated | ||
251 | */ | ||
252 | int BASIC_EVENT_DEFINITION = 3; | ||
253 | |||
254 | /** | ||
255 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | * @ordered | ||
260 | */ | ||
261 | int BASIC_EVENT_DEFINITION__NAME = EVENT_DEFINITION__NAME; | ||
262 | |||
263 | /** | ||
264 | * The feature id for the '<em><b>Distribution</b></em>' containment reference. | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @generated | ||
268 | * @ordered | ||
269 | */ | ||
270 | int BASIC_EVENT_DEFINITION__DISTRIBUTION = EVENT_DEFINITION_FEATURE_COUNT + 0; | ||
271 | |||
272 | /** | ||
273 | * The number of structural features of the '<em>Basic Event Definition</em>' class. | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | * @ordered | ||
278 | */ | ||
279 | int BASIC_EVENT_DEFINITION_FEATURE_COUNT = EVENT_DEFINITION_FEATURE_COUNT + 1; | ||
280 | |||
281 | /** | ||
282 | * The number of operations of the '<em>Basic Event Definition</em>' class. | ||
283 | * <!-- begin-user-doc --> | ||
284 | * <!-- end-user-doc --> | ||
285 | * @generated | ||
286 | * @ordered | ||
287 | */ | ||
288 | int BASIC_EVENT_DEFINITION_OPERATION_COUNT = EVENT_DEFINITION_OPERATION_COUNT + 0; | ||
289 | |||
290 | /** | ||
291 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputEventImpl <em>Input Event</em>}' class. | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputEventImpl | ||
295 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getInputEvent() | ||
296 | * @generated | ||
297 | */ | ||
298 | int INPUT_EVENT = 4; | ||
299 | |||
300 | /** | ||
301 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * <!-- end-user-doc --> | ||
304 | * @generated | ||
305 | * @ordered | ||
306 | */ | ||
307 | int INPUT_EVENT__NAME = EVENT_DECLARATION__NAME; | ||
308 | |||
309 | /** | ||
310 | * The feature id for the '<em><b>Multiple</b></em>' attribute. | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | * @ordered | ||
315 | */ | ||
316 | int INPUT_EVENT__MULTIPLE = EVENT_DECLARATION_FEATURE_COUNT + 0; | ||
317 | |||
318 | /** | ||
319 | * The number of structural features of the '<em>Input Event</em>' class. | ||
320 | * <!-- begin-user-doc --> | ||
321 | * <!-- end-user-doc --> | ||
322 | * @generated | ||
323 | * @ordered | ||
324 | */ | ||
325 | int INPUT_EVENT_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 1; | ||
326 | |||
327 | /** | ||
328 | * The number of operations of the '<em>Input Event</em>' class. | ||
329 | * <!-- begin-user-doc --> | ||
330 | * <!-- end-user-doc --> | ||
331 | * @generated | ||
332 | * @ordered | ||
333 | */ | ||
334 | int INPUT_EVENT_OPERATION_COUNT = EVENT_DECLARATION_OPERATION_COUNT + 0; | ||
335 | |||
336 | /** | ||
337 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.AndGateDefinitionImpl <em>And Gate Definition</em>}' class. | ||
338 | * <!-- begin-user-doc --> | ||
339 | * <!-- end-user-doc --> | ||
340 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.AndGateDefinitionImpl | ||
341 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getAndGateDefinition() | ||
342 | * @generated | ||
343 | */ | ||
344 | int AND_GATE_DEFINITION = 6; | ||
345 | |||
346 | /** | ||
347 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
348 | * <!-- begin-user-doc --> | ||
349 | * <!-- end-user-doc --> | ||
350 | * @generated | ||
351 | * @ordered | ||
352 | */ | ||
353 | int AND_GATE_DEFINITION__NAME = GATE_DEFINITION__NAME; | ||
354 | |||
355 | /** | ||
356 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
357 | * <!-- begin-user-doc --> | ||
358 | * <!-- end-user-doc --> | ||
359 | * @generated | ||
360 | * @ordered | ||
361 | */ | ||
362 | int AND_GATE_DEFINITION__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
363 | |||
364 | /** | ||
365 | * The number of structural features of the '<em>And Gate Definition</em>' class. | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | * @ordered | ||
370 | */ | ||
371 | int AND_GATE_DEFINITION_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
372 | |||
373 | /** | ||
374 | * The number of operations of the '<em>And Gate Definition</em>' class. | ||
375 | * <!-- begin-user-doc --> | ||
376 | * <!-- end-user-doc --> | ||
377 | * @generated | ||
378 | * @ordered | ||
379 | */ | ||
380 | int AND_GATE_DEFINITION_OPERATION_COUNT = GATE_DEFINITION_OPERATION_COUNT + 0; | ||
381 | |||
382 | /** | ||
383 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OrGateDefinitionImpl <em>Or Gate Definition</em>}' class. | ||
384 | * <!-- begin-user-doc --> | ||
385 | * <!-- end-user-doc --> | ||
386 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OrGateDefinitionImpl | ||
387 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getOrGateDefinition() | ||
388 | * @generated | ||
389 | */ | ||
390 | int OR_GATE_DEFINITION = 7; | ||
391 | |||
392 | /** | ||
393 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
394 | * <!-- begin-user-doc --> | ||
395 | * <!-- end-user-doc --> | ||
396 | * @generated | ||
397 | * @ordered | ||
398 | */ | ||
399 | int OR_GATE_DEFINITION__NAME = GATE_DEFINITION__NAME; | ||
400 | |||
401 | /** | ||
402 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
403 | * <!-- begin-user-doc --> | ||
404 | * <!-- end-user-doc --> | ||
405 | * @generated | ||
406 | * @ordered | ||
407 | */ | ||
408 | int OR_GATE_DEFINITION__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
409 | |||
410 | /** | ||
411 | * The number of structural features of the '<em>Or Gate Definition</em>' class. | ||
412 | * <!-- begin-user-doc --> | ||
413 | * <!-- end-user-doc --> | ||
414 | * @generated | ||
415 | * @ordered | ||
416 | */ | ||
417 | int OR_GATE_DEFINITION_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
418 | |||
419 | /** | ||
420 | * The number of operations of the '<em>Or Gate Definition</em>' class. | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | * @ordered | ||
425 | */ | ||
426 | int OR_GATE_DEFINITION_OPERATION_COUNT = GATE_DEFINITION_OPERATION_COUNT + 0; | ||
427 | |||
428 | /** | ||
429 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.KOfMGateDefinitionImpl <em>KOf MGate Definition</em>}' class. | ||
430 | * <!-- begin-user-doc --> | ||
431 | * <!-- end-user-doc --> | ||
432 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.KOfMGateDefinitionImpl | ||
433 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getKOfMGateDefinition() | ||
434 | * @generated | ||
435 | */ | ||
436 | int KOF_MGATE_DEFINITION = 8; | ||
437 | |||
438 | /** | ||
439 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
440 | * <!-- begin-user-doc --> | ||
441 | * <!-- end-user-doc --> | ||
442 | * @generated | ||
443 | * @ordered | ||
444 | */ | ||
445 | int KOF_MGATE_DEFINITION__NAME = GATE_DEFINITION__NAME; | ||
446 | |||
447 | /** | ||
448 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
449 | * <!-- begin-user-doc --> | ||
450 | * <!-- end-user-doc --> | ||
451 | * @generated | ||
452 | * @ordered | ||
453 | */ | ||
454 | int KOF_MGATE_DEFINITION__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
455 | |||
456 | /** | ||
457 | * The feature id for the '<em><b>K</b></em>' attribute. | ||
458 | * <!-- begin-user-doc --> | ||
459 | * <!-- end-user-doc --> | ||
460 | * @generated | ||
461 | * @ordered | ||
462 | */ | ||
463 | int KOF_MGATE_DEFINITION__K = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
464 | |||
465 | /** | ||
466 | * The feature id for the '<em><b>M</b></em>' attribute. | ||
467 | * <!-- begin-user-doc --> | ||
468 | * <!-- end-user-doc --> | ||
469 | * @generated | ||
470 | * @ordered | ||
471 | */ | ||
472 | int KOF_MGATE_DEFINITION__M = GATE_DEFINITION_FEATURE_COUNT + 1; | ||
473 | |||
474 | /** | ||
475 | * The number of structural features of the '<em>KOf MGate Definition</em>' class. | ||
476 | * <!-- begin-user-doc --> | ||
477 | * <!-- end-user-doc --> | ||
478 | * @generated | ||
479 | * @ordered | ||
480 | */ | ||
481 | int KOF_MGATE_DEFINITION_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 2; | ||
482 | |||
483 | /** | ||
484 | * The number of operations of the '<em>KOf MGate Definition</em>' class. | ||
485 | * <!-- begin-user-doc --> | ||
486 | * <!-- end-user-doc --> | ||
487 | * @generated | ||
488 | * @ordered | ||
489 | */ | ||
490 | int KOF_MGATE_DEFINITION_OPERATION_COUNT = GATE_DEFINITION_OPERATION_COUNT + 0; | ||
491 | |||
492 | /** | ||
493 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentFaultTreeImpl <em>Component Fault Tree</em>}' class. | ||
494 | * <!-- begin-user-doc --> | ||
495 | * <!-- end-user-doc --> | ||
496 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentFaultTreeImpl | ||
497 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponentFaultTree() | ||
498 | * @generated | ||
499 | */ | ||
500 | int COMPONENT_FAULT_TREE = 9; | ||
501 | |||
502 | /** | ||
503 | * The feature id for the '<em><b>Components</b></em>' containment reference list. | ||
504 | * <!-- begin-user-doc --> | ||
505 | * <!-- end-user-doc --> | ||
506 | * @generated | ||
507 | * @ordered | ||
508 | */ | ||
509 | int COMPONENT_FAULT_TREE__COMPONENTS = 0; | ||
510 | |||
511 | /** | ||
512 | * The feature id for the '<em><b>Top Event</b></em>' reference. | ||
513 | * <!-- begin-user-doc --> | ||
514 | * <!-- end-user-doc --> | ||
515 | * @generated | ||
516 | * @ordered | ||
517 | */ | ||
518 | int COMPONENT_FAULT_TREE__TOP_EVENT = 1; | ||
519 | |||
520 | /** | ||
521 | * The number of structural features of the '<em>Component Fault Tree</em>' class. | ||
522 | * <!-- begin-user-doc --> | ||
523 | * <!-- end-user-doc --> | ||
524 | * @generated | ||
525 | * @ordered | ||
526 | */ | ||
527 | int COMPONENT_FAULT_TREE_FEATURE_COUNT = 2; | ||
528 | |||
529 | /** | ||
530 | * The number of operations of the '<em>Component Fault Tree</em>' class. | ||
531 | * <!-- begin-user-doc --> | ||
532 | * <!-- end-user-doc --> | ||
533 | * @generated | ||
534 | * @ordered | ||
535 | */ | ||
536 | int COMPONENT_FAULT_TREE_OPERATION_COUNT = 0; | ||
537 | |||
538 | /** | ||
539 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement <em>Modal Element</em>}' class. | ||
540 | * <!-- begin-user-doc --> | ||
541 | * <!-- end-user-doc --> | ||
542 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement | ||
543 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getModalElement() | ||
544 | * @generated | ||
545 | */ | ||
546 | int MODAL_ELEMENT = 14; | ||
547 | |||
548 | /** | ||
549 | * The feature id for the '<em><b>Exists</b></em>' attribute. | ||
550 | * <!-- begin-user-doc --> | ||
551 | * <!-- end-user-doc --> | ||
552 | * @generated | ||
553 | * @ordered | ||
554 | */ | ||
555 | int MODAL_ELEMENT__EXISTS = 0; | ||
556 | |||
557 | /** | ||
558 | * The number of structural features of the '<em>Modal Element</em>' class. | ||
559 | * <!-- begin-user-doc --> | ||
560 | * <!-- end-user-doc --> | ||
561 | * @generated | ||
562 | * @ordered | ||
563 | */ | ||
564 | int MODAL_ELEMENT_FEATURE_COUNT = 1; | ||
565 | |||
566 | /** | ||
567 | * The number of operations of the '<em>Modal Element</em>' class. | ||
568 | * <!-- begin-user-doc --> | ||
569 | * <!-- end-user-doc --> | ||
570 | * @generated | ||
571 | * @ordered | ||
572 | */ | ||
573 | int MODAL_ELEMENT_OPERATION_COUNT = 0; | ||
574 | |||
575 | /** | ||
576 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl <em>Component</em>}' class. | ||
577 | * <!-- begin-user-doc --> | ||
578 | * <!-- end-user-doc --> | ||
579 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl | ||
580 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponent() | ||
581 | * @generated | ||
582 | */ | ||
583 | int COMPONENT = 10; | ||
584 | |||
585 | /** | ||
586 | * The feature id for the '<em><b>Exists</b></em>' attribute. | ||
587 | * <!-- begin-user-doc --> | ||
588 | * <!-- end-user-doc --> | ||
589 | * @generated | ||
590 | * @ordered | ||
591 | */ | ||
592 | int COMPONENT__EXISTS = MODAL_ELEMENT__EXISTS; | ||
593 | |||
594 | /** | ||
595 | * The feature id for the '<em><b>Inputs</b></em>' containment reference list. | ||
596 | * <!-- begin-user-doc --> | ||
597 | * <!-- end-user-doc --> | ||
598 | * @generated | ||
599 | * @ordered | ||
600 | */ | ||
601 | int COMPONENT__INPUTS = MODAL_ELEMENT_FEATURE_COUNT + 0; | ||
602 | |||
603 | /** | ||
604 | * The feature id for the '<em><b>Outputs</b></em>' containment reference list. | ||
605 | * <!-- begin-user-doc --> | ||
606 | * <!-- end-user-doc --> | ||
607 | * @generated | ||
608 | * @ordered | ||
609 | */ | ||
610 | int COMPONENT__OUTPUTS = MODAL_ELEMENT_FEATURE_COUNT + 1; | ||
611 | |||
612 | /** | ||
613 | * The feature id for the '<em><b>Component Definition</b></em>' reference. | ||
614 | * <!-- begin-user-doc --> | ||
615 | * <!-- end-user-doc --> | ||
616 | * @generated | ||
617 | * @ordered | ||
618 | */ | ||
619 | int COMPONENT__COMPONENT_DEFINITION = MODAL_ELEMENT_FEATURE_COUNT + 2; | ||
620 | |||
621 | /** | ||
622 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
623 | * <!-- begin-user-doc --> | ||
624 | * <!-- end-user-doc --> | ||
625 | * @generated | ||
626 | * @ordered | ||
627 | */ | ||
628 | int COMPONENT__NAME = MODAL_ELEMENT_FEATURE_COUNT + 3; | ||
629 | |||
630 | /** | ||
631 | * The feature id for the '<em><b>Multiple Allowed</b></em>' attribute. | ||
632 | * <!-- begin-user-doc --> | ||
633 | * <!-- end-user-doc --> | ||
634 | * @generated | ||
635 | * @ordered | ||
636 | */ | ||
637 | int COMPONENT__MULTIPLE_ALLOWED = MODAL_ELEMENT_FEATURE_COUNT + 4; | ||
638 | |||
639 | /** | ||
640 | * The number of structural features of the '<em>Component</em>' class. | ||
641 | * <!-- begin-user-doc --> | ||
642 | * <!-- end-user-doc --> | ||
643 | * @generated | ||
644 | * @ordered | ||
645 | */ | ||
646 | int COMPONENT_FEATURE_COUNT = MODAL_ELEMENT_FEATURE_COUNT + 5; | ||
647 | |||
648 | /** | ||
649 | * The number of operations of the '<em>Component</em>' class. | ||
650 | * <!-- begin-user-doc --> | ||
651 | * <!-- end-user-doc --> | ||
652 | * @generated | ||
653 | * @ordered | ||
654 | */ | ||
655 | int COMPONENT_OPERATION_COUNT = MODAL_ELEMENT_OPERATION_COUNT + 0; | ||
656 | |||
657 | /** | ||
658 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl <em>Input</em>}' class. | ||
659 | * <!-- begin-user-doc --> | ||
660 | * <!-- end-user-doc --> | ||
661 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl | ||
662 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getInput() | ||
663 | * @generated | ||
664 | */ | ||
665 | int INPUT = 11; | ||
666 | |||
667 | /** | ||
668 | * The feature id for the '<em><b>Input Event</b></em>' reference. | ||
669 | * <!-- begin-user-doc --> | ||
670 | * <!-- end-user-doc --> | ||
671 | * @generated | ||
672 | * @ordered | ||
673 | */ | ||
674 | int INPUT__INPUT_EVENT = 0; | ||
675 | |||
676 | /** | ||
677 | * The feature id for the '<em><b>Component</b></em>' container reference. | ||
678 | * <!-- begin-user-doc --> | ||
679 | * <!-- end-user-doc --> | ||
680 | * @generated | ||
681 | * @ordered | ||
682 | */ | ||
683 | int INPUT__COMPONENT = 1; | ||
684 | |||
685 | /** | ||
686 | * The feature id for the '<em><b>Incoming Connections</b></em>' containment reference list. | ||
687 | * <!-- begin-user-doc --> | ||
688 | * <!-- end-user-doc --> | ||
689 | * @generated | ||
690 | * @ordered | ||
691 | */ | ||
692 | int INPUT__INCOMING_CONNECTIONS = 2; | ||
693 | |||
694 | /** | ||
695 | * The number of structural features of the '<em>Input</em>' class. | ||
696 | * <!-- begin-user-doc --> | ||
697 | * <!-- end-user-doc --> | ||
698 | * @generated | ||
699 | * @ordered | ||
700 | */ | ||
701 | int INPUT_FEATURE_COUNT = 3; | ||
702 | |||
703 | /** | ||
704 | * The number of operations of the '<em>Input</em>' class. | ||
705 | * <!-- begin-user-doc --> | ||
706 | * <!-- end-user-doc --> | ||
707 | * @generated | ||
708 | * @ordered | ||
709 | */ | ||
710 | int INPUT_OPERATION_COUNT = 0; | ||
711 | |||
712 | /** | ||
713 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl <em>Output</em>}' class. | ||
714 | * <!-- begin-user-doc --> | ||
715 | * <!-- end-user-doc --> | ||
716 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl | ||
717 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getOutput() | ||
718 | * @generated | ||
719 | */ | ||
720 | int OUTPUT = 12; | ||
721 | |||
722 | /** | ||
723 | * The feature id for the '<em><b>Event Declaration</b></em>' reference. | ||
724 | * <!-- begin-user-doc --> | ||
725 | * <!-- end-user-doc --> | ||
726 | * @generated | ||
727 | * @ordered | ||
728 | */ | ||
729 | int OUTPUT__EVENT_DECLARATION = 0; | ||
730 | |||
731 | /** | ||
732 | * The feature id for the '<em><b>Outgoing Connections</b></em>' reference list. | ||
733 | * <!-- begin-user-doc --> | ||
734 | * <!-- end-user-doc --> | ||
735 | * @generated | ||
736 | * @ordered | ||
737 | */ | ||
738 | int OUTPUT__OUTGOING_CONNECTIONS = 1; | ||
739 | |||
740 | /** | ||
741 | * The feature id for the '<em><b>Component</b></em>' container reference. | ||
742 | * <!-- begin-user-doc --> | ||
743 | * <!-- end-user-doc --> | ||
744 | * @generated | ||
745 | * @ordered | ||
746 | */ | ||
747 | int OUTPUT__COMPONENT = 2; | ||
748 | |||
749 | /** | ||
750 | * The number of structural features of the '<em>Output</em>' class. | ||
751 | * <!-- begin-user-doc --> | ||
752 | * <!-- end-user-doc --> | ||
753 | * @generated | ||
754 | * @ordered | ||
755 | */ | ||
756 | int OUTPUT_FEATURE_COUNT = 3; | ||
757 | |||
758 | /** | ||
759 | * The number of operations of the '<em>Output</em>' class. | ||
760 | * <!-- begin-user-doc --> | ||
761 | * <!-- end-user-doc --> | ||
762 | * @generated | ||
763 | * @ordered | ||
764 | */ | ||
765 | int OUTPUT_OPERATION_COUNT = 0; | ||
766 | |||
767 | /** | ||
768 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl <em>Connection</em>}' class. | ||
769 | * <!-- begin-user-doc --> | ||
770 | * <!-- end-user-doc --> | ||
771 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl | ||
772 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getConnection() | ||
773 | * @generated | ||
774 | */ | ||
775 | int CONNECTION = 13; | ||
776 | |||
777 | /** | ||
778 | * The feature id for the '<em><b>Exists</b></em>' attribute. | ||
779 | * <!-- begin-user-doc --> | ||
780 | * <!-- end-user-doc --> | ||
781 | * @generated | ||
782 | * @ordered | ||
783 | */ | ||
784 | int CONNECTION__EXISTS = MODAL_ELEMENT__EXISTS; | ||
785 | |||
786 | /** | ||
787 | * The feature id for the '<em><b>Input</b></em>' container reference. | ||
788 | * <!-- begin-user-doc --> | ||
789 | * <!-- end-user-doc --> | ||
790 | * @generated | ||
791 | * @ordered | ||
792 | */ | ||
793 | int CONNECTION__INPUT = MODAL_ELEMENT_FEATURE_COUNT + 0; | ||
794 | |||
795 | /** | ||
796 | * The feature id for the '<em><b>Output</b></em>' reference. | ||
797 | * <!-- begin-user-doc --> | ||
798 | * <!-- end-user-doc --> | ||
799 | * @generated | ||
800 | * @ordered | ||
801 | */ | ||
802 | int CONNECTION__OUTPUT = MODAL_ELEMENT_FEATURE_COUNT + 1; | ||
803 | |||
804 | /** | ||
805 | * The number of structural features of the '<em>Connection</em>' class. | ||
806 | * <!-- begin-user-doc --> | ||
807 | * <!-- end-user-doc --> | ||
808 | * @generated | ||
809 | * @ordered | ||
810 | */ | ||
811 | int CONNECTION_FEATURE_COUNT = MODAL_ELEMENT_FEATURE_COUNT + 2; | ||
812 | |||
813 | /** | ||
814 | * The number of operations of the '<em>Connection</em>' class. | ||
815 | * <!-- begin-user-doc --> | ||
816 | * <!-- end-user-doc --> | ||
817 | * @generated | ||
818 | * @ordered | ||
819 | */ | ||
820 | int CONNECTION_OPERATION_COUNT = MODAL_ELEMENT_OPERATION_COUNT + 0; | ||
821 | |||
822 | |||
823 | /** | ||
824 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality <em>Modality</em>}' enum. | ||
825 | * <!-- begin-user-doc --> | ||
826 | * <!-- end-user-doc --> | ||
827 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality | ||
828 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getModality() | ||
829 | * @generated | ||
830 | */ | ||
831 | int MODALITY = 15; | ||
832 | |||
833 | |||
834 | /** | ||
835 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition <em>Component Definition</em>}'. | ||
836 | * <!-- begin-user-doc --> | ||
837 | * <!-- end-user-doc --> | ||
838 | * @return the meta object for class '<em>Component Definition</em>'. | ||
839 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition | ||
840 | * @generated | ||
841 | */ | ||
842 | EClass getComponentDefinition(); | ||
843 | |||
844 | /** | ||
845 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getInputEvents <em>Input Events</em>}'. | ||
846 | * <!-- begin-user-doc --> | ||
847 | * <!-- end-user-doc --> | ||
848 | * @return the meta object for the containment reference list '<em>Input Events</em>'. | ||
849 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getInputEvents() | ||
850 | * @see #getComponentDefinition() | ||
851 | * @generated | ||
852 | */ | ||
853 | EReference getComponentDefinition_InputEvents(); | ||
854 | |||
855 | /** | ||
856 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getEventDefinitions <em>Event Definitions</em>}'. | ||
857 | * <!-- begin-user-doc --> | ||
858 | * <!-- end-user-doc --> | ||
859 | * @return the meta object for the containment reference list '<em>Event Definitions</em>'. | ||
860 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getEventDefinitions() | ||
861 | * @see #getComponentDefinition() | ||
862 | * @generated | ||
863 | */ | ||
864 | EReference getComponentDefinition_EventDefinitions(); | ||
865 | |||
866 | /** | ||
867 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getOutputEvents <em>Output Events</em>}'. | ||
868 | * <!-- begin-user-doc --> | ||
869 | * <!-- end-user-doc --> | ||
870 | * @return the meta object for the reference list '<em>Output Events</em>'. | ||
871 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getOutputEvents() | ||
872 | * @see #getComponentDefinition() | ||
873 | * @generated | ||
874 | */ | ||
875 | EReference getComponentDefinition_OutputEvents(); | ||
876 | |||
877 | /** | ||
878 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getName <em>Name</em>}'. | ||
879 | * <!-- begin-user-doc --> | ||
880 | * <!-- end-user-doc --> | ||
881 | * @return the meta object for the attribute '<em>Name</em>'. | ||
882 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getName() | ||
883 | * @see #getComponentDefinition() | ||
884 | * @generated | ||
885 | */ | ||
886 | EAttribute getComponentDefinition_Name(); | ||
887 | |||
888 | /** | ||
889 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition <em>Event Definition</em>}'. | ||
890 | * <!-- begin-user-doc --> | ||
891 | * <!-- end-user-doc --> | ||
892 | * @return the meta object for class '<em>Event Definition</em>'. | ||
893 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition | ||
894 | * @generated | ||
895 | */ | ||
896 | EClass getEventDefinition(); | ||
897 | |||
898 | /** | ||
899 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition <em>Gate Definition</em>}'. | ||
900 | * <!-- begin-user-doc --> | ||
901 | * <!-- end-user-doc --> | ||
902 | * @return the meta object for class '<em>Gate Definition</em>'. | ||
903 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition | ||
904 | * @generated | ||
905 | */ | ||
906 | EClass getGateDefinition(); | ||
907 | |||
908 | /** | ||
909 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition#getInputEvents <em>Input Events</em>}'. | ||
910 | * <!-- begin-user-doc --> | ||
911 | * <!-- end-user-doc --> | ||
912 | * @return the meta object for the reference list '<em>Input Events</em>'. | ||
913 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition#getInputEvents() | ||
914 | * @see #getGateDefinition() | ||
915 | * @generated | ||
916 | */ | ||
917 | EReference getGateDefinition_InputEvents(); | ||
918 | |||
919 | /** | ||
920 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
921 | * <!-- begin-user-doc --> | ||
922 | * <!-- end-user-doc --> | ||
923 | * @return the meta object for class '<em>Basic Event Definition</em>'. | ||
924 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition | ||
925 | * @generated | ||
926 | */ | ||
927 | EClass getBasicEventDefinition(); | ||
928 | |||
929 | /** | ||
930 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition#getDistribution <em>Distribution</em>}'. | ||
931 | * <!-- begin-user-doc --> | ||
932 | * <!-- end-user-doc --> | ||
933 | * @return the meta object for the containment reference '<em>Distribution</em>'. | ||
934 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition#getDistribution() | ||
935 | * @see #getBasicEventDefinition() | ||
936 | * @generated | ||
937 | */ | ||
938 | EReference getBasicEventDefinition_Distribution(); | ||
939 | |||
940 | /** | ||
941 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent <em>Input Event</em>}'. | ||
942 | * <!-- begin-user-doc --> | ||
943 | * <!-- end-user-doc --> | ||
944 | * @return the meta object for class '<em>Input Event</em>'. | ||
945 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent | ||
946 | * @generated | ||
947 | */ | ||
948 | EClass getInputEvent(); | ||
949 | |||
950 | /** | ||
951 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent#isMultiple <em>Multiple</em>}'. | ||
952 | * <!-- begin-user-doc --> | ||
953 | * <!-- end-user-doc --> | ||
954 | * @return the meta object for the attribute '<em>Multiple</em>'. | ||
955 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent#isMultiple() | ||
956 | * @see #getInputEvent() | ||
957 | * @generated | ||
958 | */ | ||
959 | EAttribute getInputEvent_Multiple(); | ||
960 | |||
961 | /** | ||
962 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration <em>Event Declaration</em>}'. | ||
963 | * <!-- begin-user-doc --> | ||
964 | * <!-- end-user-doc --> | ||
965 | * @return the meta object for class '<em>Event Declaration</em>'. | ||
966 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration | ||
967 | * @generated | ||
968 | */ | ||
969 | EClass getEventDeclaration(); | ||
970 | |||
971 | /** | ||
972 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration#getName <em>Name</em>}'. | ||
973 | * <!-- begin-user-doc --> | ||
974 | * <!-- end-user-doc --> | ||
975 | * @return the meta object for the attribute '<em>Name</em>'. | ||
976 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration#getName() | ||
977 | * @see #getEventDeclaration() | ||
978 | * @generated | ||
979 | */ | ||
980 | EAttribute getEventDeclaration_Name(); | ||
981 | |||
982 | /** | ||
983 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition <em>And Gate Definition</em>}'. | ||
984 | * <!-- begin-user-doc --> | ||
985 | * <!-- end-user-doc --> | ||
986 | * @return the meta object for class '<em>And Gate Definition</em>'. | ||
987 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition | ||
988 | * @generated | ||
989 | */ | ||
990 | EClass getAndGateDefinition(); | ||
991 | |||
992 | /** | ||
993 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition <em>Or Gate Definition</em>}'. | ||
994 | * <!-- begin-user-doc --> | ||
995 | * <!-- end-user-doc --> | ||
996 | * @return the meta object for class '<em>Or Gate Definition</em>'. | ||
997 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition | ||
998 | * @generated | ||
999 | */ | ||
1000 | EClass getOrGateDefinition(); | ||
1001 | |||
1002 | /** | ||
1003 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition <em>KOf MGate Definition</em>}'. | ||
1004 | * <!-- begin-user-doc --> | ||
1005 | * <!-- end-user-doc --> | ||
1006 | * @return the meta object for class '<em>KOf MGate Definition</em>'. | ||
1007 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition | ||
1008 | * @generated | ||
1009 | */ | ||
1010 | EClass getKOfMGateDefinition(); | ||
1011 | |||
1012 | /** | ||
1013 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getK <em>K</em>}'. | ||
1014 | * <!-- begin-user-doc --> | ||
1015 | * <!-- end-user-doc --> | ||
1016 | * @return the meta object for the attribute '<em>K</em>'. | ||
1017 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getK() | ||
1018 | * @see #getKOfMGateDefinition() | ||
1019 | * @generated | ||
1020 | */ | ||
1021 | EAttribute getKOfMGateDefinition_K(); | ||
1022 | |||
1023 | /** | ||
1024 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getM <em>M</em>}'. | ||
1025 | * <!-- begin-user-doc --> | ||
1026 | * <!-- end-user-doc --> | ||
1027 | * @return the meta object for the attribute '<em>M</em>'. | ||
1028 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getM() | ||
1029 | * @see #getKOfMGateDefinition() | ||
1030 | * @generated | ||
1031 | */ | ||
1032 | EAttribute getKOfMGateDefinition_M(); | ||
1033 | |||
1034 | /** | ||
1035 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree <em>Component Fault Tree</em>}'. | ||
1036 | * <!-- begin-user-doc --> | ||
1037 | * <!-- end-user-doc --> | ||
1038 | * @return the meta object for class '<em>Component Fault Tree</em>'. | ||
1039 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree | ||
1040 | * @generated | ||
1041 | */ | ||
1042 | EClass getComponentFaultTree(); | ||
1043 | |||
1044 | /** | ||
1045 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getComponents <em>Components</em>}'. | ||
1046 | * <!-- begin-user-doc --> | ||
1047 | * <!-- end-user-doc --> | ||
1048 | * @return the meta object for the containment reference list '<em>Components</em>'. | ||
1049 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getComponents() | ||
1050 | * @see #getComponentFaultTree() | ||
1051 | * @generated | ||
1052 | */ | ||
1053 | EReference getComponentFaultTree_Components(); | ||
1054 | |||
1055 | /** | ||
1056 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getTopEvent <em>Top Event</em>}'. | ||
1057 | * <!-- begin-user-doc --> | ||
1058 | * <!-- end-user-doc --> | ||
1059 | * @return the meta object for the reference '<em>Top Event</em>'. | ||
1060 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getTopEvent() | ||
1061 | * @see #getComponentFaultTree() | ||
1062 | * @generated | ||
1063 | */ | ||
1064 | EReference getComponentFaultTree_TopEvent(); | ||
1065 | |||
1066 | /** | ||
1067 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component <em>Component</em>}'. | ||
1068 | * <!-- begin-user-doc --> | ||
1069 | * <!-- end-user-doc --> | ||
1070 | * @return the meta object for class '<em>Component</em>'. | ||
1071 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component | ||
1072 | * @generated | ||
1073 | */ | ||
1074 | EClass getComponent(); | ||
1075 | |||
1076 | /** | ||
1077 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getInputs <em>Inputs</em>}'. | ||
1078 | * <!-- begin-user-doc --> | ||
1079 | * <!-- end-user-doc --> | ||
1080 | * @return the meta object for the containment reference list '<em>Inputs</em>'. | ||
1081 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getInputs() | ||
1082 | * @see #getComponent() | ||
1083 | * @generated | ||
1084 | */ | ||
1085 | EReference getComponent_Inputs(); | ||
1086 | |||
1087 | /** | ||
1088 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getOutputs <em>Outputs</em>}'. | ||
1089 | * <!-- begin-user-doc --> | ||
1090 | * <!-- end-user-doc --> | ||
1091 | * @return the meta object for the containment reference list '<em>Outputs</em>'. | ||
1092 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getOutputs() | ||
1093 | * @see #getComponent() | ||
1094 | * @generated | ||
1095 | */ | ||
1096 | EReference getComponent_Outputs(); | ||
1097 | |||
1098 | /** | ||
1099 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getComponentDefinition <em>Component Definition</em>}'. | ||
1100 | * <!-- begin-user-doc --> | ||
1101 | * <!-- end-user-doc --> | ||
1102 | * @return the meta object for the reference '<em>Component Definition</em>'. | ||
1103 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getComponentDefinition() | ||
1104 | * @see #getComponent() | ||
1105 | * @generated | ||
1106 | */ | ||
1107 | EReference getComponent_ComponentDefinition(); | ||
1108 | |||
1109 | /** | ||
1110 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getName <em>Name</em>}'. | ||
1111 | * <!-- begin-user-doc --> | ||
1112 | * <!-- end-user-doc --> | ||
1113 | * @return the meta object for the attribute '<em>Name</em>'. | ||
1114 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getName() | ||
1115 | * @see #getComponent() | ||
1116 | * @generated | ||
1117 | */ | ||
1118 | EAttribute getComponent_Name(); | ||
1119 | |||
1120 | /** | ||
1121 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#isMultipleAllowed <em>Multiple Allowed</em>}'. | ||
1122 | * <!-- begin-user-doc --> | ||
1123 | * <!-- end-user-doc --> | ||
1124 | * @return the meta object for the attribute '<em>Multiple Allowed</em>'. | ||
1125 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#isMultipleAllowed() | ||
1126 | * @see #getComponent() | ||
1127 | * @generated | ||
1128 | */ | ||
1129 | EAttribute getComponent_MultipleAllowed(); | ||
1130 | |||
1131 | /** | ||
1132 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input <em>Input</em>}'. | ||
1133 | * <!-- begin-user-doc --> | ||
1134 | * <!-- end-user-doc --> | ||
1135 | * @return the meta object for class '<em>Input</em>'. | ||
1136 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input | ||
1137 | * @generated | ||
1138 | */ | ||
1139 | EClass getInput(); | ||
1140 | |||
1141 | /** | ||
1142 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getInputEvent <em>Input Event</em>}'. | ||
1143 | * <!-- begin-user-doc --> | ||
1144 | * <!-- end-user-doc --> | ||
1145 | * @return the meta object for the reference '<em>Input Event</em>'. | ||
1146 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getInputEvent() | ||
1147 | * @see #getInput() | ||
1148 | * @generated | ||
1149 | */ | ||
1150 | EReference getInput_InputEvent(); | ||
1151 | |||
1152 | /** | ||
1153 | * Returns the meta object for the container reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getComponent <em>Component</em>}'. | ||
1154 | * <!-- begin-user-doc --> | ||
1155 | * <!-- end-user-doc --> | ||
1156 | * @return the meta object for the container reference '<em>Component</em>'. | ||
1157 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getComponent() | ||
1158 | * @see #getInput() | ||
1159 | * @generated | ||
1160 | */ | ||
1161 | EReference getInput_Component(); | ||
1162 | |||
1163 | /** | ||
1164 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIncomingConnections <em>Incoming Connections</em>}'. | ||
1165 | * <!-- begin-user-doc --> | ||
1166 | * <!-- end-user-doc --> | ||
1167 | * @return the meta object for the containment reference list '<em>Incoming Connections</em>'. | ||
1168 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIncomingConnections() | ||
1169 | * @see #getInput() | ||
1170 | * @generated | ||
1171 | */ | ||
1172 | EReference getInput_IncomingConnections(); | ||
1173 | |||
1174 | /** | ||
1175 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output <em>Output</em>}'. | ||
1176 | * <!-- begin-user-doc --> | ||
1177 | * <!-- end-user-doc --> | ||
1178 | * @return the meta object for class '<em>Output</em>'. | ||
1179 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output | ||
1180 | * @generated | ||
1181 | */ | ||
1182 | EClass getOutput(); | ||
1183 | |||
1184 | /** | ||
1185 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getEventDeclaration <em>Event Declaration</em>}'. | ||
1186 | * <!-- begin-user-doc --> | ||
1187 | * <!-- end-user-doc --> | ||
1188 | * @return the meta object for the reference '<em>Event Declaration</em>'. | ||
1189 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getEventDeclaration() | ||
1190 | * @see #getOutput() | ||
1191 | * @generated | ||
1192 | */ | ||
1193 | EReference getOutput_EventDeclaration(); | ||
1194 | |||
1195 | /** | ||
1196 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getOutgoingConnections <em>Outgoing Connections</em>}'. | ||
1197 | * <!-- begin-user-doc --> | ||
1198 | * <!-- end-user-doc --> | ||
1199 | * @return the meta object for the reference list '<em>Outgoing Connections</em>'. | ||
1200 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getOutgoingConnections() | ||
1201 | * @see #getOutput() | ||
1202 | * @generated | ||
1203 | */ | ||
1204 | EReference getOutput_OutgoingConnections(); | ||
1205 | |||
1206 | /** | ||
1207 | * Returns the meta object for the container reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getComponent <em>Component</em>}'. | ||
1208 | * <!-- begin-user-doc --> | ||
1209 | * <!-- end-user-doc --> | ||
1210 | * @return the meta object for the container reference '<em>Component</em>'. | ||
1211 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getComponent() | ||
1212 | * @see #getOutput() | ||
1213 | * @generated | ||
1214 | */ | ||
1215 | EReference getOutput_Component(); | ||
1216 | |||
1217 | /** | ||
1218 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection <em>Connection</em>}'. | ||
1219 | * <!-- begin-user-doc --> | ||
1220 | * <!-- end-user-doc --> | ||
1221 | * @return the meta object for class '<em>Connection</em>'. | ||
1222 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection | ||
1223 | * @generated | ||
1224 | */ | ||
1225 | EClass getConnection(); | ||
1226 | |||
1227 | /** | ||
1228 | * Returns the meta object for the container reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getInput <em>Input</em>}'. | ||
1229 | * <!-- begin-user-doc --> | ||
1230 | * <!-- end-user-doc --> | ||
1231 | * @return the meta object for the container reference '<em>Input</em>'. | ||
1232 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getInput() | ||
1233 | * @see #getConnection() | ||
1234 | * @generated | ||
1235 | */ | ||
1236 | EReference getConnection_Input(); | ||
1237 | |||
1238 | /** | ||
1239 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getOutput <em>Output</em>}'. | ||
1240 | * <!-- begin-user-doc --> | ||
1241 | * <!-- end-user-doc --> | ||
1242 | * @return the meta object for the reference '<em>Output</em>'. | ||
1243 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getOutput() | ||
1244 | * @see #getConnection() | ||
1245 | * @generated | ||
1246 | */ | ||
1247 | EReference getConnection_Output(); | ||
1248 | |||
1249 | /** | ||
1250 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement <em>Modal Element</em>}'. | ||
1251 | * <!-- begin-user-doc --> | ||
1252 | * <!-- end-user-doc --> | ||
1253 | * @return the meta object for class '<em>Modal Element</em>'. | ||
1254 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement | ||
1255 | * @generated | ||
1256 | */ | ||
1257 | EClass getModalElement(); | ||
1258 | |||
1259 | /** | ||
1260 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement#getExists <em>Exists</em>}'. | ||
1261 | * <!-- begin-user-doc --> | ||
1262 | * <!-- end-user-doc --> | ||
1263 | * @return the meta object for the attribute '<em>Exists</em>'. | ||
1264 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement#getExists() | ||
1265 | * @see #getModalElement() | ||
1266 | * @generated | ||
1267 | */ | ||
1268 | EAttribute getModalElement_Exists(); | ||
1269 | |||
1270 | /** | ||
1271 | * Returns the meta object for enum '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality <em>Modality</em>}'. | ||
1272 | * <!-- begin-user-doc --> | ||
1273 | * <!-- end-user-doc --> | ||
1274 | * @return the meta object for enum '<em>Modality</em>'. | ||
1275 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality | ||
1276 | * @generated | ||
1277 | */ | ||
1278 | EEnum getModality(); | ||
1279 | |||
1280 | /** | ||
1281 | * Returns the factory that creates the instances of the model. | ||
1282 | * <!-- begin-user-doc --> | ||
1283 | * <!-- end-user-doc --> | ||
1284 | * @return the factory that creates the instances of the model. | ||
1285 | * @generated | ||
1286 | */ | ||
1287 | CftFactory getCftFactory(); | ||
1288 | |||
1289 | /** | ||
1290 | * <!-- begin-user-doc --> | ||
1291 | * Defines literals for the meta objects that represent | ||
1292 | * <ul> | ||
1293 | * <li>each class,</li> | ||
1294 | * <li>each feature of each class,</li> | ||
1295 | * <li>each operation of each class,</li> | ||
1296 | * <li>each enum,</li> | ||
1297 | * <li>and each data type</li> | ||
1298 | * </ul> | ||
1299 | * <!-- end-user-doc --> | ||
1300 | * @generated | ||
1301 | */ | ||
1302 | interface Literals { | ||
1303 | /** | ||
1304 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl <em>Component Definition</em>}' class. | ||
1305 | * <!-- begin-user-doc --> | ||
1306 | * <!-- end-user-doc --> | ||
1307 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl | ||
1308 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponentDefinition() | ||
1309 | * @generated | ||
1310 | */ | ||
1311 | EClass COMPONENT_DEFINITION = eINSTANCE.getComponentDefinition(); | ||
1312 | |||
1313 | /** | ||
1314 | * The meta object literal for the '<em><b>Input Events</b></em>' containment reference list feature. | ||
1315 | * <!-- begin-user-doc --> | ||
1316 | * <!-- end-user-doc --> | ||
1317 | * @generated | ||
1318 | */ | ||
1319 | EReference COMPONENT_DEFINITION__INPUT_EVENTS = eINSTANCE.getComponentDefinition_InputEvents(); | ||
1320 | |||
1321 | /** | ||
1322 | * The meta object literal for the '<em><b>Event Definitions</b></em>' containment reference list feature. | ||
1323 | * <!-- begin-user-doc --> | ||
1324 | * <!-- end-user-doc --> | ||
1325 | * @generated | ||
1326 | */ | ||
1327 | EReference COMPONENT_DEFINITION__EVENT_DEFINITIONS = eINSTANCE.getComponentDefinition_EventDefinitions(); | ||
1328 | |||
1329 | /** | ||
1330 | * The meta object literal for the '<em><b>Output Events</b></em>' reference list feature. | ||
1331 | * <!-- begin-user-doc --> | ||
1332 | * <!-- end-user-doc --> | ||
1333 | * @generated | ||
1334 | */ | ||
1335 | EReference COMPONENT_DEFINITION__OUTPUT_EVENTS = eINSTANCE.getComponentDefinition_OutputEvents(); | ||
1336 | |||
1337 | /** | ||
1338 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1339 | * <!-- begin-user-doc --> | ||
1340 | * <!-- end-user-doc --> | ||
1341 | * @generated | ||
1342 | */ | ||
1343 | EAttribute COMPONENT_DEFINITION__NAME = eINSTANCE.getComponentDefinition_Name(); | ||
1344 | |||
1345 | /** | ||
1346 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDefinitionImpl <em>Event Definition</em>}' class. | ||
1347 | * <!-- begin-user-doc --> | ||
1348 | * <!-- end-user-doc --> | ||
1349 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDefinitionImpl | ||
1350 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getEventDefinition() | ||
1351 | * @generated | ||
1352 | */ | ||
1353 | EClass EVENT_DEFINITION = eINSTANCE.getEventDefinition(); | ||
1354 | |||
1355 | /** | ||
1356 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.GateDefinitionImpl <em>Gate Definition</em>}' class. | ||
1357 | * <!-- begin-user-doc --> | ||
1358 | * <!-- end-user-doc --> | ||
1359 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.GateDefinitionImpl | ||
1360 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getGateDefinition() | ||
1361 | * @generated | ||
1362 | */ | ||
1363 | EClass GATE_DEFINITION = eINSTANCE.getGateDefinition(); | ||
1364 | |||
1365 | /** | ||
1366 | * The meta object literal for the '<em><b>Input Events</b></em>' reference list feature. | ||
1367 | * <!-- begin-user-doc --> | ||
1368 | * <!-- end-user-doc --> | ||
1369 | * @generated | ||
1370 | */ | ||
1371 | EReference GATE_DEFINITION__INPUT_EVENTS = eINSTANCE.getGateDefinition_InputEvents(); | ||
1372 | |||
1373 | /** | ||
1374 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.BasicEventDefinitionImpl <em>Basic Event Definition</em>}' class. | ||
1375 | * <!-- begin-user-doc --> | ||
1376 | * <!-- end-user-doc --> | ||
1377 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.BasicEventDefinitionImpl | ||
1378 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getBasicEventDefinition() | ||
1379 | * @generated | ||
1380 | */ | ||
1381 | EClass BASIC_EVENT_DEFINITION = eINSTANCE.getBasicEventDefinition(); | ||
1382 | |||
1383 | /** | ||
1384 | * The meta object literal for the '<em><b>Distribution</b></em>' containment reference feature. | ||
1385 | * <!-- begin-user-doc --> | ||
1386 | * <!-- end-user-doc --> | ||
1387 | * @generated | ||
1388 | */ | ||
1389 | EReference BASIC_EVENT_DEFINITION__DISTRIBUTION = eINSTANCE.getBasicEventDefinition_Distribution(); | ||
1390 | |||
1391 | /** | ||
1392 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputEventImpl <em>Input Event</em>}' class. | ||
1393 | * <!-- begin-user-doc --> | ||
1394 | * <!-- end-user-doc --> | ||
1395 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputEventImpl | ||
1396 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getInputEvent() | ||
1397 | * @generated | ||
1398 | */ | ||
1399 | EClass INPUT_EVENT = eINSTANCE.getInputEvent(); | ||
1400 | |||
1401 | /** | ||
1402 | * The meta object literal for the '<em><b>Multiple</b></em>' attribute feature. | ||
1403 | * <!-- begin-user-doc --> | ||
1404 | * <!-- end-user-doc --> | ||
1405 | * @generated | ||
1406 | */ | ||
1407 | EAttribute INPUT_EVENT__MULTIPLE = eINSTANCE.getInputEvent_Multiple(); | ||
1408 | |||
1409 | /** | ||
1410 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDeclarationImpl <em>Event Declaration</em>}' class. | ||
1411 | * <!-- begin-user-doc --> | ||
1412 | * <!-- end-user-doc --> | ||
1413 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDeclarationImpl | ||
1414 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getEventDeclaration() | ||
1415 | * @generated | ||
1416 | */ | ||
1417 | EClass EVENT_DECLARATION = eINSTANCE.getEventDeclaration(); | ||
1418 | |||
1419 | /** | ||
1420 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1421 | * <!-- begin-user-doc --> | ||
1422 | * <!-- end-user-doc --> | ||
1423 | * @generated | ||
1424 | */ | ||
1425 | EAttribute EVENT_DECLARATION__NAME = eINSTANCE.getEventDeclaration_Name(); | ||
1426 | |||
1427 | /** | ||
1428 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.AndGateDefinitionImpl <em>And Gate Definition</em>}' class. | ||
1429 | * <!-- begin-user-doc --> | ||
1430 | * <!-- end-user-doc --> | ||
1431 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.AndGateDefinitionImpl | ||
1432 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getAndGateDefinition() | ||
1433 | * @generated | ||
1434 | */ | ||
1435 | EClass AND_GATE_DEFINITION = eINSTANCE.getAndGateDefinition(); | ||
1436 | |||
1437 | /** | ||
1438 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OrGateDefinitionImpl <em>Or Gate Definition</em>}' class. | ||
1439 | * <!-- begin-user-doc --> | ||
1440 | * <!-- end-user-doc --> | ||
1441 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OrGateDefinitionImpl | ||
1442 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getOrGateDefinition() | ||
1443 | * @generated | ||
1444 | */ | ||
1445 | EClass OR_GATE_DEFINITION = eINSTANCE.getOrGateDefinition(); | ||
1446 | |||
1447 | /** | ||
1448 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.KOfMGateDefinitionImpl <em>KOf MGate Definition</em>}' class. | ||
1449 | * <!-- begin-user-doc --> | ||
1450 | * <!-- end-user-doc --> | ||
1451 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.KOfMGateDefinitionImpl | ||
1452 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getKOfMGateDefinition() | ||
1453 | * @generated | ||
1454 | */ | ||
1455 | EClass KOF_MGATE_DEFINITION = eINSTANCE.getKOfMGateDefinition(); | ||
1456 | |||
1457 | /** | ||
1458 | * The meta object literal for the '<em><b>K</b></em>' attribute feature. | ||
1459 | * <!-- begin-user-doc --> | ||
1460 | * <!-- end-user-doc --> | ||
1461 | * @generated | ||
1462 | */ | ||
1463 | EAttribute KOF_MGATE_DEFINITION__K = eINSTANCE.getKOfMGateDefinition_K(); | ||
1464 | |||
1465 | /** | ||
1466 | * The meta object literal for the '<em><b>M</b></em>' attribute feature. | ||
1467 | * <!-- begin-user-doc --> | ||
1468 | * <!-- end-user-doc --> | ||
1469 | * @generated | ||
1470 | */ | ||
1471 | EAttribute KOF_MGATE_DEFINITION__M = eINSTANCE.getKOfMGateDefinition_M(); | ||
1472 | |||
1473 | /** | ||
1474 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentFaultTreeImpl <em>Component Fault Tree</em>}' class. | ||
1475 | * <!-- begin-user-doc --> | ||
1476 | * <!-- end-user-doc --> | ||
1477 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentFaultTreeImpl | ||
1478 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponentFaultTree() | ||
1479 | * @generated | ||
1480 | */ | ||
1481 | EClass COMPONENT_FAULT_TREE = eINSTANCE.getComponentFaultTree(); | ||
1482 | |||
1483 | /** | ||
1484 | * The meta object literal for the '<em><b>Components</b></em>' containment reference list feature. | ||
1485 | * <!-- begin-user-doc --> | ||
1486 | * <!-- end-user-doc --> | ||
1487 | * @generated | ||
1488 | */ | ||
1489 | EReference COMPONENT_FAULT_TREE__COMPONENTS = eINSTANCE.getComponentFaultTree_Components(); | ||
1490 | |||
1491 | /** | ||
1492 | * The meta object literal for the '<em><b>Top Event</b></em>' reference feature. | ||
1493 | * <!-- begin-user-doc --> | ||
1494 | * <!-- end-user-doc --> | ||
1495 | * @generated | ||
1496 | */ | ||
1497 | EReference COMPONENT_FAULT_TREE__TOP_EVENT = eINSTANCE.getComponentFaultTree_TopEvent(); | ||
1498 | |||
1499 | /** | ||
1500 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl <em>Component</em>}' class. | ||
1501 | * <!-- begin-user-doc --> | ||
1502 | * <!-- end-user-doc --> | ||
1503 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl | ||
1504 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponent() | ||
1505 | * @generated | ||
1506 | */ | ||
1507 | EClass COMPONENT = eINSTANCE.getComponent(); | ||
1508 | |||
1509 | /** | ||
1510 | * The meta object literal for the '<em><b>Inputs</b></em>' containment reference list feature. | ||
1511 | * <!-- begin-user-doc --> | ||
1512 | * <!-- end-user-doc --> | ||
1513 | * @generated | ||
1514 | */ | ||
1515 | EReference COMPONENT__INPUTS = eINSTANCE.getComponent_Inputs(); | ||
1516 | |||
1517 | /** | ||
1518 | * The meta object literal for the '<em><b>Outputs</b></em>' containment reference list feature. | ||
1519 | * <!-- begin-user-doc --> | ||
1520 | * <!-- end-user-doc --> | ||
1521 | * @generated | ||
1522 | */ | ||
1523 | EReference COMPONENT__OUTPUTS = eINSTANCE.getComponent_Outputs(); | ||
1524 | |||
1525 | /** | ||
1526 | * The meta object literal for the '<em><b>Component Definition</b></em>' reference feature. | ||
1527 | * <!-- begin-user-doc --> | ||
1528 | * <!-- end-user-doc --> | ||
1529 | * @generated | ||
1530 | */ | ||
1531 | EReference COMPONENT__COMPONENT_DEFINITION = eINSTANCE.getComponent_ComponentDefinition(); | ||
1532 | |||
1533 | /** | ||
1534 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1535 | * <!-- begin-user-doc --> | ||
1536 | * <!-- end-user-doc --> | ||
1537 | * @generated | ||
1538 | */ | ||
1539 | EAttribute COMPONENT__NAME = eINSTANCE.getComponent_Name(); | ||
1540 | |||
1541 | /** | ||
1542 | * The meta object literal for the '<em><b>Multiple Allowed</b></em>' attribute feature. | ||
1543 | * <!-- begin-user-doc --> | ||
1544 | * <!-- end-user-doc --> | ||
1545 | * @generated | ||
1546 | */ | ||
1547 | EAttribute COMPONENT__MULTIPLE_ALLOWED = eINSTANCE.getComponent_MultipleAllowed(); | ||
1548 | |||
1549 | /** | ||
1550 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl <em>Input</em>}' class. | ||
1551 | * <!-- begin-user-doc --> | ||
1552 | * <!-- end-user-doc --> | ||
1553 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl | ||
1554 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getInput() | ||
1555 | * @generated | ||
1556 | */ | ||
1557 | EClass INPUT = eINSTANCE.getInput(); | ||
1558 | |||
1559 | /** | ||
1560 | * The meta object literal for the '<em><b>Input Event</b></em>' reference feature. | ||
1561 | * <!-- begin-user-doc --> | ||
1562 | * <!-- end-user-doc --> | ||
1563 | * @generated | ||
1564 | */ | ||
1565 | EReference INPUT__INPUT_EVENT = eINSTANCE.getInput_InputEvent(); | ||
1566 | |||
1567 | /** | ||
1568 | * The meta object literal for the '<em><b>Component</b></em>' container reference feature. | ||
1569 | * <!-- begin-user-doc --> | ||
1570 | * <!-- end-user-doc --> | ||
1571 | * @generated | ||
1572 | */ | ||
1573 | EReference INPUT__COMPONENT = eINSTANCE.getInput_Component(); | ||
1574 | |||
1575 | /** | ||
1576 | * The meta object literal for the '<em><b>Incoming Connections</b></em>' containment reference list feature. | ||
1577 | * <!-- begin-user-doc --> | ||
1578 | * <!-- end-user-doc --> | ||
1579 | * @generated | ||
1580 | */ | ||
1581 | EReference INPUT__INCOMING_CONNECTIONS = eINSTANCE.getInput_IncomingConnections(); | ||
1582 | |||
1583 | /** | ||
1584 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl <em>Output</em>}' class. | ||
1585 | * <!-- begin-user-doc --> | ||
1586 | * <!-- end-user-doc --> | ||
1587 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl | ||
1588 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getOutput() | ||
1589 | * @generated | ||
1590 | */ | ||
1591 | EClass OUTPUT = eINSTANCE.getOutput(); | ||
1592 | |||
1593 | /** | ||
1594 | * The meta object literal for the '<em><b>Event Declaration</b></em>' reference feature. | ||
1595 | * <!-- begin-user-doc --> | ||
1596 | * <!-- end-user-doc --> | ||
1597 | * @generated | ||
1598 | */ | ||
1599 | EReference OUTPUT__EVENT_DECLARATION = eINSTANCE.getOutput_EventDeclaration(); | ||
1600 | |||
1601 | /** | ||
1602 | * The meta object literal for the '<em><b>Outgoing Connections</b></em>' reference list feature. | ||
1603 | * <!-- begin-user-doc --> | ||
1604 | * <!-- end-user-doc --> | ||
1605 | * @generated | ||
1606 | */ | ||
1607 | EReference OUTPUT__OUTGOING_CONNECTIONS = eINSTANCE.getOutput_OutgoingConnections(); | ||
1608 | |||
1609 | /** | ||
1610 | * The meta object literal for the '<em><b>Component</b></em>' container reference feature. | ||
1611 | * <!-- begin-user-doc --> | ||
1612 | * <!-- end-user-doc --> | ||
1613 | * @generated | ||
1614 | */ | ||
1615 | EReference OUTPUT__COMPONENT = eINSTANCE.getOutput_Component(); | ||
1616 | |||
1617 | /** | ||
1618 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl <em>Connection</em>}' class. | ||
1619 | * <!-- begin-user-doc --> | ||
1620 | * <!-- end-user-doc --> | ||
1621 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl | ||
1622 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getConnection() | ||
1623 | * @generated | ||
1624 | */ | ||
1625 | EClass CONNECTION = eINSTANCE.getConnection(); | ||
1626 | |||
1627 | /** | ||
1628 | * The meta object literal for the '<em><b>Input</b></em>' container reference feature. | ||
1629 | * <!-- begin-user-doc --> | ||
1630 | * <!-- end-user-doc --> | ||
1631 | * @generated | ||
1632 | */ | ||
1633 | EReference CONNECTION__INPUT = eINSTANCE.getConnection_Input(); | ||
1634 | |||
1635 | /** | ||
1636 | * The meta object literal for the '<em><b>Output</b></em>' reference feature. | ||
1637 | * <!-- begin-user-doc --> | ||
1638 | * <!-- end-user-doc --> | ||
1639 | * @generated | ||
1640 | */ | ||
1641 | EReference CONNECTION__OUTPUT = eINSTANCE.getConnection_Output(); | ||
1642 | |||
1643 | /** | ||
1644 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement <em>Modal Element</em>}' class. | ||
1645 | * <!-- begin-user-doc --> | ||
1646 | * <!-- end-user-doc --> | ||
1647 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement | ||
1648 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getModalElement() | ||
1649 | * @generated | ||
1650 | */ | ||
1651 | EClass MODAL_ELEMENT = eINSTANCE.getModalElement(); | ||
1652 | |||
1653 | /** | ||
1654 | * The meta object literal for the '<em><b>Exists</b></em>' attribute feature. | ||
1655 | * <!-- begin-user-doc --> | ||
1656 | * <!-- end-user-doc --> | ||
1657 | * @generated | ||
1658 | */ | ||
1659 | EAttribute MODAL_ELEMENT__EXISTS = eINSTANCE.getModalElement_Exists(); | ||
1660 | |||
1661 | /** | ||
1662 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality <em>Modality</em>}' enum. | ||
1663 | * <!-- begin-user-doc --> | ||
1664 | * <!-- end-user-doc --> | ||
1665 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality | ||
1666 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getModality() | ||
1667 | * @generated | ||
1668 | */ | ||
1669 | EEnum MODALITY = eINSTANCE.getModality(); | ||
1670 | |||
1671 | } | ||
1672 | |||
1673 | } //CftPackage | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Component.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Component.java deleted file mode 100644 index 9b1d0b24..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Component.java +++ /dev/null | |||
@@ -1,143 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Component</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getInputs <em>Inputs</em>}</li> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getOutputs <em>Outputs</em>}</li> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getComponentDefinition <em>Component Definition</em>}</li> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getName <em>Name</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#isMultipleAllowed <em>Multiple Allowed</em>}</li> | ||
21 | * </ul> | ||
22 | * | ||
23 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponent() | ||
24 | * @model | ||
25 | * @generated | ||
26 | */ | ||
27 | public interface Component extends ModalElement { | ||
28 | /** | ||
29 | * Returns the value of the '<em><b>Inputs</b></em>' containment reference list. | ||
30 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input}. | ||
31 | * It is bidirectional and its opposite is '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getComponent <em>Component</em>}'. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <p> | ||
34 | * If the meaning of the '<em>Inputs</em>' containment reference list isn't clear, | ||
35 | * there really should be more of a description here... | ||
36 | * </p> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @return the value of the '<em>Inputs</em>' containment reference list. | ||
39 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponent_Inputs() | ||
40 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getComponent | ||
41 | * @model opposite="component" containment="true" | ||
42 | * @generated | ||
43 | */ | ||
44 | EList<Input> getInputs(); | ||
45 | |||
46 | /** | ||
47 | * Returns the value of the '<em><b>Outputs</b></em>' containment reference list. | ||
48 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output}. | ||
49 | * It is bidirectional and its opposite is '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getComponent <em>Component</em>}'. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <p> | ||
52 | * If the meaning of the '<em>Outputs</em>' containment reference list isn't clear, | ||
53 | * there really should be more of a description here... | ||
54 | * </p> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @return the value of the '<em>Outputs</em>' containment reference list. | ||
57 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponent_Outputs() | ||
58 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getComponent | ||
59 | * @model opposite="component" containment="true" | ||
60 | * @generated | ||
61 | */ | ||
62 | EList<Output> getOutputs(); | ||
63 | |||
64 | /** | ||
65 | * Returns the value of the '<em><b>Component Definition</b></em>' reference. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <p> | ||
68 | * If the meaning of the '<em>Component Definition</em>' reference isn't clear, | ||
69 | * there really should be more of a description here... | ||
70 | * </p> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @return the value of the '<em>Component Definition</em>' reference. | ||
73 | * @see #setComponentDefinition(ComponentDefinition) | ||
74 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponent_ComponentDefinition() | ||
75 | * @model required="true" | ||
76 | * @generated | ||
77 | */ | ||
78 | ComponentDefinition getComponentDefinition(); | ||
79 | |||
80 | /** | ||
81 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getComponentDefinition <em>Component Definition</em>}' reference. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @param value the new value of the '<em>Component Definition</em>' reference. | ||
85 | * @see #getComponentDefinition() | ||
86 | * @generated | ||
87 | */ | ||
88 | void setComponentDefinition(ComponentDefinition value); | ||
89 | |||
90 | /** | ||
91 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <p> | ||
94 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
95 | * there really should be more of a description here... | ||
96 | * </p> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @return the value of the '<em>Name</em>' attribute. | ||
99 | * @see #setName(String) | ||
100 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponent_Name() | ||
101 | * @model | ||
102 | * @generated | ||
103 | */ | ||
104 | String getName(); | ||
105 | |||
106 | /** | ||
107 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getName <em>Name</em>}' attribute. | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @param value the new value of the '<em>Name</em>' attribute. | ||
111 | * @see #getName() | ||
112 | * @generated | ||
113 | */ | ||
114 | void setName(String value); | ||
115 | |||
116 | /** | ||
117 | * Returns the value of the '<em><b>Multiple Allowed</b></em>' attribute. | ||
118 | * The default value is <code>"false"</code>. | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <p> | ||
121 | * If the meaning of the '<em>Multiple Allowed</em>' attribute isn't clear, | ||
122 | * there really should be more of a description here... | ||
123 | * </p> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @return the value of the '<em>Multiple Allowed</em>' attribute. | ||
126 | * @see #setMultipleAllowed(boolean) | ||
127 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponent_MultipleAllowed() | ||
128 | * @model default="false" | ||
129 | * @generated | ||
130 | */ | ||
131 | boolean isMultipleAllowed(); | ||
132 | |||
133 | /** | ||
134 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#isMultipleAllowed <em>Multiple Allowed</em>}' attribute. | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @param value the new value of the '<em>Multiple Allowed</em>' attribute. | ||
138 | * @see #isMultipleAllowed() | ||
139 | * @generated | ||
140 | */ | ||
141 | void setMultipleAllowed(boolean value); | ||
142 | |||
143 | } // Component | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentDefinition.java deleted file mode 100644 index 82ab53fa..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentDefinition.java +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * A representation of the model object '<em><b>Component Definition</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * <p> | ||
15 | * The following features are supported: | ||
16 | * </p> | ||
17 | * <ul> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getInputEvents <em>Input Events</em>}</li> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getEventDefinitions <em>Event Definitions</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getOutputEvents <em>Output Events</em>}</li> | ||
21 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getName <em>Name</em>}</li> | ||
22 | * </ul> | ||
23 | * | ||
24 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponentDefinition() | ||
25 | * @model | ||
26 | * @generated | ||
27 | */ | ||
28 | public interface ComponentDefinition extends EObject { | ||
29 | /** | ||
30 | * Returns the value of the '<em><b>Input Events</b></em>' containment reference list. | ||
31 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent}. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <p> | ||
34 | * If the meaning of the '<em>Input Events</em>' containment reference list isn't clear, | ||
35 | * there really should be more of a description here... | ||
36 | * </p> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @return the value of the '<em>Input Events</em>' containment reference list. | ||
39 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponentDefinition_InputEvents() | ||
40 | * @model containment="true" | ||
41 | * @generated | ||
42 | */ | ||
43 | EList<InputEvent> getInputEvents(); | ||
44 | |||
45 | /** | ||
46 | * Returns the value of the '<em><b>Event Definitions</b></em>' containment reference list. | ||
47 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition}. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <p> | ||
50 | * If the meaning of the '<em>Event Definitions</em>' containment reference list isn't clear, | ||
51 | * there really should be more of a description here... | ||
52 | * </p> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @return the value of the '<em>Event Definitions</em>' containment reference list. | ||
55 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponentDefinition_EventDefinitions() | ||
56 | * @model containment="true" | ||
57 | * @generated | ||
58 | */ | ||
59 | EList<EventDefinition> getEventDefinitions(); | ||
60 | |||
61 | /** | ||
62 | * Returns the value of the '<em><b>Output Events</b></em>' reference list. | ||
63 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration}. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <p> | ||
66 | * If the meaning of the '<em>Output Events</em>' reference list isn't clear, | ||
67 | * there really should be more of a description here... | ||
68 | * </p> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @return the value of the '<em>Output Events</em>' reference list. | ||
71 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponentDefinition_OutputEvents() | ||
72 | * @model | ||
73 | * @generated | ||
74 | */ | ||
75 | EList<EventDeclaration> getOutputEvents(); | ||
76 | |||
77 | /** | ||
78 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <p> | ||
81 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
82 | * there really should be more of a description here... | ||
83 | * </p> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @return the value of the '<em>Name</em>' attribute. | ||
86 | * @see #setName(String) | ||
87 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponentDefinition_Name() | ||
88 | * @model | ||
89 | * @generated | ||
90 | */ | ||
91 | String getName(); | ||
92 | |||
93 | /** | ||
94 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getName <em>Name</em>}' attribute. | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @param value the new value of the '<em>Name</em>' attribute. | ||
98 | * @see #getName() | ||
99 | * @generated | ||
100 | */ | ||
101 | void setName(String value); | ||
102 | |||
103 | } // ComponentDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentFaultTree.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentFaultTree.java deleted file mode 100644 index 06554378..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentFaultTree.java +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * A representation of the model object '<em><b>Component Fault Tree</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * <p> | ||
15 | * The following features are supported: | ||
16 | * </p> | ||
17 | * <ul> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getComponents <em>Components</em>}</li> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getTopEvent <em>Top Event</em>}</li> | ||
20 | * </ul> | ||
21 | * | ||
22 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponentFaultTree() | ||
23 | * @model | ||
24 | * @generated | ||
25 | */ | ||
26 | public interface ComponentFaultTree extends EObject { | ||
27 | /** | ||
28 | * Returns the value of the '<em><b>Components</b></em>' containment reference list. | ||
29 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component}. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <p> | ||
32 | * If the meaning of the '<em>Components</em>' containment reference list isn't clear, | ||
33 | * there really should be more of a description here... | ||
34 | * </p> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @return the value of the '<em>Components</em>' containment reference list. | ||
37 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponentFaultTree_Components() | ||
38 | * @model containment="true" | ||
39 | * @generated | ||
40 | */ | ||
41 | EList<Component> getComponents(); | ||
42 | |||
43 | /** | ||
44 | * Returns the value of the '<em><b>Top Event</b></em>' reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <p> | ||
47 | * If the meaning of the '<em>Top Event</em>' reference isn't clear, | ||
48 | * there really should be more of a description here... | ||
49 | * </p> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @return the value of the '<em>Top Event</em>' reference. | ||
52 | * @see #setTopEvent(Output) | ||
53 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponentFaultTree_TopEvent() | ||
54 | * @model required="true" | ||
55 | * @generated | ||
56 | */ | ||
57 | Output getTopEvent(); | ||
58 | |||
59 | /** | ||
60 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getTopEvent <em>Top Event</em>}' reference. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @param value the new value of the '<em>Top Event</em>' reference. | ||
64 | * @see #getTopEvent() | ||
65 | * @generated | ||
66 | */ | ||
67 | void setTopEvent(Output value); | ||
68 | |||
69 | } // ComponentFaultTree | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Connection.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Connection.java deleted file mode 100644 index 9ca5b77f..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Connection.java +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | /** | ||
6 | * <!-- begin-user-doc --> | ||
7 | * A representation of the model object '<em><b>Connection</b></em>'. | ||
8 | * <!-- end-user-doc --> | ||
9 | * | ||
10 | * <p> | ||
11 | * The following features are supported: | ||
12 | * </p> | ||
13 | * <ul> | ||
14 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getInput <em>Input</em>}</li> | ||
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getOutput <em>Output</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getConnection() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface Connection extends ModalElement { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Input</b></em>' container reference. | ||
25 | * It is bidirectional and its opposite is '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIncomingConnections <em>Incoming Connections</em>}'. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <p> | ||
28 | * If the meaning of the '<em>Input</em>' container reference isn't clear, | ||
29 | * there really should be more of a description here... | ||
30 | * </p> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @return the value of the '<em>Input</em>' container reference. | ||
33 | * @see #setInput(Input) | ||
34 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getConnection_Input() | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIncomingConnections | ||
36 | * @model opposite="incomingConnections" required="true" transient="false" | ||
37 | * @generated | ||
38 | */ | ||
39 | Input getInput(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getInput <em>Input</em>}' container reference. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Input</em>' container reference. | ||
46 | * @see #getInput() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setInput(Input value); | ||
50 | |||
51 | /** | ||
52 | * Returns the value of the '<em><b>Output</b></em>' reference. | ||
53 | * It is bidirectional and its opposite is '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getOutgoingConnections <em>Outgoing Connections</em>}'. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <p> | ||
56 | * If the meaning of the '<em>Output</em>' reference isn't clear, | ||
57 | * there really should be more of a description here... | ||
58 | * </p> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @return the value of the '<em>Output</em>' reference. | ||
61 | * @see #setOutput(Output) | ||
62 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getConnection_Output() | ||
63 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getOutgoingConnections | ||
64 | * @model opposite="outgoingConnections" required="true" | ||
65 | * @generated | ||
66 | */ | ||
67 | Output getOutput(); | ||
68 | |||
69 | /** | ||
70 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getOutput <em>Output</em>}' reference. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @param value the new value of the '<em>Output</em>' reference. | ||
74 | * @see #getOutput() | ||
75 | * @generated | ||
76 | */ | ||
77 | void setOutput(Output value); | ||
78 | |||
79 | } // Connection | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDeclaration.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDeclaration.java deleted file mode 100644 index 28d49f06..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDeclaration.java +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Event Declaration</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration#getName <em>Name</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getEventDeclaration() | ||
20 | * @model abstract="true" | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface EventDeclaration extends EObject { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <p> | ||
28 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
29 | * there really should be more of a description here... | ||
30 | * </p> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @return the value of the '<em>Name</em>' attribute. | ||
33 | * @see #setName(String) | ||
34 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getEventDeclaration_Name() | ||
35 | * @model | ||
36 | * @generated | ||
37 | */ | ||
38 | String getName(); | ||
39 | |||
40 | /** | ||
41 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration#getName <em>Name</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @param value the new value of the '<em>Name</em>' attribute. | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | */ | ||
48 | void setName(String value); | ||
49 | |||
50 | } // EventDeclaration | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDefinition.java deleted file mode 100644 index d279ddfc..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDefinition.java +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Event Definition</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * | ||
12 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getEventDefinition() | ||
13 | * @model abstract="true" | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface EventDefinition extends EventDeclaration { | ||
17 | } // EventDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/GateDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/GateDefinition.java deleted file mode 100644 index 2173be5c..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/GateDefinition.java +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Gate Definition</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition#getInputEvents <em>Input Events</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getGateDefinition() | ||
20 | * @model abstract="true" | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface GateDefinition extends EventDefinition { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>Input Events</b></em>' reference list. | ||
26 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration}. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Input Events</em>' reference list isn't clear, | ||
30 | * there really should be more of a description here... | ||
31 | * </p> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @return the value of the '<em>Input Events</em>' reference list. | ||
34 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getGateDefinition_InputEvents() | ||
35 | * @model | ||
36 | * @generated | ||
37 | */ | ||
38 | EList<EventDeclaration> getInputEvents(); | ||
39 | |||
40 | } // GateDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Input.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Input.java deleted file mode 100644 index 7351d1bb..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Input.java +++ /dev/null | |||
@@ -1,100 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * A representation of the model object '<em><b>Input</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * <p> | ||
15 | * The following features are supported: | ||
16 | * </p> | ||
17 | * <ul> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getInputEvent <em>Input Event</em>}</li> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getComponent <em>Component</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIncomingConnections <em>Incoming Connections</em>}</li> | ||
21 | * </ul> | ||
22 | * | ||
23 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInput() | ||
24 | * @model | ||
25 | * @generated | ||
26 | */ | ||
27 | public interface Input extends EObject { | ||
28 | /** | ||
29 | * Returns the value of the '<em><b>Input Event</b></em>' reference. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <p> | ||
32 | * If the meaning of the '<em>Input Event</em>' reference isn't clear, | ||
33 | * there really should be more of a description here... | ||
34 | * </p> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @return the value of the '<em>Input Event</em>' reference. | ||
37 | * @see #setInputEvent(InputEvent) | ||
38 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInput_InputEvent() | ||
39 | * @model required="true" | ||
40 | * @generated | ||
41 | */ | ||
42 | InputEvent getInputEvent(); | ||
43 | |||
44 | /** | ||
45 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getInputEvent <em>Input Event</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @param value the new value of the '<em>Input Event</em>' reference. | ||
49 | * @see #getInputEvent() | ||
50 | * @generated | ||
51 | */ | ||
52 | void setInputEvent(InputEvent value); | ||
53 | |||
54 | /** | ||
55 | * Returns the value of the '<em><b>Component</b></em>' container reference. | ||
56 | * It is bidirectional and its opposite is '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getInputs <em>Inputs</em>}'. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <p> | ||
59 | * If the meaning of the '<em>Component</em>' container reference isn't clear, | ||
60 | * there really should be more of a description here... | ||
61 | * </p> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @return the value of the '<em>Component</em>' container reference. | ||
64 | * @see #setComponent(Component) | ||
65 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInput_Component() | ||
66 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getInputs | ||
67 | * @model opposite="inputs" required="true" transient="false" | ||
68 | * @generated | ||
69 | */ | ||
70 | Component getComponent(); | ||
71 | |||
72 | /** | ||
73 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getComponent <em>Component</em>}' container reference. | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @param value the new value of the '<em>Component</em>' container reference. | ||
77 | * @see #getComponent() | ||
78 | * @generated | ||
79 | */ | ||
80 | void setComponent(Component value); | ||
81 | |||
82 | /** | ||
83 | * Returns the value of the '<em><b>Incoming Connections</b></em>' containment reference list. | ||
84 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection}. | ||
85 | * It is bidirectional and its opposite is '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getInput <em>Input</em>}'. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <p> | ||
88 | * If the meaning of the '<em>Incoming Connections</em>' containment reference list isn't clear, | ||
89 | * there really should be more of a description here... | ||
90 | * </p> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @return the value of the '<em>Incoming Connections</em>' containment reference list. | ||
93 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInput_IncomingConnections() | ||
94 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getInput | ||
95 | * @model opposite="input" containment="true" | ||
96 | * @generated | ||
97 | */ | ||
98 | EList<Connection> getIncomingConnections(); | ||
99 | |||
100 | } // Input | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/InputEvent.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/InputEvent.java deleted file mode 100644 index 92721776..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/InputEvent.java +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Input Event</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent#isMultiple <em>Multiple</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInputEvent() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface InputEvent extends EventDeclaration { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Multiple</b></em>' attribute. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <p> | ||
27 | * If the meaning of the '<em>Multiple</em>' attribute isn't clear, | ||
28 | * there really should be more of a description here... | ||
29 | * </p> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @return the value of the '<em>Multiple</em>' attribute. | ||
32 | * @see #setMultiple(boolean) | ||
33 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInputEvent_Multiple() | ||
34 | * @model | ||
35 | * @generated | ||
36 | */ | ||
37 | boolean isMultiple(); | ||
38 | |||
39 | /** | ||
40 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent#isMultiple <em>Multiple</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @param value the new value of the '<em>Multiple</em>' attribute. | ||
44 | * @see #isMultiple() | ||
45 | * @generated | ||
46 | */ | ||
47 | void setMultiple(boolean value); | ||
48 | |||
49 | } // InputEvent | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/KOfMGateDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/KOfMGateDefinition.java deleted file mode 100644 index 6e1bc1c1..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/KOfMGateDefinition.java +++ /dev/null | |||
@@ -1,76 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>KOf MGate Definition</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getK <em>K</em>}</li> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getM <em>M</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getKOfMGateDefinition() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface KOfMGateDefinition extends GateDefinition { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>K</b></em>' attribute. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <p> | ||
28 | * If the meaning of the '<em>K</em>' attribute isn't clear, | ||
29 | * there really should be more of a description here... | ||
30 | * </p> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @return the value of the '<em>K</em>' attribute. | ||
33 | * @see #setK(int) | ||
34 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getKOfMGateDefinition_K() | ||
35 | * @model | ||
36 | * @generated | ||
37 | */ | ||
38 | int getK(); | ||
39 | |||
40 | /** | ||
41 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getK <em>K</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @param value the new value of the '<em>K</em>' attribute. | ||
45 | * @see #getK() | ||
46 | * @generated | ||
47 | */ | ||
48 | void setK(int value); | ||
49 | |||
50 | /** | ||
51 | * Returns the value of the '<em><b>M</b></em>' attribute. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <p> | ||
54 | * If the meaning of the '<em>M</em>' attribute isn't clear, | ||
55 | * there really should be more of a description here... | ||
56 | * </p> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @return the value of the '<em>M</em>' attribute. | ||
59 | * @see #setM(int) | ||
60 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getKOfMGateDefinition_M() | ||
61 | * @model | ||
62 | * @generated | ||
63 | */ | ||
64 | int getM(); | ||
65 | |||
66 | /** | ||
67 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getM <em>M</em>}' attribute. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @param value the new value of the '<em>M</em>' attribute. | ||
71 | * @see #getM() | ||
72 | * @generated | ||
73 | */ | ||
74 | void setM(int value); | ||
75 | |||
76 | } // KOfMGateDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ModalElement.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ModalElement.java deleted file mode 100644 index 9abb6558..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ModalElement.java +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Modal Element</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement#getExists <em>Exists</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getModalElement() | ||
20 | * @model interface="true" abstract="true" | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface ModalElement extends EObject { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>Exists</b></em>' attribute. | ||
26 | * The default value is <code>"MUST"</code>. | ||
27 | * The literals are from the enumeration {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality}. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Exists</em>' attribute isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Exists</em>' attribute. | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality | ||
36 | * @see #setExists(Modality) | ||
37 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getModalElement_Exists() | ||
38 | * @model default="MUST" | ||
39 | * @generated | ||
40 | */ | ||
41 | Modality getExists(); | ||
42 | |||
43 | /** | ||
44 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement#getExists <em>Exists</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @param value the new value of the '<em>Exists</em>' attribute. | ||
48 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality | ||
49 | * @see #getExists() | ||
50 | * @generated | ||
51 | */ | ||
52 | void setExists(Modality value); | ||
53 | |||
54 | } // ModalElement | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Modality.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Modality.java deleted file mode 100644 index 6b7dc1e4..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Modality.java +++ /dev/null | |||
@@ -1,244 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import java.util.Arrays; | ||
6 | import java.util.Collections; | ||
7 | import java.util.List; | ||
8 | |||
9 | import org.eclipse.emf.common.util.Enumerator; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * A representation of the literals of the enumeration '<em><b>Modality</b></em>', | ||
14 | * and utility methods for working with them. | ||
15 | * <!-- end-user-doc --> | ||
16 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getModality() | ||
17 | * @model | ||
18 | * @generated | ||
19 | */ | ||
20 | public enum Modality implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>MAY</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #MAY_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | MAY(0, "MAY", "MAY"), | ||
30 | |||
31 | /** | ||
32 | * The '<em><b>CURRENT</b></em>' literal object. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #CURRENT_VALUE | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | CURRENT(1, "CURRENT", "CURRENT"), | ||
40 | |||
41 | /** | ||
42 | * The '<em><b>MUST</b></em>' literal object. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #MUST_VALUE | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | MUST(2, "MUST", "MUST"); | ||
50 | |||
51 | /** | ||
52 | * The '<em><b>MAY</b></em>' literal value. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <p> | ||
55 | * If the meaning of '<em><b>MAY</b></em>' literal object isn't clear, | ||
56 | * there really should be more of a description here... | ||
57 | * </p> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #MAY | ||
60 | * @model | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | public static final int MAY_VALUE = 0; | ||
65 | |||
66 | /** | ||
67 | * The '<em><b>CURRENT</b></em>' literal value. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <p> | ||
70 | * If the meaning of '<em><b>CURRENT</b></em>' literal object isn't clear, | ||
71 | * there really should be more of a description here... | ||
72 | * </p> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @see #CURRENT | ||
75 | * @model | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | public static final int CURRENT_VALUE = 1; | ||
80 | |||
81 | /** | ||
82 | * The '<em><b>MUST</b></em>' literal value. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <p> | ||
85 | * If the meaning of '<em><b>MUST</b></em>' literal object isn't clear, | ||
86 | * there really should be more of a description here... | ||
87 | * </p> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @see #MUST | ||
90 | * @model | ||
91 | * @generated | ||
92 | * @ordered | ||
93 | */ | ||
94 | public static final int MUST_VALUE = 2; | ||
95 | |||
96 | /** | ||
97 | * An array of all the '<em><b>Modality</b></em>' enumerators. | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | private static final Modality[] VALUES_ARRAY = | ||
103 | new Modality[] { | ||
104 | MAY, | ||
105 | CURRENT, | ||
106 | MUST, | ||
107 | }; | ||
108 | |||
109 | /** | ||
110 | * A public read-only list of all the '<em><b>Modality</b></em>' enumerators. | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | public static final List<Modality> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
116 | |||
117 | /** | ||
118 | * Returns the '<em><b>Modality</b></em>' literal with the specified literal value. | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @param literal the literal. | ||
122 | * @return the matching enumerator or <code>null</code>. | ||
123 | * @generated | ||
124 | */ | ||
125 | public static Modality get(String literal) { | ||
126 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
127 | Modality result = VALUES_ARRAY[i]; | ||
128 | if (result.toString().equals(literal)) { | ||
129 | return result; | ||
130 | } | ||
131 | } | ||
132 | return null; | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * Returns the '<em><b>Modality</b></em>' literal with the specified name. | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @param name the name. | ||
140 | * @return the matching enumerator or <code>null</code>. | ||
141 | * @generated | ||
142 | */ | ||
143 | public static Modality getByName(String name) { | ||
144 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
145 | Modality result = VALUES_ARRAY[i]; | ||
146 | if (result.getName().equals(name)) { | ||
147 | return result; | ||
148 | } | ||
149 | } | ||
150 | return null; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * Returns the '<em><b>Modality</b></em>' literal with the specified integer value. | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @param value the integer value. | ||
158 | * @return the matching enumerator or <code>null</code>. | ||
159 | * @generated | ||
160 | */ | ||
161 | public static Modality get(int value) { | ||
162 | switch (value) { | ||
163 | case MAY_VALUE: return MAY; | ||
164 | case CURRENT_VALUE: return CURRENT; | ||
165 | case MUST_VALUE: return MUST; | ||
166 | } | ||
167 | return null; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | private final int value; | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | private final String name; | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | private final String literal; | ||
190 | |||
191 | /** | ||
192 | * Only this class can construct instances. | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | private Modality(int value, String name, String literal) { | ||
198 | this.value = value; | ||
199 | this.name = name; | ||
200 | this.literal = literal; | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public int getValue() { | ||
210 | return value; | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public String getName() { | ||
220 | return name; | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public String getLiteral() { | ||
230 | return literal; | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * Returns the literal value of the enumerator, which is its string representation. | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
239 | @Override | ||
240 | public String toString() { | ||
241 | return literal; | ||
242 | } | ||
243 | |||
244 | } //Modality | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/OrGateDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/OrGateDefinition.java deleted file mode 100644 index f62d6652..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/OrGateDefinition.java +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Or Gate Definition</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * | ||
12 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getOrGateDefinition() | ||
13 | * @model | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface OrGateDefinition extends GateDefinition { | ||
17 | } // OrGateDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Output.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Output.java deleted file mode 100644 index ffb61b8c..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Output.java +++ /dev/null | |||
@@ -1,100 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * A representation of the model object '<em><b>Output</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * <p> | ||
15 | * The following features are supported: | ||
16 | * </p> | ||
17 | * <ul> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getEventDeclaration <em>Event Declaration</em>}</li> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getOutgoingConnections <em>Outgoing Connections</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getComponent <em>Component</em>}</li> | ||
21 | * </ul> | ||
22 | * | ||
23 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getOutput() | ||
24 | * @model | ||
25 | * @generated | ||
26 | */ | ||
27 | public interface Output extends EObject { | ||
28 | /** | ||
29 | * Returns the value of the '<em><b>Event Declaration</b></em>' reference. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <p> | ||
32 | * If the meaning of the '<em>Event Declaration</em>' reference isn't clear, | ||
33 | * there really should be more of a description here... | ||
34 | * </p> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @return the value of the '<em>Event Declaration</em>' reference. | ||
37 | * @see #setEventDeclaration(EventDeclaration) | ||
38 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getOutput_EventDeclaration() | ||
39 | * @model required="true" | ||
40 | * @generated | ||
41 | */ | ||
42 | EventDeclaration getEventDeclaration(); | ||
43 | |||
44 | /** | ||
45 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getEventDeclaration <em>Event Declaration</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @param value the new value of the '<em>Event Declaration</em>' reference. | ||
49 | * @see #getEventDeclaration() | ||
50 | * @generated | ||
51 | */ | ||
52 | void setEventDeclaration(EventDeclaration value); | ||
53 | |||
54 | /** | ||
55 | * Returns the value of the '<em><b>Outgoing Connections</b></em>' reference list. | ||
56 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection}. | ||
57 | * It is bidirectional and its opposite is '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getOutput <em>Output</em>}'. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <p> | ||
60 | * If the meaning of the '<em>Outgoing Connections</em>' reference list isn't clear, | ||
61 | * there really should be more of a description here... | ||
62 | * </p> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @return the value of the '<em>Outgoing Connections</em>' reference list. | ||
65 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getOutput_OutgoingConnections() | ||
66 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getOutput | ||
67 | * @model opposite="output" | ||
68 | * @generated | ||
69 | */ | ||
70 | EList<Connection> getOutgoingConnections(); | ||
71 | |||
72 | /** | ||
73 | * Returns the value of the '<em><b>Component</b></em>' container reference. | ||
74 | * It is bidirectional and its opposite is '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getOutputs <em>Outputs</em>}'. | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <p> | ||
77 | * If the meaning of the '<em>Component</em>' container reference isn't clear, | ||
78 | * there really should be more of a description here... | ||
79 | * </p> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @return the value of the '<em>Component</em>' container reference. | ||
82 | * @see #setComponent(Component) | ||
83 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getOutput_Component() | ||
84 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getOutputs | ||
85 | * @model opposite="outputs" required="true" transient="false" | ||
86 | * @generated | ||
87 | */ | ||
88 | Component getComponent(); | ||
89 | |||
90 | /** | ||
91 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getComponent <em>Component</em>}' container reference. | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @param value the new value of the '<em>Component</em>' container reference. | ||
95 | * @see #getComponent() | ||
96 | * @generated | ||
97 | */ | ||
98 | void setComponent(Component value); | ||
99 | |||
100 | } // Output | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/AndGateDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/AndGateDefinitionImpl.java deleted file mode 100644 index fd716fc9..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/AndGateDefinitionImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>And Gate Definition</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class AndGateDefinitionImpl extends GateDefinitionImpl implements AndGateDefinition { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected AndGateDefinitionImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return CftPackage.Literals.AND_GATE_DEFINITION; | ||
35 | } | ||
36 | |||
37 | } //AndGateDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/BasicEventDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/BasicEventDefinitionImpl.java deleted file mode 100644 index 87fc5d70..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/BasicEventDefinitionImpl.java +++ /dev/null | |||
@@ -1,178 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
7 | |||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Basic Event Definition</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.BasicEventDefinitionImpl#getDistribution <em>Distribution</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class BasicEventDefinitionImpl extends EventDefinitionImpl implements BasicEventDefinition { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getDistribution() <em>Distribution</em>}' containment reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getDistribution() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected Distribution distribution; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected BasicEventDefinitionImpl() { | ||
48 | super(); | ||
49 | } | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | @Override | ||
57 | protected EClass eStaticClass() { | ||
58 | return CftPackage.Literals.BASIC_EVENT_DEFINITION; | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | public Distribution getDistribution() { | ||
68 | return distribution; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | public NotificationChain basicSetDistribution(Distribution newDistribution, NotificationChain msgs) { | ||
77 | Distribution oldDistribution = distribution; | ||
78 | distribution = newDistribution; | ||
79 | if (eNotificationRequired()) { | ||
80 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftPackage.BASIC_EVENT_DEFINITION__DISTRIBUTION, oldDistribution, newDistribution); | ||
81 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
82 | } | ||
83 | return msgs; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public void setDistribution(Distribution newDistribution) { | ||
93 | if (newDistribution != distribution) { | ||
94 | NotificationChain msgs = null; | ||
95 | if (distribution != null) | ||
96 | msgs = ((InternalEObject)distribution).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftPackage.BASIC_EVENT_DEFINITION__DISTRIBUTION, null, msgs); | ||
97 | if (newDistribution != null) | ||
98 | msgs = ((InternalEObject)newDistribution).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftPackage.BASIC_EVENT_DEFINITION__DISTRIBUTION, null, msgs); | ||
99 | msgs = basicSetDistribution(newDistribution, msgs); | ||
100 | if (msgs != null) msgs.dispatch(); | ||
101 | } | ||
102 | else if (eNotificationRequired()) | ||
103 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.BASIC_EVENT_DEFINITION__DISTRIBUTION, newDistribution, newDistribution)); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
113 | switch (featureID) { | ||
114 | case CftPackage.BASIC_EVENT_DEFINITION__DISTRIBUTION: | ||
115 | return basicSetDistribution(null, msgs); | ||
116 | } | ||
117 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
127 | switch (featureID) { | ||
128 | case CftPackage.BASIC_EVENT_DEFINITION__DISTRIBUTION: | ||
129 | return getDistribution(); | ||
130 | } | ||
131 | return super.eGet(featureID, resolve, coreType); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public void eSet(int featureID, Object newValue) { | ||
141 | switch (featureID) { | ||
142 | case CftPackage.BASIC_EVENT_DEFINITION__DISTRIBUTION: | ||
143 | setDistribution((Distribution)newValue); | ||
144 | return; | ||
145 | } | ||
146 | super.eSet(featureID, newValue); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public void eUnset(int featureID) { | ||
156 | switch (featureID) { | ||
157 | case CftPackage.BASIC_EVENT_DEFINITION__DISTRIBUTION: | ||
158 | setDistribution((Distribution)null); | ||
159 | return; | ||
160 | } | ||
161 | super.eUnset(featureID); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public boolean eIsSet(int featureID) { | ||
171 | switch (featureID) { | ||
172 | case CftPackage.BASIC_EVENT_DEFINITION__DISTRIBUTION: | ||
173 | return distribution != null; | ||
174 | } | ||
175 | return super.eIsSet(featureID); | ||
176 | } | ||
177 | |||
178 | } //BasicEventDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java deleted file mode 100644 index 6b07b541..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java +++ /dev/null | |||
@@ -1,268 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.*; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.EDataType; | ||
9 | import org.eclipse.emf.ecore.EObject; | ||
10 | import org.eclipse.emf.ecore.EPackage; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
13 | |||
14 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model <b>Factory</b>. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | public class CftFactoryImpl extends EFactoryImpl implements CftFactory { | ||
23 | /** | ||
24 | * Creates the default factory implementation. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | public static CftFactory init() { | ||
30 | try { | ||
31 | CftFactory theCftFactory = (CftFactory)EPackage.Registry.INSTANCE.getEFactory(CftPackage.eNS_URI); | ||
32 | if (theCftFactory != null) { | ||
33 | return theCftFactory; | ||
34 | } | ||
35 | } | ||
36 | catch (Exception exception) { | ||
37 | EcorePlugin.INSTANCE.log(exception); | ||
38 | } | ||
39 | return new CftFactoryImpl(); | ||
40 | } | ||
41 | |||
42 | /** | ||
43 | * Creates an instance of the factory. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | public CftFactoryImpl() { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | public EObject create(EClass eClass) { | ||
59 | switch (eClass.getClassifierID()) { | ||
60 | case CftPackage.COMPONENT_DEFINITION: return createComponentDefinition(); | ||
61 | case CftPackage.BASIC_EVENT_DEFINITION: return createBasicEventDefinition(); | ||
62 | case CftPackage.INPUT_EVENT: return createInputEvent(); | ||
63 | case CftPackage.AND_GATE_DEFINITION: return createAndGateDefinition(); | ||
64 | case CftPackage.OR_GATE_DEFINITION: return createOrGateDefinition(); | ||
65 | case CftPackage.KOF_MGATE_DEFINITION: return createKOfMGateDefinition(); | ||
66 | case CftPackage.COMPONENT_FAULT_TREE: return createComponentFaultTree(); | ||
67 | case CftPackage.COMPONENT: return createComponent(); | ||
68 | case CftPackage.INPUT: return createInput(); | ||
69 | case CftPackage.OUTPUT: return createOutput(); | ||
70 | case CftPackage.CONNECTION: return createConnection(); | ||
71 | default: | ||
72 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
73 | } | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | public Object createFromString(EDataType eDataType, String initialValue) { | ||
83 | switch (eDataType.getClassifierID()) { | ||
84 | case CftPackage.MODALITY: | ||
85 | return createModalityFromString(eDataType, initialValue); | ||
86 | default: | ||
87 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
88 | } | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public String convertToString(EDataType eDataType, Object instanceValue) { | ||
98 | switch (eDataType.getClassifierID()) { | ||
99 | case CftPackage.MODALITY: | ||
100 | return convertModalityToString(eDataType, instanceValue); | ||
101 | default: | ||
102 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
103 | } | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public ComponentDefinition createComponentDefinition() { | ||
113 | ComponentDefinitionImpl componentDefinition = new ComponentDefinitionImpl(); | ||
114 | return componentDefinition; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public BasicEventDefinition createBasicEventDefinition() { | ||
124 | BasicEventDefinitionImpl basicEventDefinition = new BasicEventDefinitionImpl(); | ||
125 | return basicEventDefinition; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public InputEvent createInputEvent() { | ||
135 | InputEventImpl inputEvent = new InputEventImpl(); | ||
136 | return inputEvent; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public AndGateDefinition createAndGateDefinition() { | ||
146 | AndGateDefinitionImpl andGateDefinition = new AndGateDefinitionImpl(); | ||
147 | return andGateDefinition; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public OrGateDefinition createOrGateDefinition() { | ||
157 | OrGateDefinitionImpl orGateDefinition = new OrGateDefinitionImpl(); | ||
158 | return orGateDefinition; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public KOfMGateDefinition createKOfMGateDefinition() { | ||
168 | KOfMGateDefinitionImpl kOfMGateDefinition = new KOfMGateDefinitionImpl(); | ||
169 | return kOfMGateDefinition; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public ComponentFaultTree createComponentFaultTree() { | ||
179 | ComponentFaultTreeImpl componentFaultTree = new ComponentFaultTreeImpl(); | ||
180 | return componentFaultTree; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | @Override | ||
189 | public Component createComponent() { | ||
190 | ComponentImpl component = new ComponentImpl(); | ||
191 | return component; | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | @Override | ||
200 | public Input createInput() { | ||
201 | InputImpl input = new InputImpl(); | ||
202 | return input; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | @Override | ||
211 | public Output createOutput() { | ||
212 | OutputImpl output = new OutputImpl(); | ||
213 | return output; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | @Override | ||
222 | public Connection createConnection() { | ||
223 | ConnectionImpl connection = new ConnectionImpl(); | ||
224 | return connection; | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | public Modality createModalityFromString(EDataType eDataType, String initialValue) { | ||
233 | Modality result = Modality.get(initialValue); | ||
234 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
235 | return result; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | public String convertModalityToString(EDataType eDataType, Object instanceValue) { | ||
244 | return instanceValue == null ? null : instanceValue.toString(); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public CftPackage getCftPackage() { | ||
254 | return (CftPackage)getEPackage(); | ||
255 | } | ||
256 | |||
257 | /** | ||
258 | * <!-- begin-user-doc --> | ||
259 | * <!-- end-user-doc --> | ||
260 | * @deprecated | ||
261 | * @generated | ||
262 | */ | ||
263 | @Deprecated | ||
264 | public static CftPackage getPackage() { | ||
265 | return CftPackage.eINSTANCE; | ||
266 | } | ||
267 | |||
268 | } //CftFactoryImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java deleted file mode 100644 index 2d70d7ce..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java +++ /dev/null | |||
@@ -1,834 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftFactory; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality; | ||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition; | ||
22 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | ||
23 | |||
24 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
25 | |||
26 | import org.eclipse.emf.ecore.EAttribute; | ||
27 | import org.eclipse.emf.ecore.EClass; | ||
28 | import org.eclipse.emf.ecore.EEnum; | ||
29 | import org.eclipse.emf.ecore.EPackage; | ||
30 | import org.eclipse.emf.ecore.EReference; | ||
31 | |||
32 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
33 | |||
34 | /** | ||
35 | * <!-- begin-user-doc --> | ||
36 | * An implementation of the model <b>Package</b>. | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public class CftPackageImpl extends EPackageImpl implements CftPackage { | ||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | private EClass componentDefinitionEClass = null; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | private EClass eventDefinitionEClass = null; | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | private EClass gateDefinitionEClass = null; | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | private EClass basicEventDefinitionEClass = null; | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | private EClass inputEventEClass = null; | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | private EClass eventDeclarationEClass = null; | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | private EClass andGateDefinitionEClass = null; | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | private EClass orGateDefinitionEClass = null; | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | private EClass kOfMGateDefinitionEClass = null; | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | private EClass componentFaultTreeEClass = null; | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | private EClass componentEClass = null; | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | private EClass inputEClass = null; | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | private EClass outputEClass = null; | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | private EClass connectionEClass = null; | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | private EClass modalElementEClass = null; | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | private EEnum modalityEEnum = null; | ||
152 | |||
153 | /** | ||
154 | * Creates an instance of the model <b>Package</b>, registered with | ||
155 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
156 | * package URI value. | ||
157 | * <p>Note: the correct way to create the package is via the static | ||
158 | * factory method {@link #init init()}, which also performs | ||
159 | * initialization of the package, or returns the registered package, | ||
160 | * if one already exists. | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
164 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#eNS_URI | ||
165 | * @see #init() | ||
166 | * @generated | ||
167 | */ | ||
168 | private CftPackageImpl() { | ||
169 | super(eNS_URI, CftFactory.eINSTANCE); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | private static boolean isInited = false; | ||
178 | |||
179 | /** | ||
180 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
181 | * | ||
182 | * <p>This method is used to initialize {@link CftPackage#eINSTANCE} when that field is accessed. | ||
183 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @see #eNS_URI | ||
187 | * @see #createPackageContents() | ||
188 | * @see #initializePackageContents() | ||
189 | * @generated | ||
190 | */ | ||
191 | public static CftPackage init() { | ||
192 | if (isInited) return (CftPackage)EPackage.Registry.INSTANCE.getEPackage(CftPackage.eNS_URI); | ||
193 | |||
194 | // Obtain or create and register package | ||
195 | Object registeredCftPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
196 | CftPackageImpl theCftPackage = registeredCftPackage instanceof CftPackageImpl ? (CftPackageImpl)registeredCftPackage : new CftPackageImpl(); | ||
197 | |||
198 | isInited = true; | ||
199 | |||
200 | // Initialize simple dependencies | ||
201 | FtPackage.eINSTANCE.eClass(); | ||
202 | |||
203 | // Create package meta-data objects | ||
204 | theCftPackage.createPackageContents(); | ||
205 | |||
206 | // Initialize created meta-data | ||
207 | theCftPackage.initializePackageContents(); | ||
208 | |||
209 | // Mark meta-data to indicate it can't be changed | ||
210 | theCftPackage.freeze(); | ||
211 | |||
212 | // Update the registry and return the package | ||
213 | EPackage.Registry.INSTANCE.put(CftPackage.eNS_URI, theCftPackage); | ||
214 | return theCftPackage; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | @Override | ||
223 | public EClass getComponentDefinition() { | ||
224 | return componentDefinitionEClass; | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public EReference getComponentDefinition_InputEvents() { | ||
234 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(0); | ||
235 | } | ||
236 | |||
237 | /** | ||
238 | * <!-- begin-user-doc --> | ||
239 | * <!-- end-user-doc --> | ||
240 | * @generated | ||
241 | */ | ||
242 | @Override | ||
243 | public EReference getComponentDefinition_EventDefinitions() { | ||
244 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(1); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public EReference getComponentDefinition_OutputEvents() { | ||
254 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(2); | ||
255 | } | ||
256 | |||
257 | /** | ||
258 | * <!-- begin-user-doc --> | ||
259 | * <!-- end-user-doc --> | ||
260 | * @generated | ||
261 | */ | ||
262 | @Override | ||
263 | public EAttribute getComponentDefinition_Name() { | ||
264 | return (EAttribute)componentDefinitionEClass.getEStructuralFeatures().get(3); | ||
265 | } | ||
266 | |||
267 | /** | ||
268 | * <!-- begin-user-doc --> | ||
269 | * <!-- end-user-doc --> | ||
270 | * @generated | ||
271 | */ | ||
272 | @Override | ||
273 | public EClass getEventDefinition() { | ||
274 | return eventDefinitionEClass; | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | @Override | ||
283 | public EClass getGateDefinition() { | ||
284 | return gateDefinitionEClass; | ||
285 | } | ||
286 | |||
287 | /** | ||
288 | * <!-- begin-user-doc --> | ||
289 | * <!-- end-user-doc --> | ||
290 | * @generated | ||
291 | */ | ||
292 | @Override | ||
293 | public EReference getGateDefinition_InputEvents() { | ||
294 | return (EReference)gateDefinitionEClass.getEStructuralFeatures().get(0); | ||
295 | } | ||
296 | |||
297 | /** | ||
298 | * <!-- begin-user-doc --> | ||
299 | * <!-- end-user-doc --> | ||
300 | * @generated | ||
301 | */ | ||
302 | @Override | ||
303 | public EClass getBasicEventDefinition() { | ||
304 | return basicEventDefinitionEClass; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public EReference getBasicEventDefinition_Distribution() { | ||
314 | return (EReference)basicEventDefinitionEClass.getEStructuralFeatures().get(0); | ||
315 | } | ||
316 | |||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | @Override | ||
323 | public EClass getInputEvent() { | ||
324 | return inputEventEClass; | ||
325 | } | ||
326 | |||
327 | /** | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | */ | ||
332 | @Override | ||
333 | public EAttribute getInputEvent_Multiple() { | ||
334 | return (EAttribute)inputEventEClass.getEStructuralFeatures().get(0); | ||
335 | } | ||
336 | |||
337 | /** | ||
338 | * <!-- begin-user-doc --> | ||
339 | * <!-- end-user-doc --> | ||
340 | * @generated | ||
341 | */ | ||
342 | @Override | ||
343 | public EClass getEventDeclaration() { | ||
344 | return eventDeclarationEClass; | ||
345 | } | ||
346 | |||
347 | /** | ||
348 | * <!-- begin-user-doc --> | ||
349 | * <!-- end-user-doc --> | ||
350 | * @generated | ||
351 | */ | ||
352 | @Override | ||
353 | public EAttribute getEventDeclaration_Name() { | ||
354 | return (EAttribute)eventDeclarationEClass.getEStructuralFeatures().get(0); | ||
355 | } | ||
356 | |||
357 | /** | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | */ | ||
362 | @Override | ||
363 | public EClass getAndGateDefinition() { | ||
364 | return andGateDefinitionEClass; | ||
365 | } | ||
366 | |||
367 | /** | ||
368 | * <!-- begin-user-doc --> | ||
369 | * <!-- end-user-doc --> | ||
370 | * @generated | ||
371 | */ | ||
372 | @Override | ||
373 | public EClass getOrGateDefinition() { | ||
374 | return orGateDefinitionEClass; | ||
375 | } | ||
376 | |||
377 | /** | ||
378 | * <!-- begin-user-doc --> | ||
379 | * <!-- end-user-doc --> | ||
380 | * @generated | ||
381 | */ | ||
382 | @Override | ||
383 | public EClass getKOfMGateDefinition() { | ||
384 | return kOfMGateDefinitionEClass; | ||
385 | } | ||
386 | |||
387 | /** | ||
388 | * <!-- begin-user-doc --> | ||
389 | * <!-- end-user-doc --> | ||
390 | * @generated | ||
391 | */ | ||
392 | @Override | ||
393 | public EAttribute getKOfMGateDefinition_K() { | ||
394 | return (EAttribute)kOfMGateDefinitionEClass.getEStructuralFeatures().get(0); | ||
395 | } | ||
396 | |||
397 | /** | ||
398 | * <!-- begin-user-doc --> | ||
399 | * <!-- end-user-doc --> | ||
400 | * @generated | ||
401 | */ | ||
402 | @Override | ||
403 | public EAttribute getKOfMGateDefinition_M() { | ||
404 | return (EAttribute)kOfMGateDefinitionEClass.getEStructuralFeatures().get(1); | ||
405 | } | ||
406 | |||
407 | /** | ||
408 | * <!-- begin-user-doc --> | ||
409 | * <!-- end-user-doc --> | ||
410 | * @generated | ||
411 | */ | ||
412 | @Override | ||
413 | public EClass getComponentFaultTree() { | ||
414 | return componentFaultTreeEClass; | ||
415 | } | ||
416 | |||
417 | /** | ||
418 | * <!-- begin-user-doc --> | ||
419 | * <!-- end-user-doc --> | ||
420 | * @generated | ||
421 | */ | ||
422 | @Override | ||
423 | public EReference getComponentFaultTree_Components() { | ||
424 | return (EReference)componentFaultTreeEClass.getEStructuralFeatures().get(0); | ||
425 | } | ||
426 | |||
427 | /** | ||
428 | * <!-- begin-user-doc --> | ||
429 | * <!-- end-user-doc --> | ||
430 | * @generated | ||
431 | */ | ||
432 | @Override | ||
433 | public EReference getComponentFaultTree_TopEvent() { | ||
434 | return (EReference)componentFaultTreeEClass.getEStructuralFeatures().get(1); | ||
435 | } | ||
436 | |||
437 | /** | ||
438 | * <!-- begin-user-doc --> | ||
439 | * <!-- end-user-doc --> | ||
440 | * @generated | ||
441 | */ | ||
442 | @Override | ||
443 | public EClass getComponent() { | ||
444 | return componentEClass; | ||
445 | } | ||
446 | |||
447 | /** | ||
448 | * <!-- begin-user-doc --> | ||
449 | * <!-- end-user-doc --> | ||
450 | * @generated | ||
451 | */ | ||
452 | @Override | ||
453 | public EReference getComponent_Inputs() { | ||
454 | return (EReference)componentEClass.getEStructuralFeatures().get(0); | ||
455 | } | ||
456 | |||
457 | /** | ||
458 | * <!-- begin-user-doc --> | ||
459 | * <!-- end-user-doc --> | ||
460 | * @generated | ||
461 | */ | ||
462 | @Override | ||
463 | public EReference getComponent_Outputs() { | ||
464 | return (EReference)componentEClass.getEStructuralFeatures().get(1); | ||
465 | } | ||
466 | |||
467 | /** | ||
468 | * <!-- begin-user-doc --> | ||
469 | * <!-- end-user-doc --> | ||
470 | * @generated | ||
471 | */ | ||
472 | @Override | ||
473 | public EReference getComponent_ComponentDefinition() { | ||
474 | return (EReference)componentEClass.getEStructuralFeatures().get(2); | ||
475 | } | ||
476 | |||
477 | /** | ||
478 | * <!-- begin-user-doc --> | ||
479 | * <!-- end-user-doc --> | ||
480 | * @generated | ||
481 | */ | ||
482 | @Override | ||
483 | public EAttribute getComponent_Name() { | ||
484 | return (EAttribute)componentEClass.getEStructuralFeatures().get(3); | ||
485 | } | ||
486 | |||
487 | /** | ||
488 | * <!-- begin-user-doc --> | ||
489 | * <!-- end-user-doc --> | ||
490 | * @generated | ||
491 | */ | ||
492 | @Override | ||
493 | public EAttribute getComponent_MultipleAllowed() { | ||
494 | return (EAttribute)componentEClass.getEStructuralFeatures().get(4); | ||
495 | } | ||
496 | |||
497 | /** | ||
498 | * <!-- begin-user-doc --> | ||
499 | * <!-- end-user-doc --> | ||
500 | * @generated | ||
501 | */ | ||
502 | @Override | ||
503 | public EClass getInput() { | ||
504 | return inputEClass; | ||
505 | } | ||
506 | |||
507 | /** | ||
508 | * <!-- begin-user-doc --> | ||
509 | * <!-- end-user-doc --> | ||
510 | * @generated | ||
511 | */ | ||
512 | @Override | ||
513 | public EReference getInput_InputEvent() { | ||
514 | return (EReference)inputEClass.getEStructuralFeatures().get(0); | ||
515 | } | ||
516 | |||
517 | /** | ||
518 | * <!-- begin-user-doc --> | ||
519 | * <!-- end-user-doc --> | ||
520 | * @generated | ||
521 | */ | ||
522 | @Override | ||
523 | public EReference getInput_Component() { | ||
524 | return (EReference)inputEClass.getEStructuralFeatures().get(1); | ||
525 | } | ||
526 | |||
527 | /** | ||
528 | * <!-- begin-user-doc --> | ||
529 | * <!-- end-user-doc --> | ||
530 | * @generated | ||
531 | */ | ||
532 | @Override | ||
533 | public EReference getInput_IncomingConnections() { | ||
534 | return (EReference)inputEClass.getEStructuralFeatures().get(2); | ||
535 | } | ||
536 | |||
537 | /** | ||
538 | * <!-- begin-user-doc --> | ||
539 | * <!-- end-user-doc --> | ||
540 | * @generated | ||
541 | */ | ||
542 | @Override | ||
543 | public EClass getOutput() { | ||
544 | return outputEClass; | ||
545 | } | ||
546 | |||
547 | /** | ||
548 | * <!-- begin-user-doc --> | ||
549 | * <!-- end-user-doc --> | ||
550 | * @generated | ||
551 | */ | ||
552 | @Override | ||
553 | public EReference getOutput_EventDeclaration() { | ||
554 | return (EReference)outputEClass.getEStructuralFeatures().get(0); | ||
555 | } | ||
556 | |||
557 | /** | ||
558 | * <!-- begin-user-doc --> | ||
559 | * <!-- end-user-doc --> | ||
560 | * @generated | ||
561 | */ | ||
562 | @Override | ||
563 | public EReference getOutput_OutgoingConnections() { | ||
564 | return (EReference)outputEClass.getEStructuralFeatures().get(1); | ||
565 | } | ||
566 | |||
567 | /** | ||
568 | * <!-- begin-user-doc --> | ||
569 | * <!-- end-user-doc --> | ||
570 | * @generated | ||
571 | */ | ||
572 | @Override | ||
573 | public EReference getOutput_Component() { | ||
574 | return (EReference)outputEClass.getEStructuralFeatures().get(2); | ||
575 | } | ||
576 | |||
577 | /** | ||
578 | * <!-- begin-user-doc --> | ||
579 | * <!-- end-user-doc --> | ||
580 | * @generated | ||
581 | */ | ||
582 | @Override | ||
583 | public EClass getConnection() { | ||
584 | return connectionEClass; | ||
585 | } | ||
586 | |||
587 | /** | ||
588 | * <!-- begin-user-doc --> | ||
589 | * <!-- end-user-doc --> | ||
590 | * @generated | ||
591 | */ | ||
592 | @Override | ||
593 | public EReference getConnection_Input() { | ||
594 | return (EReference)connectionEClass.getEStructuralFeatures().get(0); | ||
595 | } | ||
596 | |||
597 | /** | ||
598 | * <!-- begin-user-doc --> | ||
599 | * <!-- end-user-doc --> | ||
600 | * @generated | ||
601 | */ | ||
602 | @Override | ||
603 | public EReference getConnection_Output() { | ||
604 | return (EReference)connectionEClass.getEStructuralFeatures().get(1); | ||
605 | } | ||
606 | |||
607 | /** | ||
608 | * <!-- begin-user-doc --> | ||
609 | * <!-- end-user-doc --> | ||
610 | * @generated | ||
611 | */ | ||
612 | @Override | ||
613 | public EClass getModalElement() { | ||
614 | return modalElementEClass; | ||
615 | } | ||
616 | |||
617 | /** | ||
618 | * <!-- begin-user-doc --> | ||
619 | * <!-- end-user-doc --> | ||
620 | * @generated | ||
621 | */ | ||
622 | @Override | ||
623 | public EAttribute getModalElement_Exists() { | ||
624 | return (EAttribute)modalElementEClass.getEStructuralFeatures().get(0); | ||
625 | } | ||
626 | |||
627 | /** | ||
628 | * <!-- begin-user-doc --> | ||
629 | * <!-- end-user-doc --> | ||
630 | * @generated | ||
631 | */ | ||
632 | @Override | ||
633 | public EEnum getModality() { | ||
634 | return modalityEEnum; | ||
635 | } | ||
636 | |||
637 | /** | ||
638 | * <!-- begin-user-doc --> | ||
639 | * <!-- end-user-doc --> | ||
640 | * @generated | ||
641 | */ | ||
642 | @Override | ||
643 | public CftFactory getCftFactory() { | ||
644 | return (CftFactory)getEFactoryInstance(); | ||
645 | } | ||
646 | |||
647 | /** | ||
648 | * <!-- begin-user-doc --> | ||
649 | * <!-- end-user-doc --> | ||
650 | * @generated | ||
651 | */ | ||
652 | private boolean isCreated = false; | ||
653 | |||
654 | /** | ||
655 | * Creates the meta-model objects for the package. This method is | ||
656 | * guarded to have no affect on any invocation but its first. | ||
657 | * <!-- begin-user-doc --> | ||
658 | * <!-- end-user-doc --> | ||
659 | * @generated | ||
660 | */ | ||
661 | public void createPackageContents() { | ||
662 | if (isCreated) return; | ||
663 | isCreated = true; | ||
664 | |||
665 | // Create classes and their features | ||
666 | componentDefinitionEClass = createEClass(COMPONENT_DEFINITION); | ||
667 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__INPUT_EVENTS); | ||
668 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
669 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
670 | createEAttribute(componentDefinitionEClass, COMPONENT_DEFINITION__NAME); | ||
671 | |||
672 | eventDefinitionEClass = createEClass(EVENT_DEFINITION); | ||
673 | |||
674 | gateDefinitionEClass = createEClass(GATE_DEFINITION); | ||
675 | createEReference(gateDefinitionEClass, GATE_DEFINITION__INPUT_EVENTS); | ||
676 | |||
677 | basicEventDefinitionEClass = createEClass(BASIC_EVENT_DEFINITION); | ||
678 | createEReference(basicEventDefinitionEClass, BASIC_EVENT_DEFINITION__DISTRIBUTION); | ||
679 | |||
680 | inputEventEClass = createEClass(INPUT_EVENT); | ||
681 | createEAttribute(inputEventEClass, INPUT_EVENT__MULTIPLE); | ||
682 | |||
683 | eventDeclarationEClass = createEClass(EVENT_DECLARATION); | ||
684 | createEAttribute(eventDeclarationEClass, EVENT_DECLARATION__NAME); | ||
685 | |||
686 | andGateDefinitionEClass = createEClass(AND_GATE_DEFINITION); | ||
687 | |||
688 | orGateDefinitionEClass = createEClass(OR_GATE_DEFINITION); | ||
689 | |||
690 | kOfMGateDefinitionEClass = createEClass(KOF_MGATE_DEFINITION); | ||
691 | createEAttribute(kOfMGateDefinitionEClass, KOF_MGATE_DEFINITION__K); | ||
692 | createEAttribute(kOfMGateDefinitionEClass, KOF_MGATE_DEFINITION__M); | ||
693 | |||
694 | componentFaultTreeEClass = createEClass(COMPONENT_FAULT_TREE); | ||
695 | createEReference(componentFaultTreeEClass, COMPONENT_FAULT_TREE__COMPONENTS); | ||
696 | createEReference(componentFaultTreeEClass, COMPONENT_FAULT_TREE__TOP_EVENT); | ||
697 | |||
698 | componentEClass = createEClass(COMPONENT); | ||
699 | createEReference(componentEClass, COMPONENT__INPUTS); | ||
700 | createEReference(componentEClass, COMPONENT__OUTPUTS); | ||
701 | createEReference(componentEClass, COMPONENT__COMPONENT_DEFINITION); | ||
702 | createEAttribute(componentEClass, COMPONENT__NAME); | ||
703 | createEAttribute(componentEClass, COMPONENT__MULTIPLE_ALLOWED); | ||
704 | |||
705 | inputEClass = createEClass(INPUT); | ||
706 | createEReference(inputEClass, INPUT__INPUT_EVENT); | ||
707 | createEReference(inputEClass, INPUT__COMPONENT); | ||
708 | createEReference(inputEClass, INPUT__INCOMING_CONNECTIONS); | ||
709 | |||
710 | outputEClass = createEClass(OUTPUT); | ||
711 | createEReference(outputEClass, OUTPUT__EVENT_DECLARATION); | ||
712 | createEReference(outputEClass, OUTPUT__OUTGOING_CONNECTIONS); | ||
713 | createEReference(outputEClass, OUTPUT__COMPONENT); | ||
714 | |||
715 | connectionEClass = createEClass(CONNECTION); | ||
716 | createEReference(connectionEClass, CONNECTION__INPUT); | ||
717 | createEReference(connectionEClass, CONNECTION__OUTPUT); | ||
718 | |||
719 | modalElementEClass = createEClass(MODAL_ELEMENT); | ||
720 | createEAttribute(modalElementEClass, MODAL_ELEMENT__EXISTS); | ||
721 | |||
722 | // Create enums | ||
723 | modalityEEnum = createEEnum(MODALITY); | ||
724 | } | ||
725 | |||
726 | /** | ||
727 | * <!-- begin-user-doc --> | ||
728 | * <!-- end-user-doc --> | ||
729 | * @generated | ||
730 | */ | ||
731 | private boolean isInitialized = false; | ||
732 | |||
733 | /** | ||
734 | * Complete the initialization of the package and its meta-model. This | ||
735 | * method is guarded to have no affect on any invocation but its first. | ||
736 | * <!-- begin-user-doc --> | ||
737 | * <!-- end-user-doc --> | ||
738 | * @generated | ||
739 | */ | ||
740 | public void initializePackageContents() { | ||
741 | if (isInitialized) return; | ||
742 | isInitialized = true; | ||
743 | |||
744 | // Initialize package | ||
745 | setName(eNAME); | ||
746 | setNsPrefix(eNS_PREFIX); | ||
747 | setNsURI(eNS_URI); | ||
748 | |||
749 | // Obtain other dependent packages | ||
750 | FtPackage theFtPackage = (FtPackage)EPackage.Registry.INSTANCE.getEPackage(FtPackage.eNS_URI); | ||
751 | |||
752 | // Create type parameters | ||
753 | |||
754 | // Set bounds for type parameters | ||
755 | |||
756 | // Add supertypes to classes | ||
757 | eventDefinitionEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
758 | gateDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
759 | basicEventDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
760 | inputEventEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
761 | andGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | ||
762 | orGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | ||
763 | kOfMGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | ||
764 | componentEClass.getESuperTypes().add(this.getModalElement()); | ||
765 | connectionEClass.getESuperTypes().add(this.getModalElement()); | ||
766 | |||
767 | // Initialize classes, features, and operations; add parameters | ||
768 | initEClass(componentDefinitionEClass, ComponentDefinition.class, "ComponentDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
769 | initEReference(getComponentDefinition_InputEvents(), this.getInputEvent(), null, "inputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
770 | initEReference(getComponentDefinition_EventDefinitions(), this.getEventDefinition(), null, "eventDefinitions", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
771 | initEReference(getComponentDefinition_OutputEvents(), this.getEventDeclaration(), null, "outputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
772 | initEAttribute(getComponentDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
773 | |||
774 | initEClass(eventDefinitionEClass, EventDefinition.class, "EventDefinition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
775 | |||
776 | initEClass(gateDefinitionEClass, GateDefinition.class, "GateDefinition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
777 | initEReference(getGateDefinition_InputEvents(), this.getEventDeclaration(), null, "inputEvents", null, 0, -1, GateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
778 | |||
779 | initEClass(basicEventDefinitionEClass, BasicEventDefinition.class, "BasicEventDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
780 | initEReference(getBasicEventDefinition_Distribution(), theFtPackage.getDistribution(), null, "distribution", null, 1, 1, BasicEventDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
781 | |||
782 | initEClass(inputEventEClass, InputEvent.class, "InputEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
783 | initEAttribute(getInputEvent_Multiple(), ecorePackage.getEBoolean(), "multiple", null, 0, 1, InputEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
784 | |||
785 | initEClass(eventDeclarationEClass, EventDeclaration.class, "EventDeclaration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
786 | initEAttribute(getEventDeclaration_Name(), ecorePackage.getEString(), "name", null, 0, 1, EventDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
787 | |||
788 | initEClass(andGateDefinitionEClass, AndGateDefinition.class, "AndGateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
789 | |||
790 | initEClass(orGateDefinitionEClass, OrGateDefinition.class, "OrGateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
791 | |||
792 | initEClass(kOfMGateDefinitionEClass, KOfMGateDefinition.class, "KOfMGateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
793 | initEAttribute(getKOfMGateDefinition_K(), ecorePackage.getEInt(), "k", null, 0, 1, KOfMGateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
794 | initEAttribute(getKOfMGateDefinition_M(), ecorePackage.getEInt(), "m", null, 0, 1, KOfMGateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
795 | |||
796 | initEClass(componentFaultTreeEClass, ComponentFaultTree.class, "ComponentFaultTree", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
797 | initEReference(getComponentFaultTree_Components(), this.getComponent(), null, "components", null, 0, -1, ComponentFaultTree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
798 | initEReference(getComponentFaultTree_TopEvent(), this.getOutput(), null, "topEvent", null, 1, 1, ComponentFaultTree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
799 | |||
800 | initEClass(componentEClass, Component.class, "Component", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
801 | initEReference(getComponent_Inputs(), this.getInput(), this.getInput_Component(), "inputs", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
802 | initEReference(getComponent_Outputs(), this.getOutput(), this.getOutput_Component(), "outputs", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
803 | initEReference(getComponent_ComponentDefinition(), this.getComponentDefinition(), null, "componentDefinition", null, 1, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
804 | initEAttribute(getComponent_Name(), ecorePackage.getEString(), "name", null, 0, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
805 | initEAttribute(getComponent_MultipleAllowed(), ecorePackage.getEBoolean(), "multipleAllowed", "false", 0, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
806 | |||
807 | initEClass(inputEClass, Input.class, "Input", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
808 | initEReference(getInput_InputEvent(), this.getInputEvent(), null, "inputEvent", null, 1, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
809 | initEReference(getInput_Component(), this.getComponent(), this.getComponent_Inputs(), "component", null, 1, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
810 | initEReference(getInput_IncomingConnections(), this.getConnection(), this.getConnection_Input(), "incomingConnections", null, 0, -1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
811 | |||
812 | initEClass(outputEClass, Output.class, "Output", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
813 | initEReference(getOutput_EventDeclaration(), this.getEventDeclaration(), null, "eventDeclaration", null, 1, 1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
814 | initEReference(getOutput_OutgoingConnections(), this.getConnection(), this.getConnection_Output(), "outgoingConnections", null, 0, -1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
815 | initEReference(getOutput_Component(), this.getComponent(), this.getComponent_Outputs(), "component", null, 1, 1, Output.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
816 | |||
817 | initEClass(connectionEClass, Connection.class, "Connection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
818 | initEReference(getConnection_Input(), this.getInput(), this.getInput_IncomingConnections(), "input", null, 1, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
819 | initEReference(getConnection_Output(), this.getOutput(), this.getOutput_OutgoingConnections(), "output", null, 1, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
820 | |||
821 | initEClass(modalElementEClass, ModalElement.class, "ModalElement", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
822 | initEAttribute(getModalElement_Exists(), this.getModality(), "exists", "MUST", 0, 1, ModalElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
823 | |||
824 | // Initialize enums and add enum literals | ||
825 | initEEnum(modalityEEnum, Modality.class, "Modality"); | ||
826 | addEEnumLiteral(modalityEEnum, Modality.MAY); | ||
827 | addEEnumLiteral(modalityEEnum, Modality.CURRENT); | ||
828 | addEEnumLiteral(modalityEEnum, Modality.MUST); | ||
829 | |||
830 | // Create resource | ||
831 | createResource(eNS_URI); | ||
832 | } | ||
833 | |||
834 | } //CftPackageImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentDefinitionImpl.java deleted file mode 100644 index 3b79fb0c..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentDefinitionImpl.java +++ /dev/null | |||
@@ -1,299 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; | ||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
24 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
25 | import org.eclipse.emf.ecore.util.InternalEList; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Component Definition</b></em>'. | ||
30 | * <!-- end-user-doc --> | ||
31 | * <p> | ||
32 | * The following features are implemented: | ||
33 | * </p> | ||
34 | * <ul> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl#getInputEvents <em>Input Events</em>}</li> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl#getEventDefinitions <em>Event Definitions</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl#getOutputEvents <em>Output Events</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl#getName <em>Name</em>}</li> | ||
39 | * </ul> | ||
40 | * | ||
41 | * @generated | ||
42 | */ | ||
43 | public class ComponentDefinitionImpl extends MinimalEObjectImpl.Container implements ComponentDefinition { | ||
44 | /** | ||
45 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' containment reference list. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getInputEvents() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected EList<InputEvent> inputEvents; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #getEventDefinitions() <em>Event Definitions</em>}' containment reference list. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #getEventDefinitions() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected EList<EventDefinition> eventDefinitions; | ||
63 | |||
64 | /** | ||
65 | * The cached value of the '{@link #getOutputEvents() <em>Output Events</em>}' reference list. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #getOutputEvents() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected EList<EventDeclaration> outputEvents; | ||
73 | |||
74 | /** | ||
75 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @see #getName() | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | protected static final String NAME_EDEFAULT = null; | ||
83 | |||
84 | /** | ||
85 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @see #getName() | ||
89 | * @generated | ||
90 | * @ordered | ||
91 | */ | ||
92 | protected String name = NAME_EDEFAULT; | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | protected ComponentDefinitionImpl() { | ||
100 | super(); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | protected EClass eStaticClass() { | ||
110 | return CftPackage.Literals.COMPONENT_DEFINITION; | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public EList<InputEvent> getInputEvents() { | ||
120 | if (inputEvents == null) { | ||
121 | inputEvents = new EObjectContainmentEList<InputEvent>(InputEvent.class, this, CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS); | ||
122 | } | ||
123 | return inputEvents; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public EList<EventDefinition> getEventDefinitions() { | ||
133 | if (eventDefinitions == null) { | ||
134 | eventDefinitions = new EObjectContainmentEList<EventDefinition>(EventDefinition.class, this, CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
135 | } | ||
136 | return eventDefinitions; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public EList<EventDeclaration> getOutputEvents() { | ||
146 | if (outputEvents == null) { | ||
147 | outputEvents = new EObjectResolvingEList<EventDeclaration>(EventDeclaration.class, this, CftPackage.COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
148 | } | ||
149 | return outputEvents; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | @Override | ||
158 | public String getName() { | ||
159 | return name; | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public void setName(String newName) { | ||
169 | String oldName = name; | ||
170 | name = newName; | ||
171 | if (eNotificationRequired()) | ||
172 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT_DEFINITION__NAME, oldName, name)); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
182 | switch (featureID) { | ||
183 | case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
184 | return ((InternalEList<?>)getInputEvents()).basicRemove(otherEnd, msgs); | ||
185 | case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
186 | return ((InternalEList<?>)getEventDefinitions()).basicRemove(otherEnd, msgs); | ||
187 | } | ||
188 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | */ | ||
196 | @Override | ||
197 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
198 | switch (featureID) { | ||
199 | case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
200 | return getInputEvents(); | ||
201 | case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
202 | return getEventDefinitions(); | ||
203 | case CftPackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
204 | return getOutputEvents(); | ||
205 | case CftPackage.COMPONENT_DEFINITION__NAME: | ||
206 | return getName(); | ||
207 | } | ||
208 | return super.eGet(featureID, resolve, coreType); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @SuppressWarnings("unchecked") | ||
217 | @Override | ||
218 | public void eSet(int featureID, Object newValue) { | ||
219 | switch (featureID) { | ||
220 | case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
221 | getInputEvents().clear(); | ||
222 | getInputEvents().addAll((Collection<? extends InputEvent>)newValue); | ||
223 | return; | ||
224 | case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
225 | getEventDefinitions().clear(); | ||
226 | getEventDefinitions().addAll((Collection<? extends EventDefinition>)newValue); | ||
227 | return; | ||
228 | case CftPackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
229 | getOutputEvents().clear(); | ||
230 | getOutputEvents().addAll((Collection<? extends EventDeclaration>)newValue); | ||
231 | return; | ||
232 | case CftPackage.COMPONENT_DEFINITION__NAME: | ||
233 | setName((String)newValue); | ||
234 | return; | ||
235 | } | ||
236 | super.eSet(featureID, newValue); | ||
237 | } | ||
238 | |||
239 | /** | ||
240 | * <!-- begin-user-doc --> | ||
241 | * <!-- end-user-doc --> | ||
242 | * @generated | ||
243 | */ | ||
244 | @Override | ||
245 | public void eUnset(int featureID) { | ||
246 | switch (featureID) { | ||
247 | case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
248 | getInputEvents().clear(); | ||
249 | return; | ||
250 | case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
251 | getEventDefinitions().clear(); | ||
252 | return; | ||
253 | case CftPackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
254 | getOutputEvents().clear(); | ||
255 | return; | ||
256 | case CftPackage.COMPONENT_DEFINITION__NAME: | ||
257 | setName(NAME_EDEFAULT); | ||
258 | return; | ||
259 | } | ||
260 | super.eUnset(featureID); | ||
261 | } | ||
262 | |||
263 | /** | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @generated | ||
267 | */ | ||
268 | @Override | ||
269 | public boolean eIsSet(int featureID) { | ||
270 | switch (featureID) { | ||
271 | case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
272 | return inputEvents != null && !inputEvents.isEmpty(); | ||
273 | case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
274 | return eventDefinitions != null && !eventDefinitions.isEmpty(); | ||
275 | case CftPackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
276 | return outputEvents != null && !outputEvents.isEmpty(); | ||
277 | case CftPackage.COMPONENT_DEFINITION__NAME: | ||
278 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
279 | } | ||
280 | return super.eIsSet(featureID); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public String toString() { | ||
290 | if (eIsProxy()) return super.toString(); | ||
291 | |||
292 | StringBuilder result = new StringBuilder(super.toString()); | ||
293 | result.append(" (name: "); | ||
294 | result.append(name); | ||
295 | result.append(')'); | ||
296 | return result.toString(); | ||
297 | } | ||
298 | |||
299 | } //ComponentDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentFaultTreeImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentFaultTreeImpl.java deleted file mode 100644 index b84b6436..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentFaultTreeImpl.java +++ /dev/null | |||
@@ -1,218 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
24 | import org.eclipse.emf.ecore.util.InternalEList; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Component Fault Tree</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentFaultTreeImpl#getComponents <em>Components</em>}</li> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentFaultTreeImpl#getTopEvent <em>Top Event</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class ComponentFaultTreeImpl extends MinimalEObjectImpl.Container implements ComponentFaultTree { | ||
41 | /** | ||
42 | * The cached value of the '{@link #getComponents() <em>Components</em>}' containment reference list. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getComponents() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected EList<Component> components; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getTopEvent() <em>Top Event</em>}' reference. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getTopEvent() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected Output topEvent; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | protected ComponentFaultTreeImpl() { | ||
67 | super(); | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | protected EClass eStaticClass() { | ||
77 | return CftPackage.Literals.COMPONENT_FAULT_TREE; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | @Override | ||
86 | public EList<Component> getComponents() { | ||
87 | if (components == null) { | ||
88 | components = new EObjectContainmentEList<Component>(Component.class, this, CftPackage.COMPONENT_FAULT_TREE__COMPONENTS); | ||
89 | } | ||
90 | return components; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public Output getTopEvent() { | ||
100 | if (topEvent != null && topEvent.eIsProxy()) { | ||
101 | InternalEObject oldTopEvent = (InternalEObject)topEvent; | ||
102 | topEvent = (Output)eResolveProxy(oldTopEvent); | ||
103 | if (topEvent != oldTopEvent) { | ||
104 | if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.COMPONENT_FAULT_TREE__TOP_EVENT, oldTopEvent, topEvent)); | ||
106 | } | ||
107 | } | ||
108 | return topEvent; | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | public Output basicGetTopEvent() { | ||
117 | return topEvent; | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public void setTopEvent(Output newTopEvent) { | ||
127 | Output oldTopEvent = topEvent; | ||
128 | topEvent = newTopEvent; | ||
129 | if (eNotificationRequired()) | ||
130 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT_FAULT_TREE__TOP_EVENT, oldTopEvent, topEvent)); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
140 | switch (featureID) { | ||
141 | case CftPackage.COMPONENT_FAULT_TREE__COMPONENTS: | ||
142 | return ((InternalEList<?>)getComponents()).basicRemove(otherEnd, msgs); | ||
143 | } | ||
144 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
154 | switch (featureID) { | ||
155 | case CftPackage.COMPONENT_FAULT_TREE__COMPONENTS: | ||
156 | return getComponents(); | ||
157 | case CftPackage.COMPONENT_FAULT_TREE__TOP_EVENT: | ||
158 | if (resolve) return getTopEvent(); | ||
159 | return basicGetTopEvent(); | ||
160 | } | ||
161 | return super.eGet(featureID, resolve, coreType); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @SuppressWarnings("unchecked") | ||
170 | @Override | ||
171 | public void eSet(int featureID, Object newValue) { | ||
172 | switch (featureID) { | ||
173 | case CftPackage.COMPONENT_FAULT_TREE__COMPONENTS: | ||
174 | getComponents().clear(); | ||
175 | getComponents().addAll((Collection<? extends Component>)newValue); | ||
176 | return; | ||
177 | case CftPackage.COMPONENT_FAULT_TREE__TOP_EVENT: | ||
178 | setTopEvent((Output)newValue); | ||
179 | return; | ||
180 | } | ||
181 | super.eSet(featureID, newValue); | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | @Override | ||
190 | public void eUnset(int featureID) { | ||
191 | switch (featureID) { | ||
192 | case CftPackage.COMPONENT_FAULT_TREE__COMPONENTS: | ||
193 | getComponents().clear(); | ||
194 | return; | ||
195 | case CftPackage.COMPONENT_FAULT_TREE__TOP_EVENT: | ||
196 | setTopEvent((Output)null); | ||
197 | return; | ||
198 | } | ||
199 | super.eUnset(featureID); | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @generated | ||
206 | */ | ||
207 | @Override | ||
208 | public boolean eIsSet(int featureID) { | ||
209 | switch (featureID) { | ||
210 | case CftPackage.COMPONENT_FAULT_TREE__COMPONENTS: | ||
211 | return components != null && !components.isEmpty(); | ||
212 | case CftPackage.COMPONENT_FAULT_TREE__TOP_EVENT: | ||
213 | return topEvent != null; | ||
214 | } | ||
215 | return super.eIsSet(featureID); | ||
216 | } | ||
217 | |||
218 | } //ComponentFaultTreeImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java deleted file mode 100644 index dcbf7660..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java +++ /dev/null | |||
@@ -1,456 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | ||
11 | |||
12 | import java.util.Collection; | ||
13 | |||
14 | import org.eclipse.emf.common.notify.Notification; | ||
15 | import org.eclipse.emf.common.notify.NotificationChain; | ||
16 | |||
17 | import org.eclipse.emf.common.util.EList; | ||
18 | |||
19 | import org.eclipse.emf.ecore.EClass; | ||
20 | import org.eclipse.emf.ecore.InternalEObject; | ||
21 | |||
22 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
23 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
24 | |||
25 | import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; | ||
26 | import org.eclipse.emf.ecore.util.InternalEList; | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * An implementation of the model object '<em><b>Component</b></em>'. | ||
31 | * <!-- end-user-doc --> | ||
32 | * <p> | ||
33 | * The following features are implemented: | ||
34 | * </p> | ||
35 | * <ul> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getExists <em>Exists</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getInputs <em>Inputs</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getOutputs <em>Outputs</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getComponentDefinition <em>Component Definition</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getName <em>Name</em>}</li> | ||
41 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#isMultipleAllowed <em>Multiple Allowed</em>}</li> | ||
42 | * </ul> | ||
43 | * | ||
44 | * @generated | ||
45 | */ | ||
46 | public class ComponentImpl extends MinimalEObjectImpl.Container implements Component { | ||
47 | /** | ||
48 | * The default value of the '{@link #getExists() <em>Exists</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getExists() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final Modality EXISTS_EDEFAULT = Modality.MUST; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getExists() <em>Exists</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getExists() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected Modality exists = EXISTS_EDEFAULT; | ||
66 | |||
67 | /** | ||
68 | * The cached value of the '{@link #getInputs() <em>Inputs</em>}' containment reference list. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getInputs() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected EList<Input> inputs; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #getOutputs() <em>Outputs</em>}' containment reference list. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #getOutputs() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected EList<Output> outputs; | ||
86 | |||
87 | /** | ||
88 | * The cached value of the '{@link #getComponentDefinition() <em>Component Definition</em>}' reference. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getComponentDefinition() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected ComponentDefinition componentDefinition; | ||
96 | |||
97 | /** | ||
98 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @see #getName() | ||
102 | * @generated | ||
103 | * @ordered | ||
104 | */ | ||
105 | protected static final String NAME_EDEFAULT = null; | ||
106 | |||
107 | /** | ||
108 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @see #getName() | ||
112 | * @generated | ||
113 | * @ordered | ||
114 | */ | ||
115 | protected String name = NAME_EDEFAULT; | ||
116 | |||
117 | /** | ||
118 | * The default value of the '{@link #isMultipleAllowed() <em>Multiple Allowed</em>}' attribute. | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @see #isMultipleAllowed() | ||
122 | * @generated | ||
123 | * @ordered | ||
124 | */ | ||
125 | protected static final boolean MULTIPLE_ALLOWED_EDEFAULT = false; | ||
126 | |||
127 | /** | ||
128 | * The cached value of the '{@link #isMultipleAllowed() <em>Multiple Allowed</em>}' attribute. | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @see #isMultipleAllowed() | ||
132 | * @generated | ||
133 | * @ordered | ||
134 | */ | ||
135 | protected boolean multipleAllowed = MULTIPLE_ALLOWED_EDEFAULT; | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | protected ComponentImpl() { | ||
143 | super(); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | protected EClass eStaticClass() { | ||
153 | return CftPackage.Literals.COMPONENT; | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | public EList<Input> getInputs() { | ||
163 | if (inputs == null) { | ||
164 | inputs = new EObjectContainmentWithInverseEList<Input>(Input.class, this, CftPackage.COMPONENT__INPUTS, CftPackage.INPUT__COMPONENT); | ||
165 | } | ||
166 | return inputs; | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public EList<Output> getOutputs() { | ||
176 | if (outputs == null) { | ||
177 | outputs = new EObjectContainmentWithInverseEList<Output>(Output.class, this, CftPackage.COMPONENT__OUTPUTS, CftPackage.OUTPUT__COMPONENT); | ||
178 | } | ||
179 | return outputs; | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public ComponentDefinition getComponentDefinition() { | ||
189 | if (componentDefinition != null && componentDefinition.eIsProxy()) { | ||
190 | InternalEObject oldComponentDefinition = (InternalEObject)componentDefinition; | ||
191 | componentDefinition = (ComponentDefinition)eResolveProxy(oldComponentDefinition); | ||
192 | if (componentDefinition != oldComponentDefinition) { | ||
193 | if (eNotificationRequired()) | ||
194 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.COMPONENT__COMPONENT_DEFINITION, oldComponentDefinition, componentDefinition)); | ||
195 | } | ||
196 | } | ||
197 | return componentDefinition; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | public ComponentDefinition basicGetComponentDefinition() { | ||
206 | return componentDefinition; | ||
207 | } | ||
208 | |||
209 | /** | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | */ | ||
214 | @Override | ||
215 | public void setComponentDefinition(ComponentDefinition newComponentDefinition) { | ||
216 | ComponentDefinition oldComponentDefinition = componentDefinition; | ||
217 | componentDefinition = newComponentDefinition; | ||
218 | if (eNotificationRequired()) | ||
219 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__COMPONENT_DEFINITION, oldComponentDefinition, componentDefinition)); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public String getName() { | ||
229 | return name; | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * <!-- begin-user-doc --> | ||
234 | * <!-- end-user-doc --> | ||
235 | * @generated | ||
236 | */ | ||
237 | @Override | ||
238 | public void setName(String newName) { | ||
239 | String oldName = name; | ||
240 | name = newName; | ||
241 | if (eNotificationRequired()) | ||
242 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__NAME, oldName, name)); | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | @Override | ||
251 | public Modality getExists() { | ||
252 | return exists; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public void setExists(Modality newExists) { | ||
262 | Modality oldExists = exists; | ||
263 | exists = newExists == null ? EXISTS_EDEFAULT : newExists; | ||
264 | if (eNotificationRequired()) | ||
265 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__EXISTS, oldExists, exists)); | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * <!-- begin-user-doc --> | ||
270 | * <!-- end-user-doc --> | ||
271 | * @generated | ||
272 | */ | ||
273 | @Override | ||
274 | public boolean isMultipleAllowed() { | ||
275 | return multipleAllowed; | ||
276 | } | ||
277 | |||
278 | /** | ||
279 | * <!-- begin-user-doc --> | ||
280 | * <!-- end-user-doc --> | ||
281 | * @generated | ||
282 | */ | ||
283 | @Override | ||
284 | public void setMultipleAllowed(boolean newMultipleAllowed) { | ||
285 | boolean oldMultipleAllowed = multipleAllowed; | ||
286 | multipleAllowed = newMultipleAllowed; | ||
287 | if (eNotificationRequired()) | ||
288 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__MULTIPLE_ALLOWED, oldMultipleAllowed, multipleAllowed)); | ||
289 | } | ||
290 | |||
291 | /** | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
296 | @SuppressWarnings("unchecked") | ||
297 | @Override | ||
298 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
299 | switch (featureID) { | ||
300 | case CftPackage.COMPONENT__INPUTS: | ||
301 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getInputs()).basicAdd(otherEnd, msgs); | ||
302 | case CftPackage.COMPONENT__OUTPUTS: | ||
303 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getOutputs()).basicAdd(otherEnd, msgs); | ||
304 | } | ||
305 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * <!-- begin-user-doc --> | ||
310 | * <!-- end-user-doc --> | ||
311 | * @generated | ||
312 | */ | ||
313 | @Override | ||
314 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
315 | switch (featureID) { | ||
316 | case CftPackage.COMPONENT__INPUTS: | ||
317 | return ((InternalEList<?>)getInputs()).basicRemove(otherEnd, msgs); | ||
318 | case CftPackage.COMPONENT__OUTPUTS: | ||
319 | return ((InternalEList<?>)getOutputs()).basicRemove(otherEnd, msgs); | ||
320 | } | ||
321 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
322 | } | ||
323 | |||
324 | /** | ||
325 | * <!-- begin-user-doc --> | ||
326 | * <!-- end-user-doc --> | ||
327 | * @generated | ||
328 | */ | ||
329 | @Override | ||
330 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
331 | switch (featureID) { | ||
332 | case CftPackage.COMPONENT__EXISTS: | ||
333 | return getExists(); | ||
334 | case CftPackage.COMPONENT__INPUTS: | ||
335 | return getInputs(); | ||
336 | case CftPackage.COMPONENT__OUTPUTS: | ||
337 | return getOutputs(); | ||
338 | case CftPackage.COMPONENT__COMPONENT_DEFINITION: | ||
339 | if (resolve) return getComponentDefinition(); | ||
340 | return basicGetComponentDefinition(); | ||
341 | case CftPackage.COMPONENT__NAME: | ||
342 | return getName(); | ||
343 | case CftPackage.COMPONENT__MULTIPLE_ALLOWED: | ||
344 | return isMultipleAllowed(); | ||
345 | } | ||
346 | return super.eGet(featureID, resolve, coreType); | ||
347 | } | ||
348 | |||
349 | /** | ||
350 | * <!-- begin-user-doc --> | ||
351 | * <!-- end-user-doc --> | ||
352 | * @generated | ||
353 | */ | ||
354 | @SuppressWarnings("unchecked") | ||
355 | @Override | ||
356 | public void eSet(int featureID, Object newValue) { | ||
357 | switch (featureID) { | ||
358 | case CftPackage.COMPONENT__EXISTS: | ||
359 | setExists((Modality)newValue); | ||
360 | return; | ||
361 | case CftPackage.COMPONENT__INPUTS: | ||
362 | getInputs().clear(); | ||
363 | getInputs().addAll((Collection<? extends Input>)newValue); | ||
364 | return; | ||
365 | case CftPackage.COMPONENT__OUTPUTS: | ||
366 | getOutputs().clear(); | ||
367 | getOutputs().addAll((Collection<? extends Output>)newValue); | ||
368 | return; | ||
369 | case CftPackage.COMPONENT__COMPONENT_DEFINITION: | ||
370 | setComponentDefinition((ComponentDefinition)newValue); | ||
371 | return; | ||
372 | case CftPackage.COMPONENT__NAME: | ||
373 | setName((String)newValue); | ||
374 | return; | ||
375 | case CftPackage.COMPONENT__MULTIPLE_ALLOWED: | ||
376 | setMultipleAllowed((Boolean)newValue); | ||
377 | return; | ||
378 | } | ||
379 | super.eSet(featureID, newValue); | ||
380 | } | ||
381 | |||
382 | /** | ||
383 | * <!-- begin-user-doc --> | ||
384 | * <!-- end-user-doc --> | ||
385 | * @generated | ||
386 | */ | ||
387 | @Override | ||
388 | public void eUnset(int featureID) { | ||
389 | switch (featureID) { | ||
390 | case CftPackage.COMPONENT__EXISTS: | ||
391 | setExists(EXISTS_EDEFAULT); | ||
392 | return; | ||
393 | case CftPackage.COMPONENT__INPUTS: | ||
394 | getInputs().clear(); | ||
395 | return; | ||
396 | case CftPackage.COMPONENT__OUTPUTS: | ||
397 | getOutputs().clear(); | ||
398 | return; | ||
399 | case CftPackage.COMPONENT__COMPONENT_DEFINITION: | ||
400 | setComponentDefinition((ComponentDefinition)null); | ||
401 | return; | ||
402 | case CftPackage.COMPONENT__NAME: | ||
403 | setName(NAME_EDEFAULT); | ||
404 | return; | ||
405 | case CftPackage.COMPONENT__MULTIPLE_ALLOWED: | ||
406 | setMultipleAllowed(MULTIPLE_ALLOWED_EDEFAULT); | ||
407 | return; | ||
408 | } | ||
409 | super.eUnset(featureID); | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * <!-- begin-user-doc --> | ||
414 | * <!-- end-user-doc --> | ||
415 | * @generated | ||
416 | */ | ||
417 | @Override | ||
418 | public boolean eIsSet(int featureID) { | ||
419 | switch (featureID) { | ||
420 | case CftPackage.COMPONENT__EXISTS: | ||
421 | return exists != EXISTS_EDEFAULT; | ||
422 | case CftPackage.COMPONENT__INPUTS: | ||
423 | return inputs != null && !inputs.isEmpty(); | ||
424 | case CftPackage.COMPONENT__OUTPUTS: | ||
425 | return outputs != null && !outputs.isEmpty(); | ||
426 | case CftPackage.COMPONENT__COMPONENT_DEFINITION: | ||
427 | return componentDefinition != null; | ||
428 | case CftPackage.COMPONENT__NAME: | ||
429 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
430 | case CftPackage.COMPONENT__MULTIPLE_ALLOWED: | ||
431 | return multipleAllowed != MULTIPLE_ALLOWED_EDEFAULT; | ||
432 | } | ||
433 | return super.eIsSet(featureID); | ||
434 | } | ||
435 | |||
436 | /** | ||
437 | * <!-- begin-user-doc --> | ||
438 | * <!-- end-user-doc --> | ||
439 | * @generated | ||
440 | */ | ||
441 | @Override | ||
442 | public String toString() { | ||
443 | if (eIsProxy()) return super.toString(); | ||
444 | |||
445 | StringBuilder result = new StringBuilder(super.toString()); | ||
446 | result.append(" (exists: "); | ||
447 | result.append(exists); | ||
448 | result.append(", name: "); | ||
449 | result.append(name); | ||
450 | result.append(", multipleAllowed: "); | ||
451 | result.append(multipleAllowed); | ||
452 | result.append(')'); | ||
453 | return result.toString(); | ||
454 | } | ||
455 | |||
456 | } //ComponentImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java deleted file mode 100644 index aea86ed4..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java +++ /dev/null | |||
@@ -1,360 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
12 | import org.eclipse.emf.common.notify.NotificationChain; | ||
13 | |||
14 | import org.eclipse.emf.ecore.EClass; | ||
15 | import org.eclipse.emf.ecore.InternalEObject; | ||
16 | |||
17 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
18 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
19 | |||
20 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Connection</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getExists <em>Exists</em>}</li> | ||
31 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getInput <em>Input</em>}</li> | ||
32 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getOutput <em>Output</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class ConnectionImpl extends MinimalEObjectImpl.Container implements Connection { | ||
38 | /** | ||
39 | * The default value of the '{@link #getExists() <em>Exists</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getExists() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected static final Modality EXISTS_EDEFAULT = Modality.MUST; | ||
47 | |||
48 | /** | ||
49 | * The cached value of the '{@link #getExists() <em>Exists</em>}' attribute. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @see #getExists() | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | protected Modality exists = EXISTS_EDEFAULT; | ||
57 | |||
58 | /** | ||
59 | * The cached value of the '{@link #getOutput() <em>Output</em>}' reference. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @see #getOutput() | ||
63 | * @generated | ||
64 | * @ordered | ||
65 | */ | ||
66 | protected Output output; | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | protected ConnectionImpl() { | ||
74 | super(); | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | protected EClass eStaticClass() { | ||
84 | return CftPackage.Literals.CONNECTION; | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @Override | ||
93 | public Input getInput() { | ||
94 | if (eContainerFeatureID() != CftPackage.CONNECTION__INPUT) return null; | ||
95 | return (Input)eInternalContainer(); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | public NotificationChain basicSetInput(Input newInput, NotificationChain msgs) { | ||
104 | msgs = eBasicSetContainer((InternalEObject)newInput, CftPackage.CONNECTION__INPUT, msgs); | ||
105 | return msgs; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public void setInput(Input newInput) { | ||
115 | if (newInput != eInternalContainer() || (eContainerFeatureID() != CftPackage.CONNECTION__INPUT && newInput != null)) { | ||
116 | if (EcoreUtil.isAncestor(this, newInput)) | ||
117 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | ||
118 | NotificationChain msgs = null; | ||
119 | if (eInternalContainer() != null) | ||
120 | msgs = eBasicRemoveFromContainer(msgs); | ||
121 | if (newInput != null) | ||
122 | msgs = ((InternalEObject)newInput).eInverseAdd(this, CftPackage.INPUT__INCOMING_CONNECTIONS, Input.class, msgs); | ||
123 | msgs = basicSetInput(newInput, msgs); | ||
124 | if (msgs != null) msgs.dispatch(); | ||
125 | } | ||
126 | else if (eNotificationRequired()) | ||
127 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__INPUT, newInput, newInput)); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public Output getOutput() { | ||
137 | if (output != null && output.eIsProxy()) { | ||
138 | InternalEObject oldOutput = (InternalEObject)output; | ||
139 | output = (Output)eResolveProxy(oldOutput); | ||
140 | if (output != oldOutput) { | ||
141 | if (eNotificationRequired()) | ||
142 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.CONNECTION__OUTPUT, oldOutput, output)); | ||
143 | } | ||
144 | } | ||
145 | return output; | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | public Output basicGetOutput() { | ||
154 | return output; | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | public NotificationChain basicSetOutput(Output newOutput, NotificationChain msgs) { | ||
163 | Output oldOutput = output; | ||
164 | output = newOutput; | ||
165 | if (eNotificationRequired()) { | ||
166 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__OUTPUT, oldOutput, newOutput); | ||
167 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
168 | } | ||
169 | return msgs; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public void setOutput(Output newOutput) { | ||
179 | if (newOutput != output) { | ||
180 | NotificationChain msgs = null; | ||
181 | if (output != null) | ||
182 | msgs = ((InternalEObject)output).eInverseRemove(this, CftPackage.OUTPUT__OUTGOING_CONNECTIONS, Output.class, msgs); | ||
183 | if (newOutput != null) | ||
184 | msgs = ((InternalEObject)newOutput).eInverseAdd(this, CftPackage.OUTPUT__OUTGOING_CONNECTIONS, Output.class, msgs); | ||
185 | msgs = basicSetOutput(newOutput, msgs); | ||
186 | if (msgs != null) msgs.dispatch(); | ||
187 | } | ||
188 | else if (eNotificationRequired()) | ||
189 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__OUTPUT, newOutput, newOutput)); | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | @Override | ||
198 | public Modality getExists() { | ||
199 | return exists; | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @generated | ||
206 | */ | ||
207 | @Override | ||
208 | public void setExists(Modality newExists) { | ||
209 | Modality oldExists = exists; | ||
210 | exists = newExists == null ? EXISTS_EDEFAULT : newExists; | ||
211 | if (eNotificationRequired()) | ||
212 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__EXISTS, oldExists, exists)); | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
222 | switch (featureID) { | ||
223 | case CftPackage.CONNECTION__INPUT: | ||
224 | if (eInternalContainer() != null) | ||
225 | msgs = eBasicRemoveFromContainer(msgs); | ||
226 | return basicSetInput((Input)otherEnd, msgs); | ||
227 | case CftPackage.CONNECTION__OUTPUT: | ||
228 | if (output != null) | ||
229 | msgs = ((InternalEObject)output).eInverseRemove(this, CftPackage.OUTPUT__OUTGOING_CONNECTIONS, Output.class, msgs); | ||
230 | return basicSetOutput((Output)otherEnd, msgs); | ||
231 | } | ||
232 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
242 | switch (featureID) { | ||
243 | case CftPackage.CONNECTION__INPUT: | ||
244 | return basicSetInput(null, msgs); | ||
245 | case CftPackage.CONNECTION__OUTPUT: | ||
246 | return basicSetOutput(null, msgs); | ||
247 | } | ||
248 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | ||
258 | switch (eContainerFeatureID()) { | ||
259 | case CftPackage.CONNECTION__INPUT: | ||
260 | return eInternalContainer().eInverseRemove(this, CftPackage.INPUT__INCOMING_CONNECTIONS, Input.class, msgs); | ||
261 | } | ||
262 | return super.eBasicRemoveFromContainerFeature(msgs); | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * <!-- begin-user-doc --> | ||
267 | * <!-- end-user-doc --> | ||
268 | * @generated | ||
269 | */ | ||
270 | @Override | ||
271 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
272 | switch (featureID) { | ||
273 | case CftPackage.CONNECTION__EXISTS: | ||
274 | return getExists(); | ||
275 | case CftPackage.CONNECTION__INPUT: | ||
276 | return getInput(); | ||
277 | case CftPackage.CONNECTION__OUTPUT: | ||
278 | if (resolve) return getOutput(); | ||
279 | return basicGetOutput(); | ||
280 | } | ||
281 | return super.eGet(featureID, resolve, coreType); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public void eSet(int featureID, Object newValue) { | ||
291 | switch (featureID) { | ||
292 | case CftPackage.CONNECTION__EXISTS: | ||
293 | setExists((Modality)newValue); | ||
294 | return; | ||
295 | case CftPackage.CONNECTION__INPUT: | ||
296 | setInput((Input)newValue); | ||
297 | return; | ||
298 | case CftPackage.CONNECTION__OUTPUT: | ||
299 | setOutput((Output)newValue); | ||
300 | return; | ||
301 | } | ||
302 | super.eSet(featureID, newValue); | ||
303 | } | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | @Override | ||
311 | public void eUnset(int featureID) { | ||
312 | switch (featureID) { | ||
313 | case CftPackage.CONNECTION__EXISTS: | ||
314 | setExists(EXISTS_EDEFAULT); | ||
315 | return; | ||
316 | case CftPackage.CONNECTION__INPUT: | ||
317 | setInput((Input)null); | ||
318 | return; | ||
319 | case CftPackage.CONNECTION__OUTPUT: | ||
320 | setOutput((Output)null); | ||
321 | return; | ||
322 | } | ||
323 | super.eUnset(featureID); | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | */ | ||
331 | @Override | ||
332 | public boolean eIsSet(int featureID) { | ||
333 | switch (featureID) { | ||
334 | case CftPackage.CONNECTION__EXISTS: | ||
335 | return exists != EXISTS_EDEFAULT; | ||
336 | case CftPackage.CONNECTION__INPUT: | ||
337 | return getInput() != null; | ||
338 | case CftPackage.CONNECTION__OUTPUT: | ||
339 | return output != null; | ||
340 | } | ||
341 | return super.eIsSet(featureID); | ||
342 | } | ||
343 | |||
344 | /** | ||
345 | * <!-- begin-user-doc --> | ||
346 | * <!-- end-user-doc --> | ||
347 | * @generated | ||
348 | */ | ||
349 | @Override | ||
350 | public String toString() { | ||
351 | if (eIsProxy()) return super.toString(); | ||
352 | |||
353 | StringBuilder result = new StringBuilder(super.toString()); | ||
354 | result.append(" (exists: "); | ||
355 | result.append(exists); | ||
356 | result.append(')'); | ||
357 | return result.toString(); | ||
358 | } | ||
359 | |||
360 | } //ConnectionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/EventDeclarationImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/EventDeclarationImpl.java deleted file mode 100644 index e60a9427..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/EventDeclarationImpl.java +++ /dev/null | |||
@@ -1,163 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Event Declaration</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDeclarationImpl#getName <em>Name</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public abstract class EventDeclarationImpl extends MinimalEObjectImpl.Container implements EventDeclaration { | ||
28 | /** | ||
29 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getName() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final String NAME_EDEFAULT = null; | ||
37 | /** | ||
38 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getName() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected String name = NAME_EDEFAULT; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected EventDeclarationImpl() { | ||
53 | super(); | ||
54 | } | ||
55 | |||
56 | /** | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @generated | ||
60 | */ | ||
61 | @Override | ||
62 | protected EClass eStaticClass() { | ||
63 | return CftPackage.Literals.EVENT_DECLARATION; | ||
64 | } | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | public String getName() { | ||
73 | return name; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | public void setName(String newName) { | ||
83 | String oldName = name; | ||
84 | name = newName; | ||
85 | if (eNotificationRequired()) | ||
86 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.EVENT_DECLARATION__NAME, oldName, name)); | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
96 | switch (featureID) { | ||
97 | case CftPackage.EVENT_DECLARATION__NAME: | ||
98 | return getName(); | ||
99 | } | ||
100 | return super.eGet(featureID, resolve, coreType); | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void eSet(int featureID, Object newValue) { | ||
110 | switch (featureID) { | ||
111 | case CftPackage.EVENT_DECLARATION__NAME: | ||
112 | setName((String)newValue); | ||
113 | return; | ||
114 | } | ||
115 | super.eSet(featureID, newValue); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public void eUnset(int featureID) { | ||
125 | switch (featureID) { | ||
126 | case CftPackage.EVENT_DECLARATION__NAME: | ||
127 | setName(NAME_EDEFAULT); | ||
128 | return; | ||
129 | } | ||
130 | super.eUnset(featureID); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public boolean eIsSet(int featureID) { | ||
140 | switch (featureID) { | ||
141 | case CftPackage.EVENT_DECLARATION__NAME: | ||
142 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public String toString() { | ||
154 | if (eIsProxy()) return super.toString(); | ||
155 | |||
156 | StringBuilder result = new StringBuilder(super.toString()); | ||
157 | result.append(" (name: "); | ||
158 | result.append(name); | ||
159 | result.append(')'); | ||
160 | return result.toString(); | ||
161 | } | ||
162 | |||
163 | } //EventDeclarationImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/EventDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/EventDefinitionImpl.java deleted file mode 100644 index 76b79f5b..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/EventDefinitionImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Event Definition</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class EventDefinitionImpl extends EventDeclarationImpl implements EventDefinition { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected EventDefinitionImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return CftPackage.Literals.EVENT_DEFINITION; | ||
35 | } | ||
36 | |||
37 | } //EventDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/GateDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/GateDefinitionImpl.java deleted file mode 100644 index 2fb9a724..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/GateDefinitionImpl.java +++ /dev/null | |||
@@ -1,133 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition; | ||
8 | |||
9 | import java.util.Collection; | ||
10 | |||
11 | import org.eclipse.emf.common.util.EList; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | |||
15 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Gate Definition</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.GateDefinitionImpl#getInputEvents <em>Input Events</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public abstract class GateDefinitionImpl extends EventDefinitionImpl implements GateDefinition { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' reference list. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getInputEvents() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected EList<EventDeclaration> inputEvents; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected GateDefinitionImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return CftPackage.Literals.GATE_DEFINITION; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | public EList<EventDeclaration> getInputEvents() { | ||
67 | if (inputEvents == null) { | ||
68 | inputEvents = new EObjectResolvingEList<EventDeclaration>(EventDeclaration.class, this, CftPackage.GATE_DEFINITION__INPUT_EVENTS); | ||
69 | } | ||
70 | return inputEvents; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
80 | switch (featureID) { | ||
81 | case CftPackage.GATE_DEFINITION__INPUT_EVENTS: | ||
82 | return getInputEvents(); | ||
83 | } | ||
84 | return super.eGet(featureID, resolve, coreType); | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @SuppressWarnings("unchecked") | ||
93 | @Override | ||
94 | public void eSet(int featureID, Object newValue) { | ||
95 | switch (featureID) { | ||
96 | case CftPackage.GATE_DEFINITION__INPUT_EVENTS: | ||
97 | getInputEvents().clear(); | ||
98 | getInputEvents().addAll((Collection<? extends EventDeclaration>)newValue); | ||
99 | return; | ||
100 | } | ||
101 | super.eSet(featureID, newValue); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void eUnset(int featureID) { | ||
111 | switch (featureID) { | ||
112 | case CftPackage.GATE_DEFINITION__INPUT_EVENTS: | ||
113 | getInputEvents().clear(); | ||
114 | return; | ||
115 | } | ||
116 | super.eUnset(featureID); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public boolean eIsSet(int featureID) { | ||
126 | switch (featureID) { | ||
127 | case CftPackage.GATE_DEFINITION__INPUT_EVENTS: | ||
128 | return inputEvents != null && !inputEvents.isEmpty(); | ||
129 | } | ||
130 | return super.eIsSet(featureID); | ||
131 | } | ||
132 | |||
133 | } //GateDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputEventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputEventImpl.java deleted file mode 100644 index 8432e29b..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputEventImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Input Event</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputEventImpl#isMultiple <em>Multiple</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class InputEventImpl extends EventDeclarationImpl implements InputEvent { | ||
28 | /** | ||
29 | * The default value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #isMultiple() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final boolean MULTIPLE_EDEFAULT = false; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #isMultiple() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected boolean multiple = MULTIPLE_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected InputEventImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return CftPackage.Literals.INPUT_EVENT; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public boolean isMultiple() { | ||
74 | return multiple; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public void setMultiple(boolean newMultiple) { | ||
84 | boolean oldMultiple = multiple; | ||
85 | multiple = newMultiple; | ||
86 | if (eNotificationRequired()) | ||
87 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INPUT_EVENT__MULTIPLE, oldMultiple, multiple)); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
97 | switch (featureID) { | ||
98 | case CftPackage.INPUT_EVENT__MULTIPLE: | ||
99 | return isMultiple(); | ||
100 | } | ||
101 | return super.eGet(featureID, resolve, coreType); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void eSet(int featureID, Object newValue) { | ||
111 | switch (featureID) { | ||
112 | case CftPackage.INPUT_EVENT__MULTIPLE: | ||
113 | setMultiple((Boolean)newValue); | ||
114 | return; | ||
115 | } | ||
116 | super.eSet(featureID, newValue); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void eUnset(int featureID) { | ||
126 | switch (featureID) { | ||
127 | case CftPackage.INPUT_EVENT__MULTIPLE: | ||
128 | setMultiple(MULTIPLE_EDEFAULT); | ||
129 | return; | ||
130 | } | ||
131 | super.eUnset(featureID); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public boolean eIsSet(int featureID) { | ||
141 | switch (featureID) { | ||
142 | case CftPackage.INPUT_EVENT__MULTIPLE: | ||
143 | return multiple != MULTIPLE_EDEFAULT; | ||
144 | } | ||
145 | return super.eIsSet(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public String toString() { | ||
155 | if (eIsProxy()) return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (multiple: "); | ||
159 | result.append(multiple); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //InputEventImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java deleted file mode 100644 index aa560064..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java +++ /dev/null | |||
@@ -1,308 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; | ||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; | ||
24 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
25 | import org.eclipse.emf.ecore.util.InternalEList; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Input</b></em>'. | ||
30 | * <!-- end-user-doc --> | ||
31 | * <p> | ||
32 | * The following features are implemented: | ||
33 | * </p> | ||
34 | * <ul> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getInputEvent <em>Input Event</em>}</li> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getComponent <em>Component</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getIncomingConnections <em>Incoming Connections</em>}</li> | ||
38 | * </ul> | ||
39 | * | ||
40 | * @generated | ||
41 | */ | ||
42 | public class InputImpl extends MinimalEObjectImpl.Container implements Input { | ||
43 | /** | ||
44 | * The cached value of the '{@link #getInputEvent() <em>Input Event</em>}' reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getInputEvent() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected InputEvent inputEvent; | ||
52 | |||
53 | /** | ||
54 | * The cached value of the '{@link #getIncomingConnections() <em>Incoming Connections</em>}' containment reference list. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getIncomingConnections() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected EList<Connection> incomingConnections; | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | protected InputImpl() { | ||
69 | super(); | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | protected EClass eStaticClass() { | ||
79 | return CftPackage.Literals.INPUT; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public InputEvent getInputEvent() { | ||
89 | if (inputEvent != null && inputEvent.eIsProxy()) { | ||
90 | InternalEObject oldInputEvent = (InternalEObject)inputEvent; | ||
91 | inputEvent = (InputEvent)eResolveProxy(oldInputEvent); | ||
92 | if (inputEvent != oldInputEvent) { | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.INPUT__INPUT_EVENT, oldInputEvent, inputEvent)); | ||
95 | } | ||
96 | } | ||
97 | return inputEvent; | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | public InputEvent basicGetInputEvent() { | ||
106 | return inputEvent; | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | @Override | ||
115 | public void setInputEvent(InputEvent newInputEvent) { | ||
116 | InputEvent oldInputEvent = inputEvent; | ||
117 | inputEvent = newInputEvent; | ||
118 | if (eNotificationRequired()) | ||
119 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INPUT__INPUT_EVENT, oldInputEvent, inputEvent)); | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public Component getComponent() { | ||
129 | if (eContainerFeatureID() != CftPackage.INPUT__COMPONENT) return null; | ||
130 | return (Component)eInternalContainer(); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetComponent(Component newComponent, NotificationChain msgs) { | ||
139 | msgs = eBasicSetContainer((InternalEObject)newComponent, CftPackage.INPUT__COMPONENT, msgs); | ||
140 | return msgs; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public void setComponent(Component newComponent) { | ||
150 | if (newComponent != eInternalContainer() || (eContainerFeatureID() != CftPackage.INPUT__COMPONENT && newComponent != null)) { | ||
151 | if (EcoreUtil.isAncestor(this, newComponent)) | ||
152 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | ||
153 | NotificationChain msgs = null; | ||
154 | if (eInternalContainer() != null) | ||
155 | msgs = eBasicRemoveFromContainer(msgs); | ||
156 | if (newComponent != null) | ||
157 | msgs = ((InternalEObject)newComponent).eInverseAdd(this, CftPackage.COMPONENT__INPUTS, Component.class, msgs); | ||
158 | msgs = basicSetComponent(newComponent, msgs); | ||
159 | if (msgs != null) msgs.dispatch(); | ||
160 | } | ||
161 | else if (eNotificationRequired()) | ||
162 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INPUT__COMPONENT, newComponent, newComponent)); | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | @Override | ||
171 | public EList<Connection> getIncomingConnections() { | ||
172 | if (incomingConnections == null) { | ||
173 | incomingConnections = new EObjectContainmentWithInverseEList<Connection>(Connection.class, this, CftPackage.INPUT__INCOMING_CONNECTIONS, CftPackage.CONNECTION__INPUT); | ||
174 | } | ||
175 | return incomingConnections; | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | @SuppressWarnings("unchecked") | ||
184 | @Override | ||
185 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
186 | switch (featureID) { | ||
187 | case CftPackage.INPUT__COMPONENT: | ||
188 | if (eInternalContainer() != null) | ||
189 | msgs = eBasicRemoveFromContainer(msgs); | ||
190 | return basicSetComponent((Component)otherEnd, msgs); | ||
191 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
192 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getIncomingConnections()).basicAdd(otherEnd, msgs); | ||
193 | } | ||
194 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | @Override | ||
203 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
204 | switch (featureID) { | ||
205 | case CftPackage.INPUT__COMPONENT: | ||
206 | return basicSetComponent(null, msgs); | ||
207 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
208 | return ((InternalEList<?>)getIncomingConnections()).basicRemove(otherEnd, msgs); | ||
209 | } | ||
210 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | ||
220 | switch (eContainerFeatureID()) { | ||
221 | case CftPackage.INPUT__COMPONENT: | ||
222 | return eInternalContainer().eInverseRemove(this, CftPackage.COMPONENT__INPUTS, Component.class, msgs); | ||
223 | } | ||
224 | return super.eBasicRemoveFromContainerFeature(msgs); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
234 | switch (featureID) { | ||
235 | case CftPackage.INPUT__INPUT_EVENT: | ||
236 | if (resolve) return getInputEvent(); | ||
237 | return basicGetInputEvent(); | ||
238 | case CftPackage.INPUT__COMPONENT: | ||
239 | return getComponent(); | ||
240 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
241 | return getIncomingConnections(); | ||
242 | } | ||
243 | return super.eGet(featureID, resolve, coreType); | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | @SuppressWarnings("unchecked") | ||
252 | @Override | ||
253 | public void eSet(int featureID, Object newValue) { | ||
254 | switch (featureID) { | ||
255 | case CftPackage.INPUT__INPUT_EVENT: | ||
256 | setInputEvent((InputEvent)newValue); | ||
257 | return; | ||
258 | case CftPackage.INPUT__COMPONENT: | ||
259 | setComponent((Component)newValue); | ||
260 | return; | ||
261 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
262 | getIncomingConnections().clear(); | ||
263 | getIncomingConnections().addAll((Collection<? extends Connection>)newValue); | ||
264 | return; | ||
265 | } | ||
266 | super.eSet(featureID, newValue); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | @Override | ||
275 | public void eUnset(int featureID) { | ||
276 | switch (featureID) { | ||
277 | case CftPackage.INPUT__INPUT_EVENT: | ||
278 | setInputEvent((InputEvent)null); | ||
279 | return; | ||
280 | case CftPackage.INPUT__COMPONENT: | ||
281 | setComponent((Component)null); | ||
282 | return; | ||
283 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
284 | getIncomingConnections().clear(); | ||
285 | return; | ||
286 | } | ||
287 | super.eUnset(featureID); | ||
288 | } | ||
289 | |||
290 | /** | ||
291 | * <!-- begin-user-doc --> | ||
292 | * <!-- end-user-doc --> | ||
293 | * @generated | ||
294 | */ | ||
295 | @Override | ||
296 | public boolean eIsSet(int featureID) { | ||
297 | switch (featureID) { | ||
298 | case CftPackage.INPUT__INPUT_EVENT: | ||
299 | return inputEvent != null; | ||
300 | case CftPackage.INPUT__COMPONENT: | ||
301 | return getComponent() != null; | ||
302 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
303 | return incomingConnections != null && !incomingConnections.isEmpty(); | ||
304 | } | ||
305 | return super.eIsSet(featureID); | ||
306 | } | ||
307 | |||
308 | } //InputImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/KOfMGateDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/KOfMGateDefinitionImpl.java deleted file mode 100644 index fed17513..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/KOfMGateDefinitionImpl.java +++ /dev/null | |||
@@ -1,220 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>KOf MGate Definition</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.KOfMGateDefinitionImpl#getK <em>K</em>}</li> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.KOfMGateDefinitionImpl#getM <em>M</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class KOfMGateDefinitionImpl extends GateDefinitionImpl implements KOfMGateDefinition { | ||
29 | /** | ||
30 | * The default value of the '{@link #getK() <em>K</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getK() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final int K_EDEFAULT = 0; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getK() <em>K</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getK() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected int k = K_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * The default value of the '{@link #getM() <em>M</em>}' attribute. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #getM() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected static final int M_EDEFAULT = 0; | ||
58 | |||
59 | /** | ||
60 | * The cached value of the '{@link #getM() <em>M</em>}' attribute. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see #getM() | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | protected int m = M_EDEFAULT; | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | protected KOfMGateDefinitionImpl() { | ||
75 | super(); | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | protected EClass eStaticClass() { | ||
85 | return CftPackage.Literals.KOF_MGATE_DEFINITION; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | @Override | ||
94 | public int getK() { | ||
95 | return k; | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public void setK(int newK) { | ||
105 | int oldK = k; | ||
106 | k = newK; | ||
107 | if (eNotificationRequired()) | ||
108 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.KOF_MGATE_DEFINITION__K, oldK, k)); | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | @Override | ||
117 | public int getM() { | ||
118 | return m; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public void setM(int newM) { | ||
128 | int oldM = m; | ||
129 | m = newM; | ||
130 | if (eNotificationRequired()) | ||
131 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.KOF_MGATE_DEFINITION__M, oldM, m)); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
141 | switch (featureID) { | ||
142 | case CftPackage.KOF_MGATE_DEFINITION__K: | ||
143 | return getK(); | ||
144 | case CftPackage.KOF_MGATE_DEFINITION__M: | ||
145 | return getM(); | ||
146 | } | ||
147 | return super.eGet(featureID, resolve, coreType); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public void eSet(int featureID, Object newValue) { | ||
157 | switch (featureID) { | ||
158 | case CftPackage.KOF_MGATE_DEFINITION__K: | ||
159 | setK((Integer)newValue); | ||
160 | return; | ||
161 | case CftPackage.KOF_MGATE_DEFINITION__M: | ||
162 | setM((Integer)newValue); | ||
163 | return; | ||
164 | } | ||
165 | super.eSet(featureID, newValue); | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | @Override | ||
174 | public void eUnset(int featureID) { | ||
175 | switch (featureID) { | ||
176 | case CftPackage.KOF_MGATE_DEFINITION__K: | ||
177 | setK(K_EDEFAULT); | ||
178 | return; | ||
179 | case CftPackage.KOF_MGATE_DEFINITION__M: | ||
180 | setM(M_EDEFAULT); | ||
181 | return; | ||
182 | } | ||
183 | super.eUnset(featureID); | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | @Override | ||
192 | public boolean eIsSet(int featureID) { | ||
193 | switch (featureID) { | ||
194 | case CftPackage.KOF_MGATE_DEFINITION__K: | ||
195 | return k != K_EDEFAULT; | ||
196 | case CftPackage.KOF_MGATE_DEFINITION__M: | ||
197 | return m != M_EDEFAULT; | ||
198 | } | ||
199 | return super.eIsSet(featureID); | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @generated | ||
206 | */ | ||
207 | @Override | ||
208 | public String toString() { | ||
209 | if (eIsProxy()) return super.toString(); | ||
210 | |||
211 | StringBuilder result = new StringBuilder(super.toString()); | ||
212 | result.append(" (k: "); | ||
213 | result.append(k); | ||
214 | result.append(", m: "); | ||
215 | result.append(m); | ||
216 | result.append(')'); | ||
217 | return result.toString(); | ||
218 | } | ||
219 | |||
220 | } //KOfMGateDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/OrGateDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/OrGateDefinitionImpl.java deleted file mode 100644 index d2275f60..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/OrGateDefinitionImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Or Gate Definition</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class OrGateDefinitionImpl extends GateDefinitionImpl implements OrGateDefinition { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected OrGateDefinitionImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return CftPackage.Literals.OR_GATE_DEFINITION; | ||
35 | } | ||
36 | |||
37 | } //OrGateDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/OutputImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/OutputImpl.java deleted file mode 100644 index 31a81afe..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/OutputImpl.java +++ /dev/null | |||
@@ -1,309 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | ||
10 | |||
11 | import java.util.Collection; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.Notification; | ||
14 | import org.eclipse.emf.common.notify.NotificationChain; | ||
15 | |||
16 | import org.eclipse.emf.common.util.EList; | ||
17 | |||
18 | import org.eclipse.emf.ecore.EClass; | ||
19 | import org.eclipse.emf.ecore.InternalEObject; | ||
20 | |||
21 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
22 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
23 | |||
24 | import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; | ||
25 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
26 | import org.eclipse.emf.ecore.util.InternalEList; | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * An implementation of the model object '<em><b>Output</b></em>'. | ||
31 | * <!-- end-user-doc --> | ||
32 | * <p> | ||
33 | * The following features are implemented: | ||
34 | * </p> | ||
35 | * <ul> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl#getEventDeclaration <em>Event Declaration</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl#getOutgoingConnections <em>Outgoing Connections</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl#getComponent <em>Component</em>}</li> | ||
39 | * </ul> | ||
40 | * | ||
41 | * @generated | ||
42 | */ | ||
43 | public class OutputImpl extends MinimalEObjectImpl.Container implements Output { | ||
44 | /** | ||
45 | * The cached value of the '{@link #getEventDeclaration() <em>Event Declaration</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getEventDeclaration() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected EventDeclaration eventDeclaration; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #getOutgoingConnections() <em>Outgoing Connections</em>}' reference list. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #getOutgoingConnections() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected EList<Connection> outgoingConnections; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | protected OutputImpl() { | ||
70 | super(); | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | protected EClass eStaticClass() { | ||
80 | return CftPackage.Literals.OUTPUT; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public EventDeclaration getEventDeclaration() { | ||
90 | if (eventDeclaration != null && eventDeclaration.eIsProxy()) { | ||
91 | InternalEObject oldEventDeclaration = (InternalEObject)eventDeclaration; | ||
92 | eventDeclaration = (EventDeclaration)eResolveProxy(oldEventDeclaration); | ||
93 | if (eventDeclaration != oldEventDeclaration) { | ||
94 | if (eNotificationRequired()) | ||
95 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.OUTPUT__EVENT_DECLARATION, oldEventDeclaration, eventDeclaration)); | ||
96 | } | ||
97 | } | ||
98 | return eventDeclaration; | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | public EventDeclaration basicGetEventDeclaration() { | ||
107 | return eventDeclaration; | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public void setEventDeclaration(EventDeclaration newEventDeclaration) { | ||
117 | EventDeclaration oldEventDeclaration = eventDeclaration; | ||
118 | eventDeclaration = newEventDeclaration; | ||
119 | if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.OUTPUT__EVENT_DECLARATION, oldEventDeclaration, eventDeclaration)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public EList<Connection> getOutgoingConnections() { | ||
130 | if (outgoingConnections == null) { | ||
131 | outgoingConnections = new EObjectWithInverseResolvingEList<Connection>(Connection.class, this, CftPackage.OUTPUT__OUTGOING_CONNECTIONS, CftPackage.CONNECTION__OUTPUT); | ||
132 | } | ||
133 | return outgoingConnections; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public Component getComponent() { | ||
143 | if (eContainerFeatureID() != CftPackage.OUTPUT__COMPONENT) return null; | ||
144 | return (Component)eInternalContainer(); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | public NotificationChain basicSetComponent(Component newComponent, NotificationChain msgs) { | ||
153 | msgs = eBasicSetContainer((InternalEObject)newComponent, CftPackage.OUTPUT__COMPONENT, msgs); | ||
154 | return msgs; | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | @Override | ||
163 | public void setComponent(Component newComponent) { | ||
164 | if (newComponent != eInternalContainer() || (eContainerFeatureID() != CftPackage.OUTPUT__COMPONENT && newComponent != null)) { | ||
165 | if (EcoreUtil.isAncestor(this, newComponent)) | ||
166 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | ||
167 | NotificationChain msgs = null; | ||
168 | if (eInternalContainer() != null) | ||
169 | msgs = eBasicRemoveFromContainer(msgs); | ||
170 | if (newComponent != null) | ||
171 | msgs = ((InternalEObject)newComponent).eInverseAdd(this, CftPackage.COMPONENT__OUTPUTS, Component.class, msgs); | ||
172 | msgs = basicSetComponent(newComponent, msgs); | ||
173 | if (msgs != null) msgs.dispatch(); | ||
174 | } | ||
175 | else if (eNotificationRequired()) | ||
176 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.OUTPUT__COMPONENT, newComponent, newComponent)); | ||
177 | } | ||
178 | |||
179 | /** | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @generated | ||
183 | */ | ||
184 | @SuppressWarnings("unchecked") | ||
185 | @Override | ||
186 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
187 | switch (featureID) { | ||
188 | case CftPackage.OUTPUT__OUTGOING_CONNECTIONS: | ||
189 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getOutgoingConnections()).basicAdd(otherEnd, msgs); | ||
190 | case CftPackage.OUTPUT__COMPONENT: | ||
191 | if (eInternalContainer() != null) | ||
192 | msgs = eBasicRemoveFromContainer(msgs); | ||
193 | return basicSetComponent((Component)otherEnd, msgs); | ||
194 | } | ||
195 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | @Override | ||
204 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
205 | switch (featureID) { | ||
206 | case CftPackage.OUTPUT__OUTGOING_CONNECTIONS: | ||
207 | return ((InternalEList<?>)getOutgoingConnections()).basicRemove(otherEnd, msgs); | ||
208 | case CftPackage.OUTPUT__COMPONENT: | ||
209 | return basicSetComponent(null, msgs); | ||
210 | } | ||
211 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @generated | ||
218 | */ | ||
219 | @Override | ||
220 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | ||
221 | switch (eContainerFeatureID()) { | ||
222 | case CftPackage.OUTPUT__COMPONENT: | ||
223 | return eInternalContainer().eInverseRemove(this, CftPackage.COMPONENT__OUTPUTS, Component.class, msgs); | ||
224 | } | ||
225 | return super.eBasicRemoveFromContainerFeature(msgs); | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @Override | ||
234 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
235 | switch (featureID) { | ||
236 | case CftPackage.OUTPUT__EVENT_DECLARATION: | ||
237 | if (resolve) return getEventDeclaration(); | ||
238 | return basicGetEventDeclaration(); | ||
239 | case CftPackage.OUTPUT__OUTGOING_CONNECTIONS: | ||
240 | return getOutgoingConnections(); | ||
241 | case CftPackage.OUTPUT__COMPONENT: | ||
242 | return getComponent(); | ||
243 | } | ||
244 | return super.eGet(featureID, resolve, coreType); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @SuppressWarnings("unchecked") | ||
253 | @Override | ||
254 | public void eSet(int featureID, Object newValue) { | ||
255 | switch (featureID) { | ||
256 | case CftPackage.OUTPUT__EVENT_DECLARATION: | ||
257 | setEventDeclaration((EventDeclaration)newValue); | ||
258 | return; | ||
259 | case CftPackage.OUTPUT__OUTGOING_CONNECTIONS: | ||
260 | getOutgoingConnections().clear(); | ||
261 | getOutgoingConnections().addAll((Collection<? extends Connection>)newValue); | ||
262 | return; | ||
263 | case CftPackage.OUTPUT__COMPONENT: | ||
264 | setComponent((Component)newValue); | ||
265 | return; | ||
266 | } | ||
267 | super.eSet(featureID, newValue); | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * <!-- begin-user-doc --> | ||
272 | * <!-- end-user-doc --> | ||
273 | * @generated | ||
274 | */ | ||
275 | @Override | ||
276 | public void eUnset(int featureID) { | ||
277 | switch (featureID) { | ||
278 | case CftPackage.OUTPUT__EVENT_DECLARATION: | ||
279 | setEventDeclaration((EventDeclaration)null); | ||
280 | return; | ||
281 | case CftPackage.OUTPUT__OUTGOING_CONNECTIONS: | ||
282 | getOutgoingConnections().clear(); | ||
283 | return; | ||
284 | case CftPackage.OUTPUT__COMPONENT: | ||
285 | setComponent((Component)null); | ||
286 | return; | ||
287 | } | ||
288 | super.eUnset(featureID); | ||
289 | } | ||
290 | |||
291 | /** | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
296 | @Override | ||
297 | public boolean eIsSet(int featureID) { | ||
298 | switch (featureID) { | ||
299 | case CftPackage.OUTPUT__EVENT_DECLARATION: | ||
300 | return eventDeclaration != null; | ||
301 | case CftPackage.OUTPUT__OUTGOING_CONNECTIONS: | ||
302 | return outgoingConnections != null && !outgoingConnections.isEmpty(); | ||
303 | case CftPackage.OUTPUT__COMPONENT: | ||
304 | return getComponent() != null; | ||
305 | } | ||
306 | return super.eIsSet(featureID); | ||
307 | } | ||
308 | |||
309 | } //OutputImpl | ||
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 deleted file mode 100644 index f5d3bf83..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftAdapterFactory.java +++ /dev/null | |||
@@ -1,372 +0,0 @@ | |||
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 caseInputEvent(InputEvent object) { | ||
88 | return createInputEventAdapter(); | ||
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 caseModalElement(ModalElement object) { | ||
128 | return createModalElementAdapter(); | ||
129 | } | ||
130 | @Override | ||
131 | public Adapter defaultCase(EObject object) { | ||
132 | return createEObjectAdapter(); | ||
133 | } | ||
134 | }; | ||
135 | |||
136 | /** | ||
137 | * Creates an adapter for the <code>target</code>. | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @param target the object to adapt. | ||
141 | * @return the adapter for the <code>target</code>. | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public Adapter createAdapter(Notifier target) { | ||
146 | return modelSwitch.doSwitch((EObject)target); | ||
147 | } | ||
148 | |||
149 | |||
150 | /** | ||
151 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition <em>Component Definition</em>}'. | ||
152 | * <!-- begin-user-doc --> | ||
153 | * This default implementation returns null so that we can easily ignore cases; | ||
154 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
155 | * <!-- end-user-doc --> | ||
156 | * @return the new adapter. | ||
157 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition | ||
158 | * @generated | ||
159 | */ | ||
160 | public Adapter createComponentDefinitionAdapter() { | ||
161 | return null; | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition <em>Event Definition</em>}'. | ||
166 | * <!-- begin-user-doc --> | ||
167 | * This default implementation returns null so that we can easily ignore cases; | ||
168 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
169 | * <!-- end-user-doc --> | ||
170 | * @return the new adapter. | ||
171 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition | ||
172 | * @generated | ||
173 | */ | ||
174 | public Adapter createEventDefinitionAdapter() { | ||
175 | return null; | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition <em>Gate Definition</em>}'. | ||
180 | * <!-- begin-user-doc --> | ||
181 | * This default implementation returns null so that we can easily ignore cases; | ||
182 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
183 | * <!-- end-user-doc --> | ||
184 | * @return the new adapter. | ||
185 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition | ||
186 | * @generated | ||
187 | */ | ||
188 | public Adapter createGateDefinitionAdapter() { | ||
189 | return null; | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
194 | * <!-- begin-user-doc --> | ||
195 | * This default implementation returns null so that we can easily ignore cases; | ||
196 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
197 | * <!-- end-user-doc --> | ||
198 | * @return the new adapter. | ||
199 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition | ||
200 | * @generated | ||
201 | */ | ||
202 | public Adapter createBasicEventDefinitionAdapter() { | ||
203 | return null; | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent <em>Input Event</em>}'. | ||
208 | * <!-- begin-user-doc --> | ||
209 | * This default implementation returns null so that we can easily ignore cases; | ||
210 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
211 | * <!-- end-user-doc --> | ||
212 | * @return the new adapter. | ||
213 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent | ||
214 | * @generated | ||
215 | */ | ||
216 | public Adapter createInputEventAdapter() { | ||
217 | return null; | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration <em>Event Declaration</em>}'. | ||
222 | * <!-- begin-user-doc --> | ||
223 | * This default implementation returns null so that we can easily ignore cases; | ||
224 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
225 | * <!-- end-user-doc --> | ||
226 | * @return the new adapter. | ||
227 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration | ||
228 | * @generated | ||
229 | */ | ||
230 | public Adapter createEventDeclarationAdapter() { | ||
231 | return null; | ||
232 | } | ||
233 | |||
234 | /** | ||
235 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition <em>And Gate Definition</em>}'. | ||
236 | * <!-- begin-user-doc --> | ||
237 | * This default implementation returns null so that we can easily ignore cases; | ||
238 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
239 | * <!-- end-user-doc --> | ||
240 | * @return the new adapter. | ||
241 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition | ||
242 | * @generated | ||
243 | */ | ||
244 | public Adapter createAndGateDefinitionAdapter() { | ||
245 | return null; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition <em>Or Gate Definition</em>}'. | ||
250 | * <!-- begin-user-doc --> | ||
251 | * This default implementation returns null so that we can easily ignore cases; | ||
252 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
253 | * <!-- end-user-doc --> | ||
254 | * @return the new adapter. | ||
255 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition | ||
256 | * @generated | ||
257 | */ | ||
258 | public Adapter createOrGateDefinitionAdapter() { | ||
259 | return null; | ||
260 | } | ||
261 | |||
262 | /** | ||
263 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition <em>KOf MGate Definition</em>}'. | ||
264 | * <!-- begin-user-doc --> | ||
265 | * This default implementation returns null so that we can easily ignore cases; | ||
266 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
267 | * <!-- end-user-doc --> | ||
268 | * @return the new adapter. | ||
269 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition | ||
270 | * @generated | ||
271 | */ | ||
272 | public Adapter createKOfMGateDefinitionAdapter() { | ||
273 | return null; | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree <em>Component Fault Tree</em>}'. | ||
278 | * <!-- begin-user-doc --> | ||
279 | * This default implementation returns null so that we can easily ignore cases; | ||
280 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
281 | * <!-- end-user-doc --> | ||
282 | * @return the new adapter. | ||
283 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree | ||
284 | * @generated | ||
285 | */ | ||
286 | public Adapter createComponentFaultTreeAdapter() { | ||
287 | return null; | ||
288 | } | ||
289 | |||
290 | /** | ||
291 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component <em>Component</em>}'. | ||
292 | * <!-- begin-user-doc --> | ||
293 | * This default implementation returns null so that we can easily ignore cases; | ||
294 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
295 | * <!-- end-user-doc --> | ||
296 | * @return the new adapter. | ||
297 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component | ||
298 | * @generated | ||
299 | */ | ||
300 | public Adapter createComponentAdapter() { | ||
301 | return null; | ||
302 | } | ||
303 | |||
304 | /** | ||
305 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input <em>Input</em>}'. | ||
306 | * <!-- begin-user-doc --> | ||
307 | * This default implementation returns null so that we can easily ignore cases; | ||
308 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
309 | * <!-- end-user-doc --> | ||
310 | * @return the new adapter. | ||
311 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input | ||
312 | * @generated | ||
313 | */ | ||
314 | public Adapter createInputAdapter() { | ||
315 | return null; | ||
316 | } | ||
317 | |||
318 | /** | ||
319 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output <em>Output</em>}'. | ||
320 | * <!-- begin-user-doc --> | ||
321 | * This default implementation returns null so that we can easily ignore cases; | ||
322 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
323 | * <!-- end-user-doc --> | ||
324 | * @return the new adapter. | ||
325 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output | ||
326 | * @generated | ||
327 | */ | ||
328 | public Adapter createOutputAdapter() { | ||
329 | return null; | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection <em>Connection</em>}'. | ||
334 | * <!-- begin-user-doc --> | ||
335 | * This default implementation returns null so that we can easily ignore cases; | ||
336 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
337 | * <!-- end-user-doc --> | ||
338 | * @return the new adapter. | ||
339 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection | ||
340 | * @generated | ||
341 | */ | ||
342 | public Adapter createConnectionAdapter() { | ||
343 | return null; | ||
344 | } | ||
345 | |||
346 | /** | ||
347 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement <em>Modal Element</em>}'. | ||
348 | * <!-- begin-user-doc --> | ||
349 | * This default implementation returns null so that we can easily ignore cases; | ||
350 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
351 | * <!-- end-user-doc --> | ||
352 | * @return the new adapter. | ||
353 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement | ||
354 | * @generated | ||
355 | */ | ||
356 | public Adapter createModalElementAdapter() { | ||
357 | return null; | ||
358 | } | ||
359 | |||
360 | /** | ||
361 | * Creates a new adapter for the default case. | ||
362 | * <!-- begin-user-doc --> | ||
363 | * This default implementation returns null. | ||
364 | * <!-- end-user-doc --> | ||
365 | * @return the new adapter. | ||
366 | * @generated | ||
367 | */ | ||
368 | public Adapter createEObjectAdapter() { | ||
369 | return null; | ||
370 | } | ||
371 | |||
372 | } //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 deleted file mode 100644 index 3c5a4fd9..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java +++ /dev/null | |||
@@ -1,421 +0,0 @@ | |||
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.INPUT_EVENT: { | ||
99 | InputEvent inputEvent = (InputEvent)theEObject; | ||
100 | T result = caseInputEvent(inputEvent); | ||
101 | if (result == null) result = caseEventDeclaration(inputEvent); | ||
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 = caseModalElement(component); | ||
148 | if (result == null) result = defaultCase(theEObject); | ||
149 | return result; | ||
150 | } | ||
151 | case CftPackage.INPUT: { | ||
152 | Input input = (Input)theEObject; | ||
153 | T result = caseInput(input); | ||
154 | if (result == null) result = defaultCase(theEObject); | ||
155 | return result; | ||
156 | } | ||
157 | case CftPackage.OUTPUT: { | ||
158 | Output output = (Output)theEObject; | ||
159 | T result = caseOutput(output); | ||
160 | if (result == null) result = defaultCase(theEObject); | ||
161 | return result; | ||
162 | } | ||
163 | case CftPackage.CONNECTION: { | ||
164 | Connection connection = (Connection)theEObject; | ||
165 | T result = caseConnection(connection); | ||
166 | if (result == null) result = caseModalElement(connection); | ||
167 | if (result == null) result = defaultCase(theEObject); | ||
168 | return result; | ||
169 | } | ||
170 | case CftPackage.MODAL_ELEMENT: { | ||
171 | ModalElement modalElement = (ModalElement)theEObject; | ||
172 | T result = caseModalElement(modalElement); | ||
173 | if (result == null) result = defaultCase(theEObject); | ||
174 | return result; | ||
175 | } | ||
176 | default: return defaultCase(theEObject); | ||
177 | } | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * Returns the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * This implementation returns null; | ||
184 | * returning a non-null result will terminate the switch. | ||
185 | * <!-- end-user-doc --> | ||
186 | * @param object the target of the switch. | ||
187 | * @return the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
188 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
189 | * @generated | ||
190 | */ | ||
191 | public T caseComponentDefinition(ComponentDefinition object) { | ||
192 | return null; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * Returns the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
197 | * <!-- begin-user-doc --> | ||
198 | * This implementation returns null; | ||
199 | * returning a non-null result will terminate the switch. | ||
200 | * <!-- end-user-doc --> | ||
201 | * @param object the target of the switch. | ||
202 | * @return the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
203 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
204 | * @generated | ||
205 | */ | ||
206 | public T caseEventDefinition(EventDefinition object) { | ||
207 | return null; | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * Returns the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
212 | * <!-- begin-user-doc --> | ||
213 | * This implementation returns null; | ||
214 | * returning a non-null result will terminate the switch. | ||
215 | * <!-- end-user-doc --> | ||
216 | * @param object the target of the switch. | ||
217 | * @return the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
218 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
219 | * @generated | ||
220 | */ | ||
221 | public T caseGateDefinition(GateDefinition object) { | ||
222 | return null; | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * Returns the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
227 | * <!-- begin-user-doc --> | ||
228 | * This implementation returns null; | ||
229 | * returning a non-null result will terminate the switch. | ||
230 | * <!-- end-user-doc --> | ||
231 | * @param object the target of the switch. | ||
232 | * @return the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
233 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
234 | * @generated | ||
235 | */ | ||
236 | public T caseBasicEventDefinition(BasicEventDefinition object) { | ||
237 | return null; | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * Returns the result of interpreting the object as an instance of '<em>Input Event</em>'. | ||
242 | * <!-- begin-user-doc --> | ||
243 | * This implementation returns null; | ||
244 | * returning a non-null result will terminate the switch. | ||
245 | * <!-- end-user-doc --> | ||
246 | * @param object the target of the switch. | ||
247 | * @return the result of interpreting the object as an instance of '<em>Input Event</em>'. | ||
248 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
249 | * @generated | ||
250 | */ | ||
251 | public T caseInputEvent(InputEvent object) { | ||
252 | return null; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * Returns the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
257 | * <!-- begin-user-doc --> | ||
258 | * This implementation returns null; | ||
259 | * returning a non-null result will terminate the switch. | ||
260 | * <!-- end-user-doc --> | ||
261 | * @param object the target of the switch. | ||
262 | * @return the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
263 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
264 | * @generated | ||
265 | */ | ||
266 | public T caseEventDeclaration(EventDeclaration object) { | ||
267 | return null; | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * Returns the result of interpreting the object as an instance of '<em>And Gate Definition</em>'. | ||
272 | * <!-- begin-user-doc --> | ||
273 | * This implementation returns null; | ||
274 | * returning a non-null result will terminate the switch. | ||
275 | * <!-- end-user-doc --> | ||
276 | * @param object the target of the switch. | ||
277 | * @return the result of interpreting the object as an instance of '<em>And Gate Definition</em>'. | ||
278 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
279 | * @generated | ||
280 | */ | ||
281 | public T caseAndGateDefinition(AndGateDefinition object) { | ||
282 | return null; | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * Returns the result of interpreting the object as an instance of '<em>Or Gate Definition</em>'. | ||
287 | * <!-- begin-user-doc --> | ||
288 | * This implementation returns null; | ||
289 | * returning a non-null result will terminate the switch. | ||
290 | * <!-- end-user-doc --> | ||
291 | * @param object the target of the switch. | ||
292 | * @return the result of interpreting the object as an instance of '<em>Or Gate Definition</em>'. | ||
293 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
294 | * @generated | ||
295 | */ | ||
296 | public T caseOrGateDefinition(OrGateDefinition object) { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Returns the result of interpreting the object as an instance of '<em>KOf MGate Definition</em>'. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * This implementation returns null; | ||
304 | * returning a non-null result will terminate the switch. | ||
305 | * <!-- end-user-doc --> | ||
306 | * @param object the target of the switch. | ||
307 | * @return the result of interpreting the object as an instance of '<em>KOf MGate Definition</em>'. | ||
308 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
309 | * @generated | ||
310 | */ | ||
311 | public T caseKOfMGateDefinition(KOfMGateDefinition object) { | ||
312 | return null; | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * Returns the result of interpreting the object as an instance of '<em>Component Fault Tree</em>'. | ||
317 | * <!-- begin-user-doc --> | ||
318 | * This implementation returns null; | ||
319 | * returning a non-null result will terminate the switch. | ||
320 | * <!-- end-user-doc --> | ||
321 | * @param object the target of the switch. | ||
322 | * @return the result of interpreting the object as an instance of '<em>Component Fault Tree</em>'. | ||
323 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
324 | * @generated | ||
325 | */ | ||
326 | public T caseComponentFaultTree(ComponentFaultTree object) { | ||
327 | return null; | ||
328 | } | ||
329 | |||
330 | /** | ||
331 | * Returns the result of interpreting the object as an instance of '<em>Component</em>'. | ||
332 | * <!-- begin-user-doc --> | ||
333 | * This implementation returns null; | ||
334 | * returning a non-null result will terminate the switch. | ||
335 | * <!-- end-user-doc --> | ||
336 | * @param object the target of the switch. | ||
337 | * @return the result of interpreting the object as an instance of '<em>Component</em>'. | ||
338 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
339 | * @generated | ||
340 | */ | ||
341 | public T caseComponent(Component object) { | ||
342 | return null; | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * Returns the result of interpreting the object as an instance of '<em>Input</em>'. | ||
347 | * <!-- begin-user-doc --> | ||
348 | * This implementation returns null; | ||
349 | * returning a non-null result will terminate the switch. | ||
350 | * <!-- end-user-doc --> | ||
351 | * @param object the target of the switch. | ||
352 | * @return the result of interpreting the object as an instance of '<em>Input</em>'. | ||
353 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
354 | * @generated | ||
355 | */ | ||
356 | public T caseInput(Input object) { | ||
357 | return null; | ||
358 | } | ||
359 | |||
360 | /** | ||
361 | * Returns the result of interpreting the object as an instance of '<em>Output</em>'. | ||
362 | * <!-- begin-user-doc --> | ||
363 | * This implementation returns null; | ||
364 | * returning a non-null result will terminate the switch. | ||
365 | * <!-- end-user-doc --> | ||
366 | * @param object the target of the switch. | ||
367 | * @return the result of interpreting the object as an instance of '<em>Output</em>'. | ||
368 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
369 | * @generated | ||
370 | */ | ||
371 | public T caseOutput(Output object) { | ||
372 | return null; | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * Returns the result of interpreting the object as an instance of '<em>Connection</em>'. | ||
377 | * <!-- begin-user-doc --> | ||
378 | * This implementation returns null; | ||
379 | * returning a non-null result will terminate the switch. | ||
380 | * <!-- end-user-doc --> | ||
381 | * @param object the target of the switch. | ||
382 | * @return the result of interpreting the object as an instance of '<em>Connection</em>'. | ||
383 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
384 | * @generated | ||
385 | */ | ||
386 | public T caseConnection(Connection object) { | ||
387 | return null; | ||
388 | } | ||
389 | |||
390 | /** | ||
391 | * Returns the result of interpreting the object as an instance of '<em>Modal Element</em>'. | ||
392 | * <!-- begin-user-doc --> | ||
393 | * This implementation returns null; | ||
394 | * returning a non-null result will terminate the switch. | ||
395 | * <!-- end-user-doc --> | ||
396 | * @param object the target of the switch. | ||
397 | * @return the result of interpreting the object as an instance of '<em>Modal Element</em>'. | ||
398 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
399 | * @generated | ||
400 | */ | ||
401 | public T caseModalElement(ModalElement object) { | ||
402 | return null; | ||
403 | } | ||
404 | |||
405 | /** | ||
406 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
407 | * <!-- begin-user-doc --> | ||
408 | * This implementation returns null; | ||
409 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
410 | * <!-- end-user-doc --> | ||
411 | * @param object the target of the switch. | ||
412 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
413 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
414 | * @generated | ||
415 | */ | ||
416 | @Override | ||
417 | public T defaultCase(EObject object) { | ||
418 | return null; | ||
419 | } | ||
420 | |||
421 | } //CftSwitch | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/AndGate.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/AndGate.java deleted file mode 100644 index 5591557c..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/AndGate.java +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>And Gate</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * | ||
12 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getAndGate() | ||
13 | * @model | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface AndGate extends Gate { | ||
17 | } // AndGate | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/BasicEvent.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/BasicEvent.java deleted file mode 100644 index 63b8d0ed..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/BasicEvent.java +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Basic Event</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent#getDistribution <em>Distribution</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getBasicEvent() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface BasicEvent extends RandomEvent { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Distribution</b></em>' containment reference. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <p> | ||
27 | * If the meaning of the '<em>Distribution</em>' containment reference isn't clear, | ||
28 | * there really should be more of a description here... | ||
29 | * </p> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @return the value of the '<em>Distribution</em>' containment reference. | ||
32 | * @see #setDistribution(Distribution) | ||
33 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getBasicEvent_Distribution() | ||
34 | * @model containment="true" required="true" | ||
35 | * @generated | ||
36 | */ | ||
37 | Distribution getDistribution(); | ||
38 | |||
39 | /** | ||
40 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent#getDistribution <em>Distribution</em>}' containment reference. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @param value the new value of the '<em>Distribution</em>' containment reference. | ||
44 | * @see #getDistribution() | ||
45 | * @generated | ||
46 | */ | ||
47 | void setDistribution(Distribution value); | ||
48 | |||
49 | } // BasicEvent | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ConstantDistribution.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ConstantDistribution.java deleted file mode 100644 index 873c1fd3..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ConstantDistribution.java +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Constant Distribution</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution#getP <em>P</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getConstantDistribution() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface ConstantDistribution extends Distribution { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>P</b></em>' attribute. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <p> | ||
27 | * If the meaning of the '<em>P</em>' attribute isn't clear, | ||
28 | * there really should be more of a description here... | ||
29 | * </p> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @return the value of the '<em>P</em>' attribute. | ||
32 | * @see #setP(double) | ||
33 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getConstantDistribution_P() | ||
34 | * @model | ||
35 | * @generated | ||
36 | */ | ||
37 | double getP(); | ||
38 | |||
39 | /** | ||
40 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution#getP <em>P</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @param value the new value of the '<em>P</em>' attribute. | ||
44 | * @see #getP() | ||
45 | * @generated | ||
46 | */ | ||
47 | void setP(double value); | ||
48 | |||
49 | } // ConstantDistribution | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ConstantEvent.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ConstantEvent.java deleted file mode 100644 index a171fc95..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ConstantEvent.java +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Constant Event</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantEvent#isFailed <em>Failed</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getConstantEvent() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface ConstantEvent extends Event { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Failed</b></em>' attribute. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <p> | ||
27 | * If the meaning of the '<em>Failed</em>' attribute isn't clear, | ||
28 | * there really should be more of a description here... | ||
29 | * </p> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @return the value of the '<em>Failed</em>' attribute. | ||
32 | * @see #setFailed(boolean) | ||
33 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getConstantEvent_Failed() | ||
34 | * @model | ||
35 | * @generated | ||
36 | */ | ||
37 | boolean isFailed(); | ||
38 | |||
39 | /** | ||
40 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantEvent#isFailed <em>Failed</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @param value the new value of the '<em>Failed</em>' attribute. | ||
44 | * @see #isFailed() | ||
45 | * @generated | ||
46 | */ | ||
47 | void setFailed(boolean value); | ||
48 | |||
49 | } // ConstantEvent | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ConstantModel.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ConstantModel.java deleted file mode 100644 index 5649559f..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ConstantModel.java +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Constant Model</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantModel#isFailed <em>Failed</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getConstantModel() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface ConstantModel extends ReliabilityModel { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Failed</b></em>' attribute. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <p> | ||
27 | * If the meaning of the '<em>Failed</em>' attribute isn't clear, | ||
28 | * there really should be more of a description here... | ||
29 | * </p> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @return the value of the '<em>Failed</em>' attribute. | ||
32 | * @see #setFailed(boolean) | ||
33 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getConstantModel_Failed() | ||
34 | * @model | ||
35 | * @generated | ||
36 | */ | ||
37 | boolean isFailed(); | ||
38 | |||
39 | /** | ||
40 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantModel#isFailed <em>Failed</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @param value the new value of the '<em>Failed</em>' attribute. | ||
44 | * @see #isFailed() | ||
45 | * @generated | ||
46 | */ | ||
47 | void setFailed(boolean value); | ||
48 | |||
49 | } // ConstantModel | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/Distribution.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/Distribution.java deleted file mode 100644 index 4435f5ef..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/Distribution.java +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Distribution</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getDistribution() | ||
14 | * @model abstract="true" | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface Distribution extends EObject { | ||
18 | } // Distribution | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/Event.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/Event.java deleted file mode 100644 index a5a905a0..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/Event.java +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Event</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getEvent() | ||
14 | * @model abstract="true" | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface Event extends EObject { | ||
18 | } // Event | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ExponentialDistribution.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ExponentialDistribution.java deleted file mode 100644 index 7fdd448b..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ExponentialDistribution.java +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Exponential Distribution</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution#getLambda <em>Lambda</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getExponentialDistribution() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface ExponentialDistribution extends Distribution { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Lambda</b></em>' attribute. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <p> | ||
27 | * If the meaning of the '<em>Lambda</em>' attribute isn't clear, | ||
28 | * there really should be more of a description here... | ||
29 | * </p> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @return the value of the '<em>Lambda</em>' attribute. | ||
32 | * @see #setLambda(double) | ||
33 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getExponentialDistribution_Lambda() | ||
34 | * @model | ||
35 | * @generated | ||
36 | */ | ||
37 | double getLambda(); | ||
38 | |||
39 | /** | ||
40 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution#getLambda <em>Lambda</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @param value the new value of the '<em>Lambda</em>' attribute. | ||
44 | * @see #getLambda() | ||
45 | * @generated | ||
46 | */ | ||
47 | void setLambda(double value); | ||
48 | |||
49 | } // ExponentialDistribution | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/FaultTree.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/FaultTree.java deleted file mode 100644 index 0bf258be..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/FaultTree.java +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Fault Tree</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree#getEvents <em>Events</em>}</li> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree#getTopEvent <em>Top Event</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getFaultTree() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface FaultTree extends ReliabilityModel { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Events</b></em>' containment reference list. | ||
27 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent}. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Events</em>' containment reference list isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Events</em>' containment reference list. | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getFaultTree_Events() | ||
36 | * @model containment="true" | ||
37 | * @generated | ||
38 | */ | ||
39 | EList<RandomEvent> getEvents(); | ||
40 | |||
41 | /** | ||
42 | * Returns the value of the '<em><b>Top Event</b></em>' reference. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <p> | ||
45 | * If the meaning of the '<em>Top Event</em>' reference isn't clear, | ||
46 | * there really should be more of a description here... | ||
47 | * </p> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @return the value of the '<em>Top Event</em>' reference. | ||
50 | * @see #setTopEvent(RandomEvent) | ||
51 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getFaultTree_TopEvent() | ||
52 | * @model required="true" | ||
53 | * @generated | ||
54 | */ | ||
55 | RandomEvent getTopEvent(); | ||
56 | |||
57 | /** | ||
58 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree#getTopEvent <em>Top Event</em>}' reference. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @param value the new value of the '<em>Top Event</em>' reference. | ||
62 | * @see #getTopEvent() | ||
63 | * @generated | ||
64 | */ | ||
65 | void setTopEvent(RandomEvent value); | ||
66 | |||
67 | } // FaultTree | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/FtFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/FtFactory.java deleted file mode 100644 index 7d420e34..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/FtFactory.java +++ /dev/null | |||
@@ -1,114 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EFactory; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * The <b>Factory</b> for the model. | ||
10 | * It provides a create method for each non-abstract class of the model. | ||
11 | * <!-- end-user-doc --> | ||
12 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage | ||
13 | * @generated | ||
14 | */ | ||
15 | public interface FtFactory extends EFactory { | ||
16 | /** | ||
17 | * The singleton instance of the factory. | ||
18 | * <!-- begin-user-doc --> | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | FtFactory eINSTANCE = hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtFactoryImpl.init(); | ||
23 | |||
24 | /** | ||
25 | * Returns a new object of class '<em>Fault Tree</em>'. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @return a new object of class '<em>Fault Tree</em>'. | ||
29 | * @generated | ||
30 | */ | ||
31 | FaultTree createFaultTree(); | ||
32 | |||
33 | /** | ||
34 | * Returns a new object of class '<em>Basic Event</em>'. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @return a new object of class '<em>Basic Event</em>'. | ||
38 | * @generated | ||
39 | */ | ||
40 | BasicEvent createBasicEvent(); | ||
41 | |||
42 | /** | ||
43 | * Returns a new object of class '<em>Constant Distribution</em>'. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @return a new object of class '<em>Constant Distribution</em>'. | ||
47 | * @generated | ||
48 | */ | ||
49 | ConstantDistribution createConstantDistribution(); | ||
50 | |||
51 | /** | ||
52 | * Returns a new object of class '<em>Exponential Distribution</em>'. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @return a new object of class '<em>Exponential Distribution</em>'. | ||
56 | * @generated | ||
57 | */ | ||
58 | ExponentialDistribution createExponentialDistribution(); | ||
59 | |||
60 | /** | ||
61 | * Returns a new object of class '<em>And Gate</em>'. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @return a new object of class '<em>And Gate</em>'. | ||
65 | * @generated | ||
66 | */ | ||
67 | AndGate createAndGate(); | ||
68 | |||
69 | /** | ||
70 | * Returns a new object of class '<em>Or Gate</em>'. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @return a new object of class '<em>Or Gate</em>'. | ||
74 | * @generated | ||
75 | */ | ||
76 | OrGate createOrGate(); | ||
77 | |||
78 | /** | ||
79 | * Returns a new object of class '<em>KOf MGate</em>'. | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @return a new object of class '<em>KOf MGate</em>'. | ||
83 | * @generated | ||
84 | */ | ||
85 | KOfMGate createKOfMGate(); | ||
86 | |||
87 | /** | ||
88 | * Returns a new object of class '<em>Constant Model</em>'. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @return a new object of class '<em>Constant Model</em>'. | ||
92 | * @generated | ||
93 | */ | ||
94 | ConstantModel createConstantModel(); | ||
95 | |||
96 | /** | ||
97 | * Returns a new object of class '<em>Constant Event</em>'. | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @return a new object of class '<em>Constant Event</em>'. | ||
101 | * @generated | ||
102 | */ | ||
103 | ConstantEvent createConstantEvent(); | ||
104 | |||
105 | /** | ||
106 | * Returns the package supported by this factory. | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @return the package supported by this factory. | ||
110 | * @generated | ||
111 | */ | ||
112 | FtPackage getFtPackage(); | ||
113 | |||
114 | } //FtFactory | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/FtPackage.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/FtPackage.java deleted file mode 100644 index dd35d666..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/FtPackage.java +++ /dev/null | |||
@@ -1,1109 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EPackage; | ||
8 | import org.eclipse.emf.ecore.EReference; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * The <b>Package</b> for the model. | ||
13 | * It contains accessors for the meta objects to represent | ||
14 | * <ul> | ||
15 | * <li>each class,</li> | ||
16 | * <li>each feature of each class,</li> | ||
17 | * <li>each operation of each class,</li> | ||
18 | * <li>each enum,</li> | ||
19 | * <li>and each data type</li> | ||
20 | * </ul> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtFactory | ||
23 | * @model kind="package" | ||
24 | * @generated | ||
25 | */ | ||
26 | public interface FtPackage extends EPackage { | ||
27 | /** | ||
28 | * The package name. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @generated | ||
32 | */ | ||
33 | String eNAME = "ft"; | ||
34 | |||
35 | /** | ||
36 | * The package namespace URI. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @generated | ||
40 | */ | ||
41 | String eNS_URI = "http://www.bme.hu/mit/inf/dslreasoner/faulttree/model/ft"; | ||
42 | |||
43 | /** | ||
44 | * The package namespace name. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @generated | ||
48 | */ | ||
49 | String eNS_PREFIX = "ft"; | ||
50 | |||
51 | /** | ||
52 | * The singleton instance of the package. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | FtPackage eINSTANCE = hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl.init(); | ||
58 | |||
59 | /** | ||
60 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ReliabilityModelImpl <em>Reliability Model</em>}' class. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ReliabilityModelImpl | ||
64 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getReliabilityModel() | ||
65 | * @generated | ||
66 | */ | ||
67 | int RELIABILITY_MODEL = 10; | ||
68 | |||
69 | /** | ||
70 | * The number of structural features of the '<em>Reliability Model</em>' class. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | * @ordered | ||
75 | */ | ||
76 | int RELIABILITY_MODEL_FEATURE_COUNT = 0; | ||
77 | |||
78 | /** | ||
79 | * The number of operations of the '<em>Reliability Model</em>' class. | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | int RELIABILITY_MODEL_OPERATION_COUNT = 0; | ||
86 | |||
87 | /** | ||
88 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FaultTreeImpl <em>Fault Tree</em>}' class. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FaultTreeImpl | ||
92 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getFaultTree() | ||
93 | * @generated | ||
94 | */ | ||
95 | int FAULT_TREE = 0; | ||
96 | |||
97 | /** | ||
98 | * The feature id for the '<em><b>Events</b></em>' containment reference list. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | * @ordered | ||
103 | */ | ||
104 | int FAULT_TREE__EVENTS = RELIABILITY_MODEL_FEATURE_COUNT + 0; | ||
105 | |||
106 | /** | ||
107 | * The feature id for the '<em><b>Top Event</b></em>' reference. | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | * @ordered | ||
112 | */ | ||
113 | int FAULT_TREE__TOP_EVENT = RELIABILITY_MODEL_FEATURE_COUNT + 1; | ||
114 | |||
115 | /** | ||
116 | * The number of structural features of the '<em>Fault Tree</em>' class. | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | * @ordered | ||
121 | */ | ||
122 | int FAULT_TREE_FEATURE_COUNT = RELIABILITY_MODEL_FEATURE_COUNT + 2; | ||
123 | |||
124 | /** | ||
125 | * The number of operations of the '<em>Fault Tree</em>' class. | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | * @ordered | ||
130 | */ | ||
131 | int FAULT_TREE_OPERATION_COUNT = RELIABILITY_MODEL_OPERATION_COUNT + 0; | ||
132 | |||
133 | /** | ||
134 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.EventImpl <em>Event</em>}' class. | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.EventImpl | ||
138 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getEvent() | ||
139 | * @generated | ||
140 | */ | ||
141 | int EVENT = 12; | ||
142 | |||
143 | /** | ||
144 | * The number of structural features of the '<em>Event</em>' class. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | * @ordered | ||
149 | */ | ||
150 | int EVENT_FEATURE_COUNT = 0; | ||
151 | |||
152 | /** | ||
153 | * The number of operations of the '<em>Event</em>' class. | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | * @ordered | ||
158 | */ | ||
159 | int EVENT_OPERATION_COUNT = 0; | ||
160 | |||
161 | /** | ||
162 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.RandomEventImpl <em>Random Event</em>}' class. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.RandomEventImpl | ||
166 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getRandomEvent() | ||
167 | * @generated | ||
168 | */ | ||
169 | int RANDOM_EVENT = 1; | ||
170 | |||
171 | /** | ||
172 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | * @ordered | ||
177 | */ | ||
178 | int RANDOM_EVENT__NAME = EVENT_FEATURE_COUNT + 0; | ||
179 | |||
180 | /** | ||
181 | * The number of structural features of the '<em>Random Event</em>' class. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | * @ordered | ||
186 | */ | ||
187 | int RANDOM_EVENT_FEATURE_COUNT = EVENT_FEATURE_COUNT + 1; | ||
188 | |||
189 | /** | ||
190 | * The number of operations of the '<em>Random Event</em>' class. | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | * @ordered | ||
195 | */ | ||
196 | int RANDOM_EVENT_OPERATION_COUNT = EVENT_OPERATION_COUNT + 0; | ||
197 | |||
198 | /** | ||
199 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.BasicEventImpl <em>Basic Event</em>}' class. | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.BasicEventImpl | ||
203 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getBasicEvent() | ||
204 | * @generated | ||
205 | */ | ||
206 | int BASIC_EVENT = 2; | ||
207 | |||
208 | /** | ||
209 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | * @ordered | ||
214 | */ | ||
215 | int BASIC_EVENT__NAME = RANDOM_EVENT__NAME; | ||
216 | |||
217 | /** | ||
218 | * The feature id for the '<em><b>Distribution</b></em>' containment reference. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | * @ordered | ||
223 | */ | ||
224 | int BASIC_EVENT__DISTRIBUTION = RANDOM_EVENT_FEATURE_COUNT + 0; | ||
225 | |||
226 | /** | ||
227 | * The number of structural features of the '<em>Basic Event</em>' class. | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | * @ordered | ||
232 | */ | ||
233 | int BASIC_EVENT_FEATURE_COUNT = RANDOM_EVENT_FEATURE_COUNT + 1; | ||
234 | |||
235 | /** | ||
236 | * The number of operations of the '<em>Basic Event</em>' class. | ||
237 | * <!-- begin-user-doc --> | ||
238 | * <!-- end-user-doc --> | ||
239 | * @generated | ||
240 | * @ordered | ||
241 | */ | ||
242 | int BASIC_EVENT_OPERATION_COUNT = RANDOM_EVENT_OPERATION_COUNT + 0; | ||
243 | |||
244 | /** | ||
245 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.GateImpl <em>Gate</em>}' class. | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.GateImpl | ||
249 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getGate() | ||
250 | * @generated | ||
251 | */ | ||
252 | int GATE = 3; | ||
253 | |||
254 | /** | ||
255 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | * @ordered | ||
260 | */ | ||
261 | int GATE__NAME = RANDOM_EVENT__NAME; | ||
262 | |||
263 | /** | ||
264 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @generated | ||
268 | * @ordered | ||
269 | */ | ||
270 | int GATE__INPUT_EVENTS = RANDOM_EVENT_FEATURE_COUNT + 0; | ||
271 | |||
272 | /** | ||
273 | * The number of structural features of the '<em>Gate</em>' class. | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | * @ordered | ||
278 | */ | ||
279 | int GATE_FEATURE_COUNT = RANDOM_EVENT_FEATURE_COUNT + 1; | ||
280 | |||
281 | /** | ||
282 | * The number of operations of the '<em>Gate</em>' class. | ||
283 | * <!-- begin-user-doc --> | ||
284 | * <!-- end-user-doc --> | ||
285 | * @generated | ||
286 | * @ordered | ||
287 | */ | ||
288 | int GATE_OPERATION_COUNT = RANDOM_EVENT_OPERATION_COUNT + 0; | ||
289 | |||
290 | /** | ||
291 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.DistributionImpl <em>Distribution</em>}' class. | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.DistributionImpl | ||
295 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getDistribution() | ||
296 | * @generated | ||
297 | */ | ||
298 | int DISTRIBUTION = 4; | ||
299 | |||
300 | /** | ||
301 | * The number of structural features of the '<em>Distribution</em>' class. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * <!-- end-user-doc --> | ||
304 | * @generated | ||
305 | * @ordered | ||
306 | */ | ||
307 | int DISTRIBUTION_FEATURE_COUNT = 0; | ||
308 | |||
309 | /** | ||
310 | * The number of operations of the '<em>Distribution</em>' class. | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | * @ordered | ||
315 | */ | ||
316 | int DISTRIBUTION_OPERATION_COUNT = 0; | ||
317 | |||
318 | /** | ||
319 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantDistributionImpl <em>Constant Distribution</em>}' class. | ||
320 | * <!-- begin-user-doc --> | ||
321 | * <!-- end-user-doc --> | ||
322 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantDistributionImpl | ||
323 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getConstantDistribution() | ||
324 | * @generated | ||
325 | */ | ||
326 | int CONSTANT_DISTRIBUTION = 5; | ||
327 | |||
328 | /** | ||
329 | * The feature id for the '<em><b>P</b></em>' attribute. | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @generated | ||
333 | * @ordered | ||
334 | */ | ||
335 | int CONSTANT_DISTRIBUTION__P = DISTRIBUTION_FEATURE_COUNT + 0; | ||
336 | |||
337 | /** | ||
338 | * The number of structural features of the '<em>Constant Distribution</em>' class. | ||
339 | * <!-- begin-user-doc --> | ||
340 | * <!-- end-user-doc --> | ||
341 | * @generated | ||
342 | * @ordered | ||
343 | */ | ||
344 | int CONSTANT_DISTRIBUTION_FEATURE_COUNT = DISTRIBUTION_FEATURE_COUNT + 1; | ||
345 | |||
346 | /** | ||
347 | * The number of operations of the '<em>Constant Distribution</em>' class. | ||
348 | * <!-- begin-user-doc --> | ||
349 | * <!-- end-user-doc --> | ||
350 | * @generated | ||
351 | * @ordered | ||
352 | */ | ||
353 | int CONSTANT_DISTRIBUTION_OPERATION_COUNT = DISTRIBUTION_OPERATION_COUNT + 0; | ||
354 | |||
355 | /** | ||
356 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ExponentialDistributionImpl <em>Exponential Distribution</em>}' class. | ||
357 | * <!-- begin-user-doc --> | ||
358 | * <!-- end-user-doc --> | ||
359 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ExponentialDistributionImpl | ||
360 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getExponentialDistribution() | ||
361 | * @generated | ||
362 | */ | ||
363 | int EXPONENTIAL_DISTRIBUTION = 6; | ||
364 | |||
365 | /** | ||
366 | * The feature id for the '<em><b>Lambda</b></em>' attribute. | ||
367 | * <!-- begin-user-doc --> | ||
368 | * <!-- end-user-doc --> | ||
369 | * @generated | ||
370 | * @ordered | ||
371 | */ | ||
372 | int EXPONENTIAL_DISTRIBUTION__LAMBDA = DISTRIBUTION_FEATURE_COUNT + 0; | ||
373 | |||
374 | /** | ||
375 | * The number of structural features of the '<em>Exponential Distribution</em>' class. | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | * @ordered | ||
380 | */ | ||
381 | int EXPONENTIAL_DISTRIBUTION_FEATURE_COUNT = DISTRIBUTION_FEATURE_COUNT + 1; | ||
382 | |||
383 | /** | ||
384 | * The number of operations of the '<em>Exponential Distribution</em>' class. | ||
385 | * <!-- begin-user-doc --> | ||
386 | * <!-- end-user-doc --> | ||
387 | * @generated | ||
388 | * @ordered | ||
389 | */ | ||
390 | int EXPONENTIAL_DISTRIBUTION_OPERATION_COUNT = DISTRIBUTION_OPERATION_COUNT + 0; | ||
391 | |||
392 | /** | ||
393 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.AndGateImpl <em>And Gate</em>}' class. | ||
394 | * <!-- begin-user-doc --> | ||
395 | * <!-- end-user-doc --> | ||
396 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.AndGateImpl | ||
397 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getAndGate() | ||
398 | * @generated | ||
399 | */ | ||
400 | int AND_GATE = 7; | ||
401 | |||
402 | /** | ||
403 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
404 | * <!-- begin-user-doc --> | ||
405 | * <!-- end-user-doc --> | ||
406 | * @generated | ||
407 | * @ordered | ||
408 | */ | ||
409 | int AND_GATE__NAME = GATE__NAME; | ||
410 | |||
411 | /** | ||
412 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
413 | * <!-- begin-user-doc --> | ||
414 | * <!-- end-user-doc --> | ||
415 | * @generated | ||
416 | * @ordered | ||
417 | */ | ||
418 | int AND_GATE__INPUT_EVENTS = GATE__INPUT_EVENTS; | ||
419 | |||
420 | /** | ||
421 | * The number of structural features of the '<em>And Gate</em>' class. | ||
422 | * <!-- begin-user-doc --> | ||
423 | * <!-- end-user-doc --> | ||
424 | * @generated | ||
425 | * @ordered | ||
426 | */ | ||
427 | int AND_GATE_FEATURE_COUNT = GATE_FEATURE_COUNT + 0; | ||
428 | |||
429 | /** | ||
430 | * The number of operations of the '<em>And Gate</em>' class. | ||
431 | * <!-- begin-user-doc --> | ||
432 | * <!-- end-user-doc --> | ||
433 | * @generated | ||
434 | * @ordered | ||
435 | */ | ||
436 | int AND_GATE_OPERATION_COUNT = GATE_OPERATION_COUNT + 0; | ||
437 | |||
438 | /** | ||
439 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.OrGateImpl <em>Or Gate</em>}' class. | ||
440 | * <!-- begin-user-doc --> | ||
441 | * <!-- end-user-doc --> | ||
442 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.OrGateImpl | ||
443 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getOrGate() | ||
444 | * @generated | ||
445 | */ | ||
446 | int OR_GATE = 8; | ||
447 | |||
448 | /** | ||
449 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
450 | * <!-- begin-user-doc --> | ||
451 | * <!-- end-user-doc --> | ||
452 | * @generated | ||
453 | * @ordered | ||
454 | */ | ||
455 | int OR_GATE__NAME = GATE__NAME; | ||
456 | |||
457 | /** | ||
458 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
459 | * <!-- begin-user-doc --> | ||
460 | * <!-- end-user-doc --> | ||
461 | * @generated | ||
462 | * @ordered | ||
463 | */ | ||
464 | int OR_GATE__INPUT_EVENTS = GATE__INPUT_EVENTS; | ||
465 | |||
466 | /** | ||
467 | * The number of structural features of the '<em>Or Gate</em>' class. | ||
468 | * <!-- begin-user-doc --> | ||
469 | * <!-- end-user-doc --> | ||
470 | * @generated | ||
471 | * @ordered | ||
472 | */ | ||
473 | int OR_GATE_FEATURE_COUNT = GATE_FEATURE_COUNT + 0; | ||
474 | |||
475 | /** | ||
476 | * The number of operations of the '<em>Or Gate</em>' class. | ||
477 | * <!-- begin-user-doc --> | ||
478 | * <!-- end-user-doc --> | ||
479 | * @generated | ||
480 | * @ordered | ||
481 | */ | ||
482 | int OR_GATE_OPERATION_COUNT = GATE_OPERATION_COUNT + 0; | ||
483 | |||
484 | /** | ||
485 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.KOfMGateImpl <em>KOf MGate</em>}' class. | ||
486 | * <!-- begin-user-doc --> | ||
487 | * <!-- end-user-doc --> | ||
488 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.KOfMGateImpl | ||
489 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getKOfMGate() | ||
490 | * @generated | ||
491 | */ | ||
492 | int KOF_MGATE = 9; | ||
493 | |||
494 | /** | ||
495 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
496 | * <!-- begin-user-doc --> | ||
497 | * <!-- end-user-doc --> | ||
498 | * @generated | ||
499 | * @ordered | ||
500 | */ | ||
501 | int KOF_MGATE__NAME = GATE__NAME; | ||
502 | |||
503 | /** | ||
504 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
505 | * <!-- begin-user-doc --> | ||
506 | * <!-- end-user-doc --> | ||
507 | * @generated | ||
508 | * @ordered | ||
509 | */ | ||
510 | int KOF_MGATE__INPUT_EVENTS = GATE__INPUT_EVENTS; | ||
511 | |||
512 | /** | ||
513 | * The feature id for the '<em><b>K</b></em>' attribute. | ||
514 | * <!-- begin-user-doc --> | ||
515 | * <!-- end-user-doc --> | ||
516 | * @generated | ||
517 | * @ordered | ||
518 | */ | ||
519 | int KOF_MGATE__K = GATE_FEATURE_COUNT + 0; | ||
520 | |||
521 | /** | ||
522 | * The number of structural features of the '<em>KOf MGate</em>' class. | ||
523 | * <!-- begin-user-doc --> | ||
524 | * <!-- end-user-doc --> | ||
525 | * @generated | ||
526 | * @ordered | ||
527 | */ | ||
528 | int KOF_MGATE_FEATURE_COUNT = GATE_FEATURE_COUNT + 1; | ||
529 | |||
530 | /** | ||
531 | * The number of operations of the '<em>KOf MGate</em>' class. | ||
532 | * <!-- begin-user-doc --> | ||
533 | * <!-- end-user-doc --> | ||
534 | * @generated | ||
535 | * @ordered | ||
536 | */ | ||
537 | int KOF_MGATE_OPERATION_COUNT = GATE_OPERATION_COUNT + 0; | ||
538 | |||
539 | /** | ||
540 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantModelImpl <em>Constant Model</em>}' class. | ||
541 | * <!-- begin-user-doc --> | ||
542 | * <!-- end-user-doc --> | ||
543 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantModelImpl | ||
544 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getConstantModel() | ||
545 | * @generated | ||
546 | */ | ||
547 | int CONSTANT_MODEL = 11; | ||
548 | |||
549 | /** | ||
550 | * The feature id for the '<em><b>Failed</b></em>' attribute. | ||
551 | * <!-- begin-user-doc --> | ||
552 | * <!-- end-user-doc --> | ||
553 | * @generated | ||
554 | * @ordered | ||
555 | */ | ||
556 | int CONSTANT_MODEL__FAILED = RELIABILITY_MODEL_FEATURE_COUNT + 0; | ||
557 | |||
558 | /** | ||
559 | * The number of structural features of the '<em>Constant Model</em>' class. | ||
560 | * <!-- begin-user-doc --> | ||
561 | * <!-- end-user-doc --> | ||
562 | * @generated | ||
563 | * @ordered | ||
564 | */ | ||
565 | int CONSTANT_MODEL_FEATURE_COUNT = RELIABILITY_MODEL_FEATURE_COUNT + 1; | ||
566 | |||
567 | /** | ||
568 | * The number of operations of the '<em>Constant Model</em>' class. | ||
569 | * <!-- begin-user-doc --> | ||
570 | * <!-- end-user-doc --> | ||
571 | * @generated | ||
572 | * @ordered | ||
573 | */ | ||
574 | int CONSTANT_MODEL_OPERATION_COUNT = RELIABILITY_MODEL_OPERATION_COUNT + 0; | ||
575 | |||
576 | /** | ||
577 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantEventImpl <em>Constant Event</em>}' class. | ||
578 | * <!-- begin-user-doc --> | ||
579 | * <!-- end-user-doc --> | ||
580 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantEventImpl | ||
581 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getConstantEvent() | ||
582 | * @generated | ||
583 | */ | ||
584 | int CONSTANT_EVENT = 13; | ||
585 | |||
586 | /** | ||
587 | * The feature id for the '<em><b>Failed</b></em>' attribute. | ||
588 | * <!-- begin-user-doc --> | ||
589 | * <!-- end-user-doc --> | ||
590 | * @generated | ||
591 | * @ordered | ||
592 | */ | ||
593 | int CONSTANT_EVENT__FAILED = EVENT_FEATURE_COUNT + 0; | ||
594 | |||
595 | /** | ||
596 | * The number of structural features of the '<em>Constant Event</em>' class. | ||
597 | * <!-- begin-user-doc --> | ||
598 | * <!-- end-user-doc --> | ||
599 | * @generated | ||
600 | * @ordered | ||
601 | */ | ||
602 | int CONSTANT_EVENT_FEATURE_COUNT = EVENT_FEATURE_COUNT + 1; | ||
603 | |||
604 | /** | ||
605 | * The number of operations of the '<em>Constant Event</em>' class. | ||
606 | * <!-- begin-user-doc --> | ||
607 | * <!-- end-user-doc --> | ||
608 | * @generated | ||
609 | * @ordered | ||
610 | */ | ||
611 | int CONSTANT_EVENT_OPERATION_COUNT = EVENT_OPERATION_COUNT + 0; | ||
612 | |||
613 | |||
614 | /** | ||
615 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree <em>Fault Tree</em>}'. | ||
616 | * <!-- begin-user-doc --> | ||
617 | * <!-- end-user-doc --> | ||
618 | * @return the meta object for class '<em>Fault Tree</em>'. | ||
619 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree | ||
620 | * @generated | ||
621 | */ | ||
622 | EClass getFaultTree(); | ||
623 | |||
624 | /** | ||
625 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree#getEvents <em>Events</em>}'. | ||
626 | * <!-- begin-user-doc --> | ||
627 | * <!-- end-user-doc --> | ||
628 | * @return the meta object for the containment reference list '<em>Events</em>'. | ||
629 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree#getEvents() | ||
630 | * @see #getFaultTree() | ||
631 | * @generated | ||
632 | */ | ||
633 | EReference getFaultTree_Events(); | ||
634 | |||
635 | /** | ||
636 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree#getTopEvent <em>Top Event</em>}'. | ||
637 | * <!-- begin-user-doc --> | ||
638 | * <!-- end-user-doc --> | ||
639 | * @return the meta object for the reference '<em>Top Event</em>'. | ||
640 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree#getTopEvent() | ||
641 | * @see #getFaultTree() | ||
642 | * @generated | ||
643 | */ | ||
644 | EReference getFaultTree_TopEvent(); | ||
645 | |||
646 | /** | ||
647 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent <em>Random Event</em>}'. | ||
648 | * <!-- begin-user-doc --> | ||
649 | * <!-- end-user-doc --> | ||
650 | * @return the meta object for class '<em>Random Event</em>'. | ||
651 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent | ||
652 | * @generated | ||
653 | */ | ||
654 | EClass getRandomEvent(); | ||
655 | |||
656 | /** | ||
657 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent#getName <em>Name</em>}'. | ||
658 | * <!-- begin-user-doc --> | ||
659 | * <!-- end-user-doc --> | ||
660 | * @return the meta object for the attribute '<em>Name</em>'. | ||
661 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent#getName() | ||
662 | * @see #getRandomEvent() | ||
663 | * @generated | ||
664 | */ | ||
665 | EAttribute getRandomEvent_Name(); | ||
666 | |||
667 | /** | ||
668 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent <em>Basic Event</em>}'. | ||
669 | * <!-- begin-user-doc --> | ||
670 | * <!-- end-user-doc --> | ||
671 | * @return the meta object for class '<em>Basic Event</em>'. | ||
672 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent | ||
673 | * @generated | ||
674 | */ | ||
675 | EClass getBasicEvent(); | ||
676 | |||
677 | /** | ||
678 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent#getDistribution <em>Distribution</em>}'. | ||
679 | * <!-- begin-user-doc --> | ||
680 | * <!-- end-user-doc --> | ||
681 | * @return the meta object for the containment reference '<em>Distribution</em>'. | ||
682 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent#getDistribution() | ||
683 | * @see #getBasicEvent() | ||
684 | * @generated | ||
685 | */ | ||
686 | EReference getBasicEvent_Distribution(); | ||
687 | |||
688 | /** | ||
689 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate <em>Gate</em>}'. | ||
690 | * <!-- begin-user-doc --> | ||
691 | * <!-- end-user-doc --> | ||
692 | * @return the meta object for class '<em>Gate</em>'. | ||
693 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate | ||
694 | * @generated | ||
695 | */ | ||
696 | EClass getGate(); | ||
697 | |||
698 | /** | ||
699 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate#getInputEvents <em>Input Events</em>}'. | ||
700 | * <!-- begin-user-doc --> | ||
701 | * <!-- end-user-doc --> | ||
702 | * @return the meta object for the reference list '<em>Input Events</em>'. | ||
703 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate#getInputEvents() | ||
704 | * @see #getGate() | ||
705 | * @generated | ||
706 | */ | ||
707 | EReference getGate_InputEvents(); | ||
708 | |||
709 | /** | ||
710 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution <em>Distribution</em>}'. | ||
711 | * <!-- begin-user-doc --> | ||
712 | * <!-- end-user-doc --> | ||
713 | * @return the meta object for class '<em>Distribution</em>'. | ||
714 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution | ||
715 | * @generated | ||
716 | */ | ||
717 | EClass getDistribution(); | ||
718 | |||
719 | /** | ||
720 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution <em>Constant Distribution</em>}'. | ||
721 | * <!-- begin-user-doc --> | ||
722 | * <!-- end-user-doc --> | ||
723 | * @return the meta object for class '<em>Constant Distribution</em>'. | ||
724 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution | ||
725 | * @generated | ||
726 | */ | ||
727 | EClass getConstantDistribution(); | ||
728 | |||
729 | /** | ||
730 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution#getP <em>P</em>}'. | ||
731 | * <!-- begin-user-doc --> | ||
732 | * <!-- end-user-doc --> | ||
733 | * @return the meta object for the attribute '<em>P</em>'. | ||
734 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution#getP() | ||
735 | * @see #getConstantDistribution() | ||
736 | * @generated | ||
737 | */ | ||
738 | EAttribute getConstantDistribution_P(); | ||
739 | |||
740 | /** | ||
741 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution <em>Exponential Distribution</em>}'. | ||
742 | * <!-- begin-user-doc --> | ||
743 | * <!-- end-user-doc --> | ||
744 | * @return the meta object for class '<em>Exponential Distribution</em>'. | ||
745 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution | ||
746 | * @generated | ||
747 | */ | ||
748 | EClass getExponentialDistribution(); | ||
749 | |||
750 | /** | ||
751 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution#getLambda <em>Lambda</em>}'. | ||
752 | * <!-- begin-user-doc --> | ||
753 | * <!-- end-user-doc --> | ||
754 | * @return the meta object for the attribute '<em>Lambda</em>'. | ||
755 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution#getLambda() | ||
756 | * @see #getExponentialDistribution() | ||
757 | * @generated | ||
758 | */ | ||
759 | EAttribute getExponentialDistribution_Lambda(); | ||
760 | |||
761 | /** | ||
762 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.AndGate <em>And Gate</em>}'. | ||
763 | * <!-- begin-user-doc --> | ||
764 | * <!-- end-user-doc --> | ||
765 | * @return the meta object for class '<em>And Gate</em>'. | ||
766 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.AndGate | ||
767 | * @generated | ||
768 | */ | ||
769 | EClass getAndGate(); | ||
770 | |||
771 | /** | ||
772 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.OrGate <em>Or Gate</em>}'. | ||
773 | * <!-- begin-user-doc --> | ||
774 | * <!-- end-user-doc --> | ||
775 | * @return the meta object for class '<em>Or Gate</em>'. | ||
776 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.OrGate | ||
777 | * @generated | ||
778 | */ | ||
779 | EClass getOrGate(); | ||
780 | |||
781 | /** | ||
782 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate <em>KOf MGate</em>}'. | ||
783 | * <!-- begin-user-doc --> | ||
784 | * <!-- end-user-doc --> | ||
785 | * @return the meta object for class '<em>KOf MGate</em>'. | ||
786 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate | ||
787 | * @generated | ||
788 | */ | ||
789 | EClass getKOfMGate(); | ||
790 | |||
791 | /** | ||
792 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate#getK <em>K</em>}'. | ||
793 | * <!-- begin-user-doc --> | ||
794 | * <!-- end-user-doc --> | ||
795 | * @return the meta object for the attribute '<em>K</em>'. | ||
796 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate#getK() | ||
797 | * @see #getKOfMGate() | ||
798 | * @generated | ||
799 | */ | ||
800 | EAttribute getKOfMGate_K(); | ||
801 | |||
802 | /** | ||
803 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ReliabilityModel <em>Reliability Model</em>}'. | ||
804 | * <!-- begin-user-doc --> | ||
805 | * <!-- end-user-doc --> | ||
806 | * @return the meta object for class '<em>Reliability Model</em>'. | ||
807 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ReliabilityModel | ||
808 | * @generated | ||
809 | */ | ||
810 | EClass getReliabilityModel(); | ||
811 | |||
812 | /** | ||
813 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantModel <em>Constant Model</em>}'. | ||
814 | * <!-- begin-user-doc --> | ||
815 | * <!-- end-user-doc --> | ||
816 | * @return the meta object for class '<em>Constant Model</em>'. | ||
817 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantModel | ||
818 | * @generated | ||
819 | */ | ||
820 | EClass getConstantModel(); | ||
821 | |||
822 | /** | ||
823 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantModel#isFailed <em>Failed</em>}'. | ||
824 | * <!-- begin-user-doc --> | ||
825 | * <!-- end-user-doc --> | ||
826 | * @return the meta object for the attribute '<em>Failed</em>'. | ||
827 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantModel#isFailed() | ||
828 | * @see #getConstantModel() | ||
829 | * @generated | ||
830 | */ | ||
831 | EAttribute getConstantModel_Failed(); | ||
832 | |||
833 | /** | ||
834 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Event <em>Event</em>}'. | ||
835 | * <!-- begin-user-doc --> | ||
836 | * <!-- end-user-doc --> | ||
837 | * @return the meta object for class '<em>Event</em>'. | ||
838 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Event | ||
839 | * @generated | ||
840 | */ | ||
841 | EClass getEvent(); | ||
842 | |||
843 | /** | ||
844 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantEvent <em>Constant Event</em>}'. | ||
845 | * <!-- begin-user-doc --> | ||
846 | * <!-- end-user-doc --> | ||
847 | * @return the meta object for class '<em>Constant Event</em>'. | ||
848 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantEvent | ||
849 | * @generated | ||
850 | */ | ||
851 | EClass getConstantEvent(); | ||
852 | |||
853 | /** | ||
854 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantEvent#isFailed <em>Failed</em>}'. | ||
855 | * <!-- begin-user-doc --> | ||
856 | * <!-- end-user-doc --> | ||
857 | * @return the meta object for the attribute '<em>Failed</em>'. | ||
858 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantEvent#isFailed() | ||
859 | * @see #getConstantEvent() | ||
860 | * @generated | ||
861 | */ | ||
862 | EAttribute getConstantEvent_Failed(); | ||
863 | |||
864 | /** | ||
865 | * Returns the factory that creates the instances of the model. | ||
866 | * <!-- begin-user-doc --> | ||
867 | * <!-- end-user-doc --> | ||
868 | * @return the factory that creates the instances of the model. | ||
869 | * @generated | ||
870 | */ | ||
871 | FtFactory getFtFactory(); | ||
872 | |||
873 | /** | ||
874 | * <!-- begin-user-doc --> | ||
875 | * Defines literals for the meta objects that represent | ||
876 | * <ul> | ||
877 | * <li>each class,</li> | ||
878 | * <li>each feature of each class,</li> | ||
879 | * <li>each operation of each class,</li> | ||
880 | * <li>each enum,</li> | ||
881 | * <li>and each data type</li> | ||
882 | * </ul> | ||
883 | * <!-- end-user-doc --> | ||
884 | * @generated | ||
885 | */ | ||
886 | interface Literals { | ||
887 | /** | ||
888 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FaultTreeImpl <em>Fault Tree</em>}' class. | ||
889 | * <!-- begin-user-doc --> | ||
890 | * <!-- end-user-doc --> | ||
891 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FaultTreeImpl | ||
892 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getFaultTree() | ||
893 | * @generated | ||
894 | */ | ||
895 | EClass FAULT_TREE = eINSTANCE.getFaultTree(); | ||
896 | |||
897 | /** | ||
898 | * The meta object literal for the '<em><b>Events</b></em>' containment reference list feature. | ||
899 | * <!-- begin-user-doc --> | ||
900 | * <!-- end-user-doc --> | ||
901 | * @generated | ||
902 | */ | ||
903 | EReference FAULT_TREE__EVENTS = eINSTANCE.getFaultTree_Events(); | ||
904 | |||
905 | /** | ||
906 | * The meta object literal for the '<em><b>Top Event</b></em>' reference feature. | ||
907 | * <!-- begin-user-doc --> | ||
908 | * <!-- end-user-doc --> | ||
909 | * @generated | ||
910 | */ | ||
911 | EReference FAULT_TREE__TOP_EVENT = eINSTANCE.getFaultTree_TopEvent(); | ||
912 | |||
913 | /** | ||
914 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.RandomEventImpl <em>Random Event</em>}' class. | ||
915 | * <!-- begin-user-doc --> | ||
916 | * <!-- end-user-doc --> | ||
917 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.RandomEventImpl | ||
918 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getRandomEvent() | ||
919 | * @generated | ||
920 | */ | ||
921 | EClass RANDOM_EVENT = eINSTANCE.getRandomEvent(); | ||
922 | |||
923 | /** | ||
924 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
925 | * <!-- begin-user-doc --> | ||
926 | * <!-- end-user-doc --> | ||
927 | * @generated | ||
928 | */ | ||
929 | EAttribute RANDOM_EVENT__NAME = eINSTANCE.getRandomEvent_Name(); | ||
930 | |||
931 | /** | ||
932 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.BasicEventImpl <em>Basic Event</em>}' class. | ||
933 | * <!-- begin-user-doc --> | ||
934 | * <!-- end-user-doc --> | ||
935 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.BasicEventImpl | ||
936 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getBasicEvent() | ||
937 | * @generated | ||
938 | */ | ||
939 | EClass BASIC_EVENT = eINSTANCE.getBasicEvent(); | ||
940 | |||
941 | /** | ||
942 | * The meta object literal for the '<em><b>Distribution</b></em>' containment reference feature. | ||
943 | * <!-- begin-user-doc --> | ||
944 | * <!-- end-user-doc --> | ||
945 | * @generated | ||
946 | */ | ||
947 | EReference BASIC_EVENT__DISTRIBUTION = eINSTANCE.getBasicEvent_Distribution(); | ||
948 | |||
949 | /** | ||
950 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.GateImpl <em>Gate</em>}' class. | ||
951 | * <!-- begin-user-doc --> | ||
952 | * <!-- end-user-doc --> | ||
953 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.GateImpl | ||
954 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getGate() | ||
955 | * @generated | ||
956 | */ | ||
957 | EClass GATE = eINSTANCE.getGate(); | ||
958 | |||
959 | /** | ||
960 | * The meta object literal for the '<em><b>Input Events</b></em>' reference list feature. | ||
961 | * <!-- begin-user-doc --> | ||
962 | * <!-- end-user-doc --> | ||
963 | * @generated | ||
964 | */ | ||
965 | EReference GATE__INPUT_EVENTS = eINSTANCE.getGate_InputEvents(); | ||
966 | |||
967 | /** | ||
968 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.DistributionImpl <em>Distribution</em>}' class. | ||
969 | * <!-- begin-user-doc --> | ||
970 | * <!-- end-user-doc --> | ||
971 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.DistributionImpl | ||
972 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getDistribution() | ||
973 | * @generated | ||
974 | */ | ||
975 | EClass DISTRIBUTION = eINSTANCE.getDistribution(); | ||
976 | |||
977 | /** | ||
978 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantDistributionImpl <em>Constant Distribution</em>}' class. | ||
979 | * <!-- begin-user-doc --> | ||
980 | * <!-- end-user-doc --> | ||
981 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantDistributionImpl | ||
982 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getConstantDistribution() | ||
983 | * @generated | ||
984 | */ | ||
985 | EClass CONSTANT_DISTRIBUTION = eINSTANCE.getConstantDistribution(); | ||
986 | |||
987 | /** | ||
988 | * The meta object literal for the '<em><b>P</b></em>' attribute feature. | ||
989 | * <!-- begin-user-doc --> | ||
990 | * <!-- end-user-doc --> | ||
991 | * @generated | ||
992 | */ | ||
993 | EAttribute CONSTANT_DISTRIBUTION__P = eINSTANCE.getConstantDistribution_P(); | ||
994 | |||
995 | /** | ||
996 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ExponentialDistributionImpl <em>Exponential Distribution</em>}' class. | ||
997 | * <!-- begin-user-doc --> | ||
998 | * <!-- end-user-doc --> | ||
999 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ExponentialDistributionImpl | ||
1000 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getExponentialDistribution() | ||
1001 | * @generated | ||
1002 | */ | ||
1003 | EClass EXPONENTIAL_DISTRIBUTION = eINSTANCE.getExponentialDistribution(); | ||
1004 | |||
1005 | /** | ||
1006 | * The meta object literal for the '<em><b>Lambda</b></em>' attribute feature. | ||
1007 | * <!-- begin-user-doc --> | ||
1008 | * <!-- end-user-doc --> | ||
1009 | * @generated | ||
1010 | */ | ||
1011 | EAttribute EXPONENTIAL_DISTRIBUTION__LAMBDA = eINSTANCE.getExponentialDistribution_Lambda(); | ||
1012 | |||
1013 | /** | ||
1014 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.AndGateImpl <em>And Gate</em>}' class. | ||
1015 | * <!-- begin-user-doc --> | ||
1016 | * <!-- end-user-doc --> | ||
1017 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.AndGateImpl | ||
1018 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getAndGate() | ||
1019 | * @generated | ||
1020 | */ | ||
1021 | EClass AND_GATE = eINSTANCE.getAndGate(); | ||
1022 | |||
1023 | /** | ||
1024 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.OrGateImpl <em>Or Gate</em>}' class. | ||
1025 | * <!-- begin-user-doc --> | ||
1026 | * <!-- end-user-doc --> | ||
1027 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.OrGateImpl | ||
1028 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getOrGate() | ||
1029 | * @generated | ||
1030 | */ | ||
1031 | EClass OR_GATE = eINSTANCE.getOrGate(); | ||
1032 | |||
1033 | /** | ||
1034 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.KOfMGateImpl <em>KOf MGate</em>}' class. | ||
1035 | * <!-- begin-user-doc --> | ||
1036 | * <!-- end-user-doc --> | ||
1037 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.KOfMGateImpl | ||
1038 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getKOfMGate() | ||
1039 | * @generated | ||
1040 | */ | ||
1041 | EClass KOF_MGATE = eINSTANCE.getKOfMGate(); | ||
1042 | |||
1043 | /** | ||
1044 | * The meta object literal for the '<em><b>K</b></em>' attribute feature. | ||
1045 | * <!-- begin-user-doc --> | ||
1046 | * <!-- end-user-doc --> | ||
1047 | * @generated | ||
1048 | */ | ||
1049 | EAttribute KOF_MGATE__K = eINSTANCE.getKOfMGate_K(); | ||
1050 | |||
1051 | /** | ||
1052 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ReliabilityModelImpl <em>Reliability Model</em>}' class. | ||
1053 | * <!-- begin-user-doc --> | ||
1054 | * <!-- end-user-doc --> | ||
1055 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ReliabilityModelImpl | ||
1056 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getReliabilityModel() | ||
1057 | * @generated | ||
1058 | */ | ||
1059 | EClass RELIABILITY_MODEL = eINSTANCE.getReliabilityModel(); | ||
1060 | |||
1061 | /** | ||
1062 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantModelImpl <em>Constant Model</em>}' class. | ||
1063 | * <!-- begin-user-doc --> | ||
1064 | * <!-- end-user-doc --> | ||
1065 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantModelImpl | ||
1066 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getConstantModel() | ||
1067 | * @generated | ||
1068 | */ | ||
1069 | EClass CONSTANT_MODEL = eINSTANCE.getConstantModel(); | ||
1070 | |||
1071 | /** | ||
1072 | * The meta object literal for the '<em><b>Failed</b></em>' attribute feature. | ||
1073 | * <!-- begin-user-doc --> | ||
1074 | * <!-- end-user-doc --> | ||
1075 | * @generated | ||
1076 | */ | ||
1077 | EAttribute CONSTANT_MODEL__FAILED = eINSTANCE.getConstantModel_Failed(); | ||
1078 | |||
1079 | /** | ||
1080 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.EventImpl <em>Event</em>}' class. | ||
1081 | * <!-- begin-user-doc --> | ||
1082 | * <!-- end-user-doc --> | ||
1083 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.EventImpl | ||
1084 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getEvent() | ||
1085 | * @generated | ||
1086 | */ | ||
1087 | EClass EVENT = eINSTANCE.getEvent(); | ||
1088 | |||
1089 | /** | ||
1090 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantEventImpl <em>Constant Event</em>}' class. | ||
1091 | * <!-- begin-user-doc --> | ||
1092 | * <!-- end-user-doc --> | ||
1093 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantEventImpl | ||
1094 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FtPackageImpl#getConstantEvent() | ||
1095 | * @generated | ||
1096 | */ | ||
1097 | EClass CONSTANT_EVENT = eINSTANCE.getConstantEvent(); | ||
1098 | |||
1099 | /** | ||
1100 | * The meta object literal for the '<em><b>Failed</b></em>' attribute feature. | ||
1101 | * <!-- begin-user-doc --> | ||
1102 | * <!-- end-user-doc --> | ||
1103 | * @generated | ||
1104 | */ | ||
1105 | EAttribute CONSTANT_EVENT__FAILED = eINSTANCE.getConstantEvent_Failed(); | ||
1106 | |||
1107 | } | ||
1108 | |||
1109 | } //FtPackage | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/Gate.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/Gate.java deleted file mode 100644 index 5015051a..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/Gate.java +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | import org.eclipse.emf.common.util.EList; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Gate</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate#getInputEvents <em>Input Events</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getGate() | ||
20 | * @model abstract="true" | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface Gate extends RandomEvent { | ||
24 | /** | ||
25 | * Returns the value of the '<em><b>Input Events</b></em>' reference list. | ||
26 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent}. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Input Events</em>' reference list isn't clear, | ||
30 | * there really should be more of a description here... | ||
31 | * </p> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @return the value of the '<em>Input Events</em>' reference list. | ||
34 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getGate_InputEvents() | ||
35 | * @model lower="2" | ||
36 | * @generated | ||
37 | */ | ||
38 | EList<RandomEvent> getInputEvents(); | ||
39 | |||
40 | } // Gate | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/KOfMGate.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/KOfMGate.java deleted file mode 100644 index c891f83a..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/KOfMGate.java +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>KOf MGate</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate#getK <em>K</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getKOfMGate() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface KOfMGate extends Gate { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>K</b></em>' attribute. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <p> | ||
27 | * If the meaning of the '<em>K</em>' attribute isn't clear, | ||
28 | * there really should be more of a description here... | ||
29 | * </p> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @return the value of the '<em>K</em>' attribute. | ||
32 | * @see #setK(int) | ||
33 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getKOfMGate_K() | ||
34 | * @model | ||
35 | * @generated | ||
36 | */ | ||
37 | int getK(); | ||
38 | |||
39 | /** | ||
40 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate#getK <em>K</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @param value the new value of the '<em>K</em>' attribute. | ||
44 | * @see #getK() | ||
45 | * @generated | ||
46 | */ | ||
47 | void setK(int value); | ||
48 | |||
49 | } // KOfMGate | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/OrGate.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/OrGate.java deleted file mode 100644 index 278a2d38..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/OrGate.java +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Or Gate</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * | ||
12 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getOrGate() | ||
13 | * @model | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface OrGate extends Gate { | ||
17 | } // OrGate | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/RandomEvent.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/RandomEvent.java deleted file mode 100644 index 3931ac41..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/RandomEvent.java +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | |||
6 | /** | ||
7 | * <!-- begin-user-doc --> | ||
8 | * A representation of the model object '<em><b>Random Event</b></em>'. | ||
9 | * <!-- end-user-doc --> | ||
10 | * | ||
11 | * <p> | ||
12 | * The following features are supported: | ||
13 | * </p> | ||
14 | * <ul> | ||
15 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent#getName <em>Name</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getRandomEvent() | ||
19 | * @model abstract="true" | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface RandomEvent extends Event { | ||
23 | /** | ||
24 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <p> | ||
27 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
28 | * there really should be more of a description here... | ||
29 | * </p> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @return the value of the '<em>Name</em>' attribute. | ||
32 | * @see #setName(String) | ||
33 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getRandomEvent_Name() | ||
34 | * @model | ||
35 | * @generated | ||
36 | */ | ||
37 | String getName(); | ||
38 | |||
39 | /** | ||
40 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent#getName <em>Name</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @param value the new value of the '<em>Name</em>' attribute. | ||
44 | * @see #getName() | ||
45 | * @generated | ||
46 | */ | ||
47 | void setName(String value); | ||
48 | |||
49 | } // RandomEvent | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ReliabilityModel.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ReliabilityModel.java deleted file mode 100644 index c1dc2162..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/ReliabilityModel.java +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Reliability Model</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#getReliabilityModel() | ||
14 | * @model abstract="true" | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface ReliabilityModel extends EObject { | ||
18 | } // ReliabilityModel | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/AndGateImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/AndGateImpl.java deleted file mode 100644 index 509843b1..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/AndGateImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.AndGate; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>And Gate</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class AndGateImpl extends GateImpl implements AndGate { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected AndGateImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return FtPackage.Literals.AND_GATE; | ||
35 | } | ||
36 | |||
37 | } //AndGateImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/BasicEventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/BasicEventImpl.java deleted file mode 100644 index bbed7b00..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/BasicEventImpl.java +++ /dev/null | |||
@@ -1,177 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | import org.eclipse.emf.common.notify.NotificationChain; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Basic Event</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.BasicEventImpl#getDistribution <em>Distribution</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class BasicEventImpl extends RandomEventImpl implements BasicEvent { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getDistribution() <em>Distribution</em>}' containment reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getDistribution() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected Distribution distribution; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected BasicEventImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return FtPackage.Literals.BASIC_EVENT; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | public Distribution getDistribution() { | ||
67 | return distribution; | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | public NotificationChain basicSetDistribution(Distribution newDistribution, NotificationChain msgs) { | ||
76 | Distribution oldDistribution = distribution; | ||
77 | distribution = newDistribution; | ||
78 | if (eNotificationRequired()) { | ||
79 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FtPackage.BASIC_EVENT__DISTRIBUTION, oldDistribution, newDistribution); | ||
80 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
81 | } | ||
82 | return msgs; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | @Override | ||
91 | public void setDistribution(Distribution newDistribution) { | ||
92 | if (newDistribution != distribution) { | ||
93 | NotificationChain msgs = null; | ||
94 | if (distribution != null) | ||
95 | msgs = ((InternalEObject)distribution).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FtPackage.BASIC_EVENT__DISTRIBUTION, null, msgs); | ||
96 | if (newDistribution != null) | ||
97 | msgs = ((InternalEObject)newDistribution).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FtPackage.BASIC_EVENT__DISTRIBUTION, null, msgs); | ||
98 | msgs = basicSetDistribution(newDistribution, msgs); | ||
99 | if (msgs != null) msgs.dispatch(); | ||
100 | } | ||
101 | else if (eNotificationRequired()) | ||
102 | eNotify(new ENotificationImpl(this, Notification.SET, FtPackage.BASIC_EVENT__DISTRIBUTION, newDistribution, newDistribution)); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
112 | switch (featureID) { | ||
113 | case FtPackage.BASIC_EVENT__DISTRIBUTION: | ||
114 | return basicSetDistribution(null, msgs); | ||
115 | } | ||
116 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
126 | switch (featureID) { | ||
127 | case FtPackage.BASIC_EVENT__DISTRIBUTION: | ||
128 | return getDistribution(); | ||
129 | } | ||
130 | return super.eGet(featureID, resolve, coreType); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public void eSet(int featureID, Object newValue) { | ||
140 | switch (featureID) { | ||
141 | case FtPackage.BASIC_EVENT__DISTRIBUTION: | ||
142 | setDistribution((Distribution)newValue); | ||
143 | return; | ||
144 | } | ||
145 | super.eSet(featureID, newValue); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public void eUnset(int featureID) { | ||
155 | switch (featureID) { | ||
156 | case FtPackage.BASIC_EVENT__DISTRIBUTION: | ||
157 | setDistribution((Distribution)null); | ||
158 | return; | ||
159 | } | ||
160 | super.eUnset(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public boolean eIsSet(int featureID) { | ||
170 | switch (featureID) { | ||
171 | case FtPackage.BASIC_EVENT__DISTRIBUTION: | ||
172 | return distribution != null; | ||
173 | } | ||
174 | return super.eIsSet(featureID); | ||
175 | } | ||
176 | |||
177 | } //BasicEventImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ConstantDistributionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ConstantDistributionImpl.java deleted file mode 100644 index 7f85ed32..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ConstantDistributionImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Constant Distribution</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantDistributionImpl#getP <em>P</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class ConstantDistributionImpl extends DistributionImpl implements ConstantDistribution { | ||
28 | /** | ||
29 | * The default value of the '{@link #getP() <em>P</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getP() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final double P_EDEFAULT = 0.0; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getP() <em>P</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getP() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected double p = P_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected ConstantDistributionImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return FtPackage.Literals.CONSTANT_DISTRIBUTION; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public double getP() { | ||
74 | return p; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public void setP(double newP) { | ||
84 | double oldP = p; | ||
85 | p = newP; | ||
86 | if (eNotificationRequired()) | ||
87 | eNotify(new ENotificationImpl(this, Notification.SET, FtPackage.CONSTANT_DISTRIBUTION__P, oldP, p)); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
97 | switch (featureID) { | ||
98 | case FtPackage.CONSTANT_DISTRIBUTION__P: | ||
99 | return getP(); | ||
100 | } | ||
101 | return super.eGet(featureID, resolve, coreType); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void eSet(int featureID, Object newValue) { | ||
111 | switch (featureID) { | ||
112 | case FtPackage.CONSTANT_DISTRIBUTION__P: | ||
113 | setP((Double)newValue); | ||
114 | return; | ||
115 | } | ||
116 | super.eSet(featureID, newValue); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void eUnset(int featureID) { | ||
126 | switch (featureID) { | ||
127 | case FtPackage.CONSTANT_DISTRIBUTION__P: | ||
128 | setP(P_EDEFAULT); | ||
129 | return; | ||
130 | } | ||
131 | super.eUnset(featureID); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public boolean eIsSet(int featureID) { | ||
141 | switch (featureID) { | ||
142 | case FtPackage.CONSTANT_DISTRIBUTION__P: | ||
143 | return p != P_EDEFAULT; | ||
144 | } | ||
145 | return super.eIsSet(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public String toString() { | ||
155 | if (eIsProxy()) return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (p: "); | ||
159 | result.append(p); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //ConstantDistributionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ConstantEventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ConstantEventImpl.java deleted file mode 100644 index fc7bcf09..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ConstantEventImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantEvent; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Constant Event</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantEventImpl#isFailed <em>Failed</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class ConstantEventImpl extends EventImpl implements ConstantEvent { | ||
28 | /** | ||
29 | * The default value of the '{@link #isFailed() <em>Failed</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #isFailed() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final boolean FAILED_EDEFAULT = false; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #isFailed() <em>Failed</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #isFailed() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected boolean failed = FAILED_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected ConstantEventImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return FtPackage.Literals.CONSTANT_EVENT; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public boolean isFailed() { | ||
74 | return failed; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public void setFailed(boolean newFailed) { | ||
84 | boolean oldFailed = failed; | ||
85 | failed = newFailed; | ||
86 | if (eNotificationRequired()) | ||
87 | eNotify(new ENotificationImpl(this, Notification.SET, FtPackage.CONSTANT_EVENT__FAILED, oldFailed, failed)); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
97 | switch (featureID) { | ||
98 | case FtPackage.CONSTANT_EVENT__FAILED: | ||
99 | return isFailed(); | ||
100 | } | ||
101 | return super.eGet(featureID, resolve, coreType); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void eSet(int featureID, Object newValue) { | ||
111 | switch (featureID) { | ||
112 | case FtPackage.CONSTANT_EVENT__FAILED: | ||
113 | setFailed((Boolean)newValue); | ||
114 | return; | ||
115 | } | ||
116 | super.eSet(featureID, newValue); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void eUnset(int featureID) { | ||
126 | switch (featureID) { | ||
127 | case FtPackage.CONSTANT_EVENT__FAILED: | ||
128 | setFailed(FAILED_EDEFAULT); | ||
129 | return; | ||
130 | } | ||
131 | super.eUnset(featureID); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public boolean eIsSet(int featureID) { | ||
141 | switch (featureID) { | ||
142 | case FtPackage.CONSTANT_EVENT__FAILED: | ||
143 | return failed != FAILED_EDEFAULT; | ||
144 | } | ||
145 | return super.eIsSet(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public String toString() { | ||
155 | if (eIsProxy()) return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (failed: "); | ||
159 | result.append(failed); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //ConstantEventImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ConstantModelImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ConstantModelImpl.java deleted file mode 100644 index 52e1605b..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ConstantModelImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantModel; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Constant Model</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ConstantModelImpl#isFailed <em>Failed</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class ConstantModelImpl extends ReliabilityModelImpl implements ConstantModel { | ||
28 | /** | ||
29 | * The default value of the '{@link #isFailed() <em>Failed</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #isFailed() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final boolean FAILED_EDEFAULT = false; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #isFailed() <em>Failed</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #isFailed() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected boolean failed = FAILED_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected ConstantModelImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return FtPackage.Literals.CONSTANT_MODEL; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public boolean isFailed() { | ||
74 | return failed; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public void setFailed(boolean newFailed) { | ||
84 | boolean oldFailed = failed; | ||
85 | failed = newFailed; | ||
86 | if (eNotificationRequired()) | ||
87 | eNotify(new ENotificationImpl(this, Notification.SET, FtPackage.CONSTANT_MODEL__FAILED, oldFailed, failed)); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
97 | switch (featureID) { | ||
98 | case FtPackage.CONSTANT_MODEL__FAILED: | ||
99 | return isFailed(); | ||
100 | } | ||
101 | return super.eGet(featureID, resolve, coreType); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void eSet(int featureID, Object newValue) { | ||
111 | switch (featureID) { | ||
112 | case FtPackage.CONSTANT_MODEL__FAILED: | ||
113 | setFailed((Boolean)newValue); | ||
114 | return; | ||
115 | } | ||
116 | super.eSet(featureID, newValue); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void eUnset(int featureID) { | ||
126 | switch (featureID) { | ||
127 | case FtPackage.CONSTANT_MODEL__FAILED: | ||
128 | setFailed(FAILED_EDEFAULT); | ||
129 | return; | ||
130 | } | ||
131 | super.eUnset(featureID); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public boolean eIsSet(int featureID) { | ||
141 | switch (featureID) { | ||
142 | case FtPackage.CONSTANT_MODEL__FAILED: | ||
143 | return failed != FAILED_EDEFAULT; | ||
144 | } | ||
145 | return super.eIsSet(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public String toString() { | ||
155 | if (eIsProxy()) return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (failed: "); | ||
159 | result.append(failed); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //ConstantModelImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/DistributionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/DistributionImpl.java deleted file mode 100644 index 171a58cd..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/DistributionImpl.java +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * An implementation of the model object '<em><b>Distribution</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * @generated | ||
18 | */ | ||
19 | public abstract class DistributionImpl extends MinimalEObjectImpl.Container implements Distribution { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected DistributionImpl() { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() { | ||
36 | return FtPackage.Literals.DISTRIBUTION; | ||
37 | } | ||
38 | |||
39 | } //DistributionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/EventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/EventImpl.java deleted file mode 100644 index b37fa6bd..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/EventImpl.java +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Event; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * An implementation of the model object '<em><b>Event</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * @generated | ||
18 | */ | ||
19 | public abstract class EventImpl extends MinimalEObjectImpl.Container implements Event { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected EventImpl() { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() { | ||
36 | return FtPackage.Literals.EVENT; | ||
37 | } | ||
38 | |||
39 | } //EventImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ExponentialDistributionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ExponentialDistributionImpl.java deleted file mode 100644 index b3c7bd79..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ExponentialDistributionImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Exponential Distribution</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.ExponentialDistributionImpl#getLambda <em>Lambda</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class ExponentialDistributionImpl extends DistributionImpl implements ExponentialDistribution { | ||
28 | /** | ||
29 | * The default value of the '{@link #getLambda() <em>Lambda</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getLambda() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final double LAMBDA_EDEFAULT = 0.0; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getLambda() <em>Lambda</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getLambda() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected double lambda = LAMBDA_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected ExponentialDistributionImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return FtPackage.Literals.EXPONENTIAL_DISTRIBUTION; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public double getLambda() { | ||
74 | return lambda; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public void setLambda(double newLambda) { | ||
84 | double oldLambda = lambda; | ||
85 | lambda = newLambda; | ||
86 | if (eNotificationRequired()) | ||
87 | eNotify(new ENotificationImpl(this, Notification.SET, FtPackage.EXPONENTIAL_DISTRIBUTION__LAMBDA, oldLambda, lambda)); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
97 | switch (featureID) { | ||
98 | case FtPackage.EXPONENTIAL_DISTRIBUTION__LAMBDA: | ||
99 | return getLambda(); | ||
100 | } | ||
101 | return super.eGet(featureID, resolve, coreType); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void eSet(int featureID, Object newValue) { | ||
111 | switch (featureID) { | ||
112 | case FtPackage.EXPONENTIAL_DISTRIBUTION__LAMBDA: | ||
113 | setLambda((Double)newValue); | ||
114 | return; | ||
115 | } | ||
116 | super.eSet(featureID, newValue); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void eUnset(int featureID) { | ||
126 | switch (featureID) { | ||
127 | case FtPackage.EXPONENTIAL_DISTRIBUTION__LAMBDA: | ||
128 | setLambda(LAMBDA_EDEFAULT); | ||
129 | return; | ||
130 | } | ||
131 | super.eUnset(featureID); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public boolean eIsSet(int featureID) { | ||
141 | switch (featureID) { | ||
142 | case FtPackage.EXPONENTIAL_DISTRIBUTION__LAMBDA: | ||
143 | return lambda != LAMBDA_EDEFAULT; | ||
144 | } | ||
145 | return super.eIsSet(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public String toString() { | ||
155 | if (eIsProxy()) return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (lambda: "); | ||
159 | result.append(lambda); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //ExponentialDistributionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FaultTreeImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FaultTreeImpl.java deleted file mode 100644 index 23f1d056..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FaultTreeImpl.java +++ /dev/null | |||
@@ -1,216 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent; | ||
8 | |||
9 | import java.util.Collection; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
12 | import org.eclipse.emf.common.notify.NotificationChain; | ||
13 | |||
14 | import org.eclipse.emf.common.util.EList; | ||
15 | |||
16 | import org.eclipse.emf.ecore.EClass; | ||
17 | import org.eclipse.emf.ecore.InternalEObject; | ||
18 | |||
19 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
20 | |||
21 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
22 | import org.eclipse.emf.ecore.util.InternalEList; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Fault Tree</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FaultTreeImpl#getEvents <em>Events</em>}</li> | ||
33 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.FaultTreeImpl#getTopEvent <em>Top Event</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public class FaultTreeImpl extends ReliabilityModelImpl implements FaultTree { | ||
39 | /** | ||
40 | * The cached value of the '{@link #getEvents() <em>Events</em>}' containment reference list. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getEvents() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected EList<RandomEvent> events; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #getTopEvent() <em>Top Event</em>}' reference. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #getTopEvent() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected RandomEvent topEvent; | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | protected FaultTreeImpl() { | ||
65 | super(); | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | protected EClass eStaticClass() { | ||
75 | return FtPackage.Literals.FAULT_TREE; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public EList<RandomEvent> getEvents() { | ||
85 | if (events == null) { | ||
86 | events = new EObjectContainmentEList<RandomEvent>(RandomEvent.class, this, FtPackage.FAULT_TREE__EVENTS); | ||
87 | } | ||
88 | return events; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public RandomEvent getTopEvent() { | ||
98 | if (topEvent != null && topEvent.eIsProxy()) { | ||
99 | InternalEObject oldTopEvent = (InternalEObject)topEvent; | ||
100 | topEvent = (RandomEvent)eResolveProxy(oldTopEvent); | ||
101 | if (topEvent != oldTopEvent) { | ||
102 | if (eNotificationRequired()) | ||
103 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, FtPackage.FAULT_TREE__TOP_EVENT, oldTopEvent, topEvent)); | ||
104 | } | ||
105 | } | ||
106 | return topEvent; | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | public RandomEvent basicGetTopEvent() { | ||
115 | return topEvent; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public void setTopEvent(RandomEvent newTopEvent) { | ||
125 | RandomEvent oldTopEvent = topEvent; | ||
126 | topEvent = newTopEvent; | ||
127 | if (eNotificationRequired()) | ||
128 | eNotify(new ENotificationImpl(this, Notification.SET, FtPackage.FAULT_TREE__TOP_EVENT, oldTopEvent, topEvent)); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
138 | switch (featureID) { | ||
139 | case FtPackage.FAULT_TREE__EVENTS: | ||
140 | return ((InternalEList<?>)getEvents()).basicRemove(otherEnd, msgs); | ||
141 | } | ||
142 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
152 | switch (featureID) { | ||
153 | case FtPackage.FAULT_TREE__EVENTS: | ||
154 | return getEvents(); | ||
155 | case FtPackage.FAULT_TREE__TOP_EVENT: | ||
156 | if (resolve) return getTopEvent(); | ||
157 | return basicGetTopEvent(); | ||
158 | } | ||
159 | return super.eGet(featureID, resolve, coreType); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @SuppressWarnings("unchecked") | ||
168 | @Override | ||
169 | public void eSet(int featureID, Object newValue) { | ||
170 | switch (featureID) { | ||
171 | case FtPackage.FAULT_TREE__EVENTS: | ||
172 | getEvents().clear(); | ||
173 | getEvents().addAll((Collection<? extends RandomEvent>)newValue); | ||
174 | return; | ||
175 | case FtPackage.FAULT_TREE__TOP_EVENT: | ||
176 | setTopEvent((RandomEvent)newValue); | ||
177 | return; | ||
178 | } | ||
179 | super.eSet(featureID, newValue); | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public void eUnset(int featureID) { | ||
189 | switch (featureID) { | ||
190 | case FtPackage.FAULT_TREE__EVENTS: | ||
191 | getEvents().clear(); | ||
192 | return; | ||
193 | case FtPackage.FAULT_TREE__TOP_EVENT: | ||
194 | setTopEvent((RandomEvent)null); | ||
195 | return; | ||
196 | } | ||
197 | super.eUnset(featureID); | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public boolean eIsSet(int featureID) { | ||
207 | switch (featureID) { | ||
208 | case FtPackage.FAULT_TREE__EVENTS: | ||
209 | return events != null && !events.isEmpty(); | ||
210 | case FtPackage.FAULT_TREE__TOP_EVENT: | ||
211 | return topEvent != null; | ||
212 | } | ||
213 | return super.eIsSet(featureID); | ||
214 | } | ||
215 | |||
216 | } //FaultTreeImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtFactoryImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtFactoryImpl.java deleted file mode 100644 index 126abed8..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtFactoryImpl.java +++ /dev/null | |||
@@ -1,193 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.*; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
12 | |||
13 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model <b>Factory</b>. | ||
18 | * <!-- end-user-doc --> | ||
19 | * @generated | ||
20 | */ | ||
21 | public class FtFactoryImpl extends EFactoryImpl implements FtFactory { | ||
22 | /** | ||
23 | * Creates the default factory implementation. | ||
24 | * <!-- begin-user-doc --> | ||
25 | * <!-- end-user-doc --> | ||
26 | * @generated | ||
27 | */ | ||
28 | public static FtFactory init() { | ||
29 | try { | ||
30 | FtFactory theFtFactory = (FtFactory)EPackage.Registry.INSTANCE.getEFactory(FtPackage.eNS_URI); | ||
31 | if (theFtFactory != null) { | ||
32 | return theFtFactory; | ||
33 | } | ||
34 | } | ||
35 | catch (Exception exception) { | ||
36 | EcorePlugin.INSTANCE.log(exception); | ||
37 | } | ||
38 | return new FtFactoryImpl(); | ||
39 | } | ||
40 | |||
41 | /** | ||
42 | * Creates an instance of the factory. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | public FtFactoryImpl() { | ||
48 | super(); | ||
49 | } | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | @Override | ||
57 | public EObject create(EClass eClass) { | ||
58 | switch (eClass.getClassifierID()) { | ||
59 | case FtPackage.FAULT_TREE: return createFaultTree(); | ||
60 | case FtPackage.BASIC_EVENT: return createBasicEvent(); | ||
61 | case FtPackage.CONSTANT_DISTRIBUTION: return createConstantDistribution(); | ||
62 | case FtPackage.EXPONENTIAL_DISTRIBUTION: return createExponentialDistribution(); | ||
63 | case FtPackage.AND_GATE: return createAndGate(); | ||
64 | case FtPackage.OR_GATE: return createOrGate(); | ||
65 | case FtPackage.KOF_MGATE: return createKOfMGate(); | ||
66 | case FtPackage.CONSTANT_MODEL: return createConstantModel(); | ||
67 | case FtPackage.CONSTANT_EVENT: return createConstantEvent(); | ||
68 | default: | ||
69 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
70 | } | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public FaultTree createFaultTree() { | ||
80 | FaultTreeImpl faultTree = new FaultTreeImpl(); | ||
81 | return faultTree; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | public BasicEvent createBasicEvent() { | ||
91 | BasicEventImpl basicEvent = new BasicEventImpl(); | ||
92 | return basicEvent; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public ConstantDistribution createConstantDistribution() { | ||
102 | ConstantDistributionImpl constantDistribution = new ConstantDistributionImpl(); | ||
103 | return constantDistribution; | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public ExponentialDistribution createExponentialDistribution() { | ||
113 | ExponentialDistributionImpl exponentialDistribution = new ExponentialDistributionImpl(); | ||
114 | return exponentialDistribution; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public AndGate createAndGate() { | ||
124 | AndGateImpl andGate = new AndGateImpl(); | ||
125 | return andGate; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public OrGate createOrGate() { | ||
135 | OrGateImpl orGate = new OrGateImpl(); | ||
136 | return orGate; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public KOfMGate createKOfMGate() { | ||
146 | KOfMGateImpl kOfMGate = new KOfMGateImpl(); | ||
147 | return kOfMGate; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public ConstantModel createConstantModel() { | ||
157 | ConstantModelImpl constantModel = new ConstantModelImpl(); | ||
158 | return constantModel; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public ConstantEvent createConstantEvent() { | ||
168 | ConstantEventImpl constantEvent = new ConstantEventImpl(); | ||
169 | return constantEvent; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public FtPackage getFtPackage() { | ||
179 | return (FtPackage)getEPackage(); | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @deprecated | ||
186 | * @generated | ||
187 | */ | ||
188 | @Deprecated | ||
189 | public static FtPackage getPackage() { | ||
190 | return FtPackage.eINSTANCE; | ||
191 | } | ||
192 | |||
193 | } //FtFactoryImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtPackageImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtPackageImpl.java deleted file mode 100644 index cc2c0617..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/FtPackageImpl.java +++ /dev/null | |||
@@ -1,586 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.AndGate; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.BasicEvent; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantEvent; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantModel; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Distribution; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Event; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FaultTree; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtFactory; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.OrGate; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ReliabilityModel; | ||
21 | |||
22 | import org.eclipse.emf.ecore.EAttribute; | ||
23 | import org.eclipse.emf.ecore.EClass; | ||
24 | import org.eclipse.emf.ecore.EPackage; | ||
25 | import org.eclipse.emf.ecore.EReference; | ||
26 | |||
27 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model <b>Package</b>. | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | public class FtPackageImpl extends EPackageImpl implements FtPackage { | ||
36 | /** | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @generated | ||
40 | */ | ||
41 | private EClass faultTreeEClass = null; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | private EClass randomEventEClass = null; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | private EClass basicEventEClass = null; | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | private EClass gateEClass = null; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | private EClass distributionEClass = null; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | private EClass constantDistributionEClass = null; | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | private EClass exponentialDistributionEClass = null; | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | private EClass andGateEClass = null; | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | private EClass orGateEClass = null; | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | private EClass kOfMGateEClass = null; | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | private EClass reliabilityModelEClass = null; | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | private EClass constantModelEClass = null; | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | private EClass eventEClass = null; | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | private EClass constantEventEClass = null; | ||
133 | |||
134 | /** | ||
135 | * Creates an instance of the model <b>Package</b>, registered with | ||
136 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
137 | * package URI value. | ||
138 | * <p>Note: the correct way to create the package is via the static | ||
139 | * factory method {@link #init init()}, which also performs | ||
140 | * initialization of the package, or returns the registered package, | ||
141 | * if one already exists. | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
145 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage#eNS_URI | ||
146 | * @see #init() | ||
147 | * @generated | ||
148 | */ | ||
149 | private FtPackageImpl() { | ||
150 | super(eNS_URI, FtFactory.eINSTANCE); | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | private static boolean isInited = false; | ||
159 | |||
160 | /** | ||
161 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
162 | * | ||
163 | * <p>This method is used to initialize {@link FtPackage#eINSTANCE} when that field is accessed. | ||
164 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @see #eNS_URI | ||
168 | * @see #createPackageContents() | ||
169 | * @see #initializePackageContents() | ||
170 | * @generated | ||
171 | */ | ||
172 | public static FtPackage init() { | ||
173 | if (isInited) return (FtPackage)EPackage.Registry.INSTANCE.getEPackage(FtPackage.eNS_URI); | ||
174 | |||
175 | // Obtain or create and register package | ||
176 | Object registeredFtPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
177 | FtPackageImpl theFtPackage = registeredFtPackage instanceof FtPackageImpl ? (FtPackageImpl)registeredFtPackage : new FtPackageImpl(); | ||
178 | |||
179 | isInited = true; | ||
180 | |||
181 | // Create package meta-data objects | ||
182 | theFtPackage.createPackageContents(); | ||
183 | |||
184 | // Initialize created meta-data | ||
185 | theFtPackage.initializePackageContents(); | ||
186 | |||
187 | // Mark meta-data to indicate it can't be changed | ||
188 | theFtPackage.freeze(); | ||
189 | |||
190 | // Update the registry and return the package | ||
191 | EPackage.Registry.INSTANCE.put(FtPackage.eNS_URI, theFtPackage); | ||
192 | return theFtPackage; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public EClass getFaultTree() { | ||
202 | return faultTreeEClass; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | @Override | ||
211 | public EReference getFaultTree_Events() { | ||
212 | return (EReference)faultTreeEClass.getEStructuralFeatures().get(0); | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public EReference getFaultTree_TopEvent() { | ||
222 | return (EReference)faultTreeEClass.getEStructuralFeatures().get(1); | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | @Override | ||
231 | public EClass getRandomEvent() { | ||
232 | return randomEventEClass; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public EAttribute getRandomEvent_Name() { | ||
242 | return (EAttribute)randomEventEClass.getEStructuralFeatures().get(0); | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | @Override | ||
251 | public EClass getBasicEvent() { | ||
252 | return basicEventEClass; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public EReference getBasicEvent_Distribution() { | ||
262 | return (EReference)basicEventEClass.getEStructuralFeatures().get(0); | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * <!-- begin-user-doc --> | ||
267 | * <!-- end-user-doc --> | ||
268 | * @generated | ||
269 | */ | ||
270 | @Override | ||
271 | public EClass getGate() { | ||
272 | return gateEClass; | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public EReference getGate_InputEvents() { | ||
282 | return (EReference)gateEClass.getEStructuralFeatures().get(0); | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public EClass getDistribution() { | ||
292 | return distributionEClass; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | @Override | ||
301 | public EClass getConstantDistribution() { | ||
302 | return constantDistributionEClass; | ||
303 | } | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | @Override | ||
311 | public EAttribute getConstantDistribution_P() { | ||
312 | return (EAttribute)constantDistributionEClass.getEStructuralFeatures().get(0); | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * <!-- begin-user-doc --> | ||
317 | * <!-- end-user-doc --> | ||
318 | * @generated | ||
319 | */ | ||
320 | @Override | ||
321 | public EClass getExponentialDistribution() { | ||
322 | return exponentialDistributionEClass; | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * <!-- begin-user-doc --> | ||
327 | * <!-- end-user-doc --> | ||
328 | * @generated | ||
329 | */ | ||
330 | @Override | ||
331 | public EAttribute getExponentialDistribution_Lambda() { | ||
332 | return (EAttribute)exponentialDistributionEClass.getEStructuralFeatures().get(0); | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | @Override | ||
341 | public EClass getAndGate() { | ||
342 | return andGateEClass; | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | */ | ||
350 | @Override | ||
351 | public EClass getOrGate() { | ||
352 | return orGateEClass; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | @Override | ||
361 | public EClass getKOfMGate() { | ||
362 | return kOfMGateEClass; | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | @Override | ||
371 | public EAttribute getKOfMGate_K() { | ||
372 | return (EAttribute)kOfMGateEClass.getEStructuralFeatures().get(0); | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | @Override | ||
381 | public EClass getReliabilityModel() { | ||
382 | return reliabilityModelEClass; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | */ | ||
390 | @Override | ||
391 | public EClass getConstantModel() { | ||
392 | return constantModelEClass; | ||
393 | } | ||
394 | |||
395 | /** | ||
396 | * <!-- begin-user-doc --> | ||
397 | * <!-- end-user-doc --> | ||
398 | * @generated | ||
399 | */ | ||
400 | @Override | ||
401 | public EAttribute getConstantModel_Failed() { | ||
402 | return (EAttribute)constantModelEClass.getEStructuralFeatures().get(0); | ||
403 | } | ||
404 | |||
405 | /** | ||
406 | * <!-- begin-user-doc --> | ||
407 | * <!-- end-user-doc --> | ||
408 | * @generated | ||
409 | */ | ||
410 | @Override | ||
411 | public EClass getEvent() { | ||
412 | return eventEClass; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * <!-- begin-user-doc --> | ||
417 | * <!-- end-user-doc --> | ||
418 | * @generated | ||
419 | */ | ||
420 | @Override | ||
421 | public EClass getConstantEvent() { | ||
422 | return constantEventEClass; | ||
423 | } | ||
424 | |||
425 | /** | ||
426 | * <!-- begin-user-doc --> | ||
427 | * <!-- end-user-doc --> | ||
428 | * @generated | ||
429 | */ | ||
430 | @Override | ||
431 | public EAttribute getConstantEvent_Failed() { | ||
432 | return (EAttribute)constantEventEClass.getEStructuralFeatures().get(0); | ||
433 | } | ||
434 | |||
435 | /** | ||
436 | * <!-- begin-user-doc --> | ||
437 | * <!-- end-user-doc --> | ||
438 | * @generated | ||
439 | */ | ||
440 | @Override | ||
441 | public FtFactory getFtFactory() { | ||
442 | return (FtFactory)getEFactoryInstance(); | ||
443 | } | ||
444 | |||
445 | /** | ||
446 | * <!-- begin-user-doc --> | ||
447 | * <!-- end-user-doc --> | ||
448 | * @generated | ||
449 | */ | ||
450 | private boolean isCreated = false; | ||
451 | |||
452 | /** | ||
453 | * Creates the meta-model objects for the package. This method is | ||
454 | * guarded to have no affect on any invocation but its first. | ||
455 | * <!-- begin-user-doc --> | ||
456 | * <!-- end-user-doc --> | ||
457 | * @generated | ||
458 | */ | ||
459 | public void createPackageContents() { | ||
460 | if (isCreated) return; | ||
461 | isCreated = true; | ||
462 | |||
463 | // Create classes and their features | ||
464 | faultTreeEClass = createEClass(FAULT_TREE); | ||
465 | createEReference(faultTreeEClass, FAULT_TREE__EVENTS); | ||
466 | createEReference(faultTreeEClass, FAULT_TREE__TOP_EVENT); | ||
467 | |||
468 | randomEventEClass = createEClass(RANDOM_EVENT); | ||
469 | createEAttribute(randomEventEClass, RANDOM_EVENT__NAME); | ||
470 | |||
471 | basicEventEClass = createEClass(BASIC_EVENT); | ||
472 | createEReference(basicEventEClass, BASIC_EVENT__DISTRIBUTION); | ||
473 | |||
474 | gateEClass = createEClass(GATE); | ||
475 | createEReference(gateEClass, GATE__INPUT_EVENTS); | ||
476 | |||
477 | distributionEClass = createEClass(DISTRIBUTION); | ||
478 | |||
479 | constantDistributionEClass = createEClass(CONSTANT_DISTRIBUTION); | ||
480 | createEAttribute(constantDistributionEClass, CONSTANT_DISTRIBUTION__P); | ||
481 | |||
482 | exponentialDistributionEClass = createEClass(EXPONENTIAL_DISTRIBUTION); | ||
483 | createEAttribute(exponentialDistributionEClass, EXPONENTIAL_DISTRIBUTION__LAMBDA); | ||
484 | |||
485 | andGateEClass = createEClass(AND_GATE); | ||
486 | |||
487 | orGateEClass = createEClass(OR_GATE); | ||
488 | |||
489 | kOfMGateEClass = createEClass(KOF_MGATE); | ||
490 | createEAttribute(kOfMGateEClass, KOF_MGATE__K); | ||
491 | |||
492 | reliabilityModelEClass = createEClass(RELIABILITY_MODEL); | ||
493 | |||
494 | constantModelEClass = createEClass(CONSTANT_MODEL); | ||
495 | createEAttribute(constantModelEClass, CONSTANT_MODEL__FAILED); | ||
496 | |||
497 | eventEClass = createEClass(EVENT); | ||
498 | |||
499 | constantEventEClass = createEClass(CONSTANT_EVENT); | ||
500 | createEAttribute(constantEventEClass, CONSTANT_EVENT__FAILED); | ||
501 | } | ||
502 | |||
503 | /** | ||
504 | * <!-- begin-user-doc --> | ||
505 | * <!-- end-user-doc --> | ||
506 | * @generated | ||
507 | */ | ||
508 | private boolean isInitialized = false; | ||
509 | |||
510 | /** | ||
511 | * Complete the initialization of the package and its meta-model. This | ||
512 | * method is guarded to have no affect on any invocation but its first. | ||
513 | * <!-- begin-user-doc --> | ||
514 | * <!-- end-user-doc --> | ||
515 | * @generated | ||
516 | */ | ||
517 | public void initializePackageContents() { | ||
518 | if (isInitialized) return; | ||
519 | isInitialized = true; | ||
520 | |||
521 | // Initialize package | ||
522 | setName(eNAME); | ||
523 | setNsPrefix(eNS_PREFIX); | ||
524 | setNsURI(eNS_URI); | ||
525 | |||
526 | // Create type parameters | ||
527 | |||
528 | // Set bounds for type parameters | ||
529 | |||
530 | // Add supertypes to classes | ||
531 | faultTreeEClass.getESuperTypes().add(this.getReliabilityModel()); | ||
532 | randomEventEClass.getESuperTypes().add(this.getEvent()); | ||
533 | basicEventEClass.getESuperTypes().add(this.getRandomEvent()); | ||
534 | gateEClass.getESuperTypes().add(this.getRandomEvent()); | ||
535 | constantDistributionEClass.getESuperTypes().add(this.getDistribution()); | ||
536 | exponentialDistributionEClass.getESuperTypes().add(this.getDistribution()); | ||
537 | andGateEClass.getESuperTypes().add(this.getGate()); | ||
538 | orGateEClass.getESuperTypes().add(this.getGate()); | ||
539 | kOfMGateEClass.getESuperTypes().add(this.getGate()); | ||
540 | constantModelEClass.getESuperTypes().add(this.getReliabilityModel()); | ||
541 | constantEventEClass.getESuperTypes().add(this.getEvent()); | ||
542 | |||
543 | // Initialize classes, features, and operations; add parameters | ||
544 | initEClass(faultTreeEClass, FaultTree.class, "FaultTree", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
545 | initEReference(getFaultTree_Events(), this.getRandomEvent(), null, "events", null, 0, -1, FaultTree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
546 | initEReference(getFaultTree_TopEvent(), this.getRandomEvent(), null, "topEvent", null, 1, 1, FaultTree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
547 | |||
548 | initEClass(randomEventEClass, RandomEvent.class, "RandomEvent", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
549 | initEAttribute(getRandomEvent_Name(), ecorePackage.getEString(), "name", null, 0, 1, RandomEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
550 | |||
551 | initEClass(basicEventEClass, BasicEvent.class, "BasicEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
552 | initEReference(getBasicEvent_Distribution(), this.getDistribution(), null, "distribution", null, 1, 1, BasicEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
553 | |||
554 | initEClass(gateEClass, Gate.class, "Gate", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
555 | initEReference(getGate_InputEvents(), this.getRandomEvent(), null, "inputEvents", null, 2, -1, Gate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
556 | |||
557 | initEClass(distributionEClass, Distribution.class, "Distribution", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
558 | |||
559 | initEClass(constantDistributionEClass, ConstantDistribution.class, "ConstantDistribution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
560 | initEAttribute(getConstantDistribution_P(), ecorePackage.getEDouble(), "p", null, 0, 1, ConstantDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
561 | |||
562 | initEClass(exponentialDistributionEClass, ExponentialDistribution.class, "ExponentialDistribution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
563 | initEAttribute(getExponentialDistribution_Lambda(), ecorePackage.getEDouble(), "lambda", null, 0, 1, ExponentialDistribution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
564 | |||
565 | initEClass(andGateEClass, AndGate.class, "AndGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
566 | |||
567 | initEClass(orGateEClass, OrGate.class, "OrGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
568 | |||
569 | initEClass(kOfMGateEClass, KOfMGate.class, "KOfMGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
570 | initEAttribute(getKOfMGate_K(), ecorePackage.getEInt(), "k", null, 0, 1, KOfMGate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
571 | |||
572 | initEClass(reliabilityModelEClass, ReliabilityModel.class, "ReliabilityModel", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
573 | |||
574 | initEClass(constantModelEClass, ConstantModel.class, "ConstantModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
575 | initEAttribute(getConstantModel_Failed(), ecorePackage.getEBoolean(), "failed", null, 0, 1, ConstantModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
576 | |||
577 | initEClass(eventEClass, Event.class, "Event", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
578 | |||
579 | initEClass(constantEventEClass, ConstantEvent.class, "ConstantEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
580 | initEAttribute(getConstantEvent_Failed(), ecorePackage.getEBoolean(), "failed", null, 0, 1, ConstantEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
581 | |||
582 | // Create resource | ||
583 | createResource(eNS_URI); | ||
584 | } | ||
585 | |||
586 | } //FtPackageImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/GateImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/GateImpl.java deleted file mode 100644 index 9e753a09..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/GateImpl.java +++ /dev/null | |||
@@ -1,133 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.Gate; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent; | ||
8 | |||
9 | import java.util.Collection; | ||
10 | |||
11 | import org.eclipse.emf.common.util.EList; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | |||
15 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Gate</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.GateImpl#getInputEvents <em>Input Events</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public abstract class GateImpl extends RandomEventImpl implements Gate { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' reference list. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getInputEvents() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected EList<RandomEvent> inputEvents; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected GateImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return FtPackage.Literals.GATE; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | public EList<RandomEvent> getInputEvents() { | ||
67 | if (inputEvents == null) { | ||
68 | inputEvents = new EObjectResolvingEList<RandomEvent>(RandomEvent.class, this, FtPackage.GATE__INPUT_EVENTS); | ||
69 | } | ||
70 | return inputEvents; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
80 | switch (featureID) { | ||
81 | case FtPackage.GATE__INPUT_EVENTS: | ||
82 | return getInputEvents(); | ||
83 | } | ||
84 | return super.eGet(featureID, resolve, coreType); | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @SuppressWarnings("unchecked") | ||
93 | @Override | ||
94 | public void eSet(int featureID, Object newValue) { | ||
95 | switch (featureID) { | ||
96 | case FtPackage.GATE__INPUT_EVENTS: | ||
97 | getInputEvents().clear(); | ||
98 | getInputEvents().addAll((Collection<? extends RandomEvent>)newValue); | ||
99 | return; | ||
100 | } | ||
101 | super.eSet(featureID, newValue); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void eUnset(int featureID) { | ||
111 | switch (featureID) { | ||
112 | case FtPackage.GATE__INPUT_EVENTS: | ||
113 | getInputEvents().clear(); | ||
114 | return; | ||
115 | } | ||
116 | super.eUnset(featureID); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public boolean eIsSet(int featureID) { | ||
126 | switch (featureID) { | ||
127 | case FtPackage.GATE__INPUT_EVENTS: | ||
128 | return inputEvents != null && !inputEvents.isEmpty(); | ||
129 | } | ||
130 | return super.eIsSet(featureID); | ||
131 | } | ||
132 | |||
133 | } //GateImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/KOfMGateImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/KOfMGateImpl.java deleted file mode 100644 index 47ca936b..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/KOfMGateImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.KOfMGate; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>KOf MGate</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.KOfMGateImpl#getK <em>K</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class KOfMGateImpl extends GateImpl implements KOfMGate { | ||
28 | /** | ||
29 | * The default value of the '{@link #getK() <em>K</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getK() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final int K_EDEFAULT = 0; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getK() <em>K</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getK() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected int k = K_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected KOfMGateImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return FtPackage.Literals.KOF_MGATE; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public int getK() { | ||
74 | return k; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public void setK(int newK) { | ||
84 | int oldK = k; | ||
85 | k = newK; | ||
86 | if (eNotificationRequired()) | ||
87 | eNotify(new ENotificationImpl(this, Notification.SET, FtPackage.KOF_MGATE__K, oldK, k)); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
97 | switch (featureID) { | ||
98 | case FtPackage.KOF_MGATE__K: | ||
99 | return getK(); | ||
100 | } | ||
101 | return super.eGet(featureID, resolve, coreType); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void eSet(int featureID, Object newValue) { | ||
111 | switch (featureID) { | ||
112 | case FtPackage.KOF_MGATE__K: | ||
113 | setK((Integer)newValue); | ||
114 | return; | ||
115 | } | ||
116 | super.eSet(featureID, newValue); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void eUnset(int featureID) { | ||
126 | switch (featureID) { | ||
127 | case FtPackage.KOF_MGATE__K: | ||
128 | setK(K_EDEFAULT); | ||
129 | return; | ||
130 | } | ||
131 | super.eUnset(featureID); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public boolean eIsSet(int featureID) { | ||
141 | switch (featureID) { | ||
142 | case FtPackage.KOF_MGATE__K: | ||
143 | return k != K_EDEFAULT; | ||
144 | } | ||
145 | return super.eIsSet(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public String toString() { | ||
155 | if (eIsProxy()) return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (k: "); | ||
159 | result.append(k); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //KOfMGateImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/OrGateImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/OrGateImpl.java deleted file mode 100644 index 88bd2bae..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/OrGateImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.OrGate; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Or Gate</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class OrGateImpl extends GateImpl implements OrGate { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected OrGateImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return FtPackage.Literals.OR_GATE; | ||
35 | } | ||
36 | |||
37 | } //OrGateImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/RandomEventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/RandomEventImpl.java deleted file mode 100644 index 4f9eda56..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/RandomEventImpl.java +++ /dev/null | |||
@@ -1,164 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.RandomEvent; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Random Event</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl.RandomEventImpl#getName <em>Name</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public abstract class RandomEventImpl extends EventImpl implements RandomEvent { | ||
28 | /** | ||
29 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getName() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final String NAME_EDEFAULT = null; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getName() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected String name = NAME_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected RandomEventImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return FtPackage.Literals.RANDOM_EVENT; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public String getName() { | ||
74 | return name; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public void setName(String newName) { | ||
84 | String oldName = name; | ||
85 | name = newName; | ||
86 | if (eNotificationRequired()) | ||
87 | eNotify(new ENotificationImpl(this, Notification.SET, FtPackage.RANDOM_EVENT__NAME, oldName, name)); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | @Override | ||
96 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
97 | switch (featureID) { | ||
98 | case FtPackage.RANDOM_EVENT__NAME: | ||
99 | return getName(); | ||
100 | } | ||
101 | return super.eGet(featureID, resolve, coreType); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void eSet(int featureID, Object newValue) { | ||
111 | switch (featureID) { | ||
112 | case FtPackage.RANDOM_EVENT__NAME: | ||
113 | setName((String)newValue); | ||
114 | return; | ||
115 | } | ||
116 | super.eSet(featureID, newValue); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void eUnset(int featureID) { | ||
126 | switch (featureID) { | ||
127 | case FtPackage.RANDOM_EVENT__NAME: | ||
128 | setName(NAME_EDEFAULT); | ||
129 | return; | ||
130 | } | ||
131 | super.eUnset(featureID); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public boolean eIsSet(int featureID) { | ||
141 | switch (featureID) { | ||
142 | case FtPackage.RANDOM_EVENT__NAME: | ||
143 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
144 | } | ||
145 | return super.eIsSet(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public String toString() { | ||
155 | if (eIsProxy()) return super.toString(); | ||
156 | |||
157 | StringBuilder result = new StringBuilder(super.toString()); | ||
158 | result.append(" (name: "); | ||
159 | result.append(name); | ||
160 | result.append(')'); | ||
161 | return result.toString(); | ||
162 | } | ||
163 | |||
164 | } //RandomEventImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ReliabilityModelImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ReliabilityModelImpl.java deleted file mode 100644 index e3d0eec1..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/ft/impl/ReliabilityModelImpl.java +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.ft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ReliabilityModel; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * An implementation of the model object '<em><b>Reliability Model</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * @generated | ||
18 | */ | ||
19 | public abstract class ReliabilityModelImpl extends MinimalEObjectImpl.Container implements ReliabilityModel { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected ReliabilityModelImpl() { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() { | ||
36 | return FtPackage.Literals.RELIABILITY_MODEL; | ||
37 | } | ||
38 | |||
39 | } //ReliabilityModelImpl | ||
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 | ||