diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft')
34 files changed, 6864 insertions, 0 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 new file mode 100644 index 00000000..cdae0f09 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/AndGateDefinition.java | |||
@@ -0,0 +1,17 @@ | |||
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 new file mode 100644 index 00000000..c963dbfe --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/BasicEventDefinition.java | |||
@@ -0,0 +1,50 @@ | |||
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 new file mode 100644 index 00000000..d5f4cd76 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftFactory.java | |||
@@ -0,0 +1,132 @@ | |||
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>Intput Event</em>'. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @return a new object of class '<em>Intput Event</em>'. | ||
47 | * @generated | ||
48 | */ | ||
49 | IntputEvent createIntputEvent(); | ||
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 new file mode 100644 index 00000000..8cf7dbc6 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftPackage.java | |||
@@ -0,0 +1,1491 @@ | |||
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.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.cft.CftFactory | ||
23 | * @model kind="package" | ||
24 | * @generated | ||
25 | */ | ||
26 | public interface CftPackage extends EPackage { | ||
27 | /** | ||
28 | * The package name. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @generated | ||
32 | */ | ||
33 | String eNAME = "cft"; | ||
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/cft"; | ||
42 | |||
43 | /** | ||
44 | * The package namespace name. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @generated | ||
48 | */ | ||
49 | String eNS_PREFIX = "cft"; | ||
50 | |||
51 | /** | ||
52 | * The singleton instance of the package. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | CftPackage eINSTANCE = hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl.init(); | ||
58 | |||
59 | /** | ||
60 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl <em>Component Definition</em>}' class. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl | ||
64 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponentDefinition() | ||
65 | * @generated | ||
66 | */ | ||
67 | int COMPONENT_DEFINITION = 0; | ||
68 | |||
69 | /** | ||
70 | * The feature id for the '<em><b>Input Events</b></em>' containment reference list. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | * @ordered | ||
75 | */ | ||
76 | int COMPONENT_DEFINITION__INPUT_EVENTS = 0; | ||
77 | |||
78 | /** | ||
79 | * The feature id for the '<em><b>Event Definitions</b></em>' containment reference list. | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | int COMPONENT_DEFINITION__EVENT_DEFINITIONS = 1; | ||
86 | |||
87 | /** | ||
88 | * The feature id for the '<em><b>Output Events</b></em>' reference list. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | * @ordered | ||
93 | */ | ||
94 | int COMPONENT_DEFINITION__OUTPUT_EVENTS = 2; | ||
95 | |||
96 | /** | ||
97 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | * @ordered | ||
102 | */ | ||
103 | int COMPONENT_DEFINITION__NAME = 3; | ||
104 | |||
105 | /** | ||
106 | * The number of structural features of the '<em>Component Definition</em>' class. | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | * @ordered | ||
111 | */ | ||
112 | int COMPONENT_DEFINITION_FEATURE_COUNT = 4; | ||
113 | |||
114 | /** | ||
115 | * The number of operations of the '<em>Component Definition</em>' class. | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | * @ordered | ||
120 | */ | ||
121 | int COMPONENT_DEFINITION_OPERATION_COUNT = 0; | ||
122 | |||
123 | /** | ||
124 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDeclarationImpl <em>Event Declaration</em>}' class. | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDeclarationImpl | ||
128 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getEventDeclaration() | ||
129 | * @generated | ||
130 | */ | ||
131 | int EVENT_DECLARATION = 5; | ||
132 | |||
133 | /** | ||
134 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | * @ordered | ||
139 | */ | ||
140 | int EVENT_DECLARATION__NAME = 0; | ||
141 | |||
142 | /** | ||
143 | * The number of structural features of the '<em>Event Declaration</em>' class. | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | * @ordered | ||
148 | */ | ||
149 | int EVENT_DECLARATION_FEATURE_COUNT = 1; | ||
150 | |||
151 | /** | ||
152 | * The number of operations of the '<em>Event Declaration</em>' class. | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | * @ordered | ||
157 | */ | ||
158 | int EVENT_DECLARATION_OPERATION_COUNT = 0; | ||
159 | |||
160 | /** | ||
161 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDefinitionImpl <em>Event Definition</em>}' class. | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDefinitionImpl | ||
165 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getEventDefinition() | ||
166 | * @generated | ||
167 | */ | ||
168 | int EVENT_DEFINITION = 1; | ||
169 | |||
170 | /** | ||
171 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | * @ordered | ||
176 | */ | ||
177 | int EVENT_DEFINITION__NAME = EVENT_DECLARATION__NAME; | ||
178 | |||
179 | /** | ||
180 | * The number of structural features of the '<em>Event Definition</em>' class. | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | * @ordered | ||
185 | */ | ||
186 | int EVENT_DEFINITION_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 0; | ||
187 | |||
188 | /** | ||
189 | * The number of operations of the '<em>Event Definition</em>' class. | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | * @ordered | ||
194 | */ | ||
195 | int EVENT_DEFINITION_OPERATION_COUNT = EVENT_DECLARATION_OPERATION_COUNT + 0; | ||
196 | |||
197 | /** | ||
198 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.GateDefinitionImpl <em>Gate Definition</em>}' class. | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.GateDefinitionImpl | ||
202 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getGateDefinition() | ||
203 | * @generated | ||
204 | */ | ||
205 | int GATE_DEFINITION = 2; | ||
206 | |||
207 | /** | ||
208 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | * @ordered | ||
213 | */ | ||
214 | int GATE_DEFINITION__NAME = EVENT_DEFINITION__NAME; | ||
215 | |||
216 | /** | ||
217 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | * @ordered | ||
222 | */ | ||
223 | int GATE_DEFINITION__INPUT_EVENTS = EVENT_DEFINITION_FEATURE_COUNT + 0; | ||
224 | |||
225 | /** | ||
226 | * The number of structural features of the '<em>Gate Definition</em>' class. | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | * @ordered | ||
231 | */ | ||
232 | int GATE_DEFINITION_FEATURE_COUNT = EVENT_DEFINITION_FEATURE_COUNT + 1; | ||
233 | |||
234 | /** | ||
235 | * The number of operations of the '<em>Gate Definition</em>' class. | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | * @ordered | ||
240 | */ | ||
241 | int GATE_DEFINITION_OPERATION_COUNT = EVENT_DEFINITION_OPERATION_COUNT + 0; | ||
242 | |||
243 | /** | ||
244 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.BasicEventDefinitionImpl <em>Basic Event Definition</em>}' class. | ||
245 | * <!-- begin-user-doc --> | ||
246 | * <!-- end-user-doc --> | ||
247 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.BasicEventDefinitionImpl | ||
248 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getBasicEventDefinition() | ||
249 | * @generated | ||
250 | */ | ||
251 | int BASIC_EVENT_DEFINITION = 3; | ||
252 | |||
253 | /** | ||
254 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
255 | * <!-- begin-user-doc --> | ||
256 | * <!-- end-user-doc --> | ||
257 | * @generated | ||
258 | * @ordered | ||
259 | */ | ||
260 | int BASIC_EVENT_DEFINITION__NAME = EVENT_DEFINITION__NAME; | ||
261 | |||
262 | /** | ||
263 | * The feature id for the '<em><b>Distribution</b></em>' containment reference. | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @generated | ||
267 | * @ordered | ||
268 | */ | ||
269 | int BASIC_EVENT_DEFINITION__DISTRIBUTION = EVENT_DEFINITION_FEATURE_COUNT + 0; | ||
270 | |||
271 | /** | ||
272 | * The number of structural features of the '<em>Basic Event Definition</em>' class. | ||
273 | * <!-- begin-user-doc --> | ||
274 | * <!-- end-user-doc --> | ||
275 | * @generated | ||
276 | * @ordered | ||
277 | */ | ||
278 | int BASIC_EVENT_DEFINITION_FEATURE_COUNT = EVENT_DEFINITION_FEATURE_COUNT + 1; | ||
279 | |||
280 | /** | ||
281 | * The number of operations of the '<em>Basic Event Definition</em>' class. | ||
282 | * <!-- begin-user-doc --> | ||
283 | * <!-- end-user-doc --> | ||
284 | * @generated | ||
285 | * @ordered | ||
286 | */ | ||
287 | int BASIC_EVENT_DEFINITION_OPERATION_COUNT = EVENT_DEFINITION_OPERATION_COUNT + 0; | ||
288 | |||
289 | /** | ||
290 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.IntputEventImpl <em>Intput Event</em>}' class. | ||
291 | * <!-- begin-user-doc --> | ||
292 | * <!-- end-user-doc --> | ||
293 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.IntputEventImpl | ||
294 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getIntputEvent() | ||
295 | * @generated | ||
296 | */ | ||
297 | int INTPUT_EVENT = 4; | ||
298 | |||
299 | /** | ||
300 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | * @ordered | ||
305 | */ | ||
306 | int INTPUT_EVENT__NAME = EVENT_DECLARATION__NAME; | ||
307 | |||
308 | /** | ||
309 | * The feature id for the '<em><b>Multiple</b></em>' attribute. | ||
310 | * <!-- begin-user-doc --> | ||
311 | * <!-- end-user-doc --> | ||
312 | * @generated | ||
313 | * @ordered | ||
314 | */ | ||
315 | int INTPUT_EVENT__MULTIPLE = EVENT_DECLARATION_FEATURE_COUNT + 0; | ||
316 | |||
317 | /** | ||
318 | * The number of structural features of the '<em>Intput Event</em>' class. | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @generated | ||
322 | * @ordered | ||
323 | */ | ||
324 | int INTPUT_EVENT_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 1; | ||
325 | |||
326 | /** | ||
327 | * The number of operations of the '<em>Intput Event</em>' class. | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | * @ordered | ||
332 | */ | ||
333 | int INTPUT_EVENT_OPERATION_COUNT = EVENT_DECLARATION_OPERATION_COUNT + 0; | ||
334 | |||
335 | /** | ||
336 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.AndGateDefinitionImpl <em>And Gate Definition</em>}' class. | ||
337 | * <!-- begin-user-doc --> | ||
338 | * <!-- end-user-doc --> | ||
339 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.AndGateDefinitionImpl | ||
340 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getAndGateDefinition() | ||
341 | * @generated | ||
342 | */ | ||
343 | int AND_GATE_DEFINITION = 6; | ||
344 | |||
345 | /** | ||
346 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
347 | * <!-- begin-user-doc --> | ||
348 | * <!-- end-user-doc --> | ||
349 | * @generated | ||
350 | * @ordered | ||
351 | */ | ||
352 | int AND_GATE_DEFINITION__NAME = GATE_DEFINITION__NAME; | ||
353 | |||
354 | /** | ||
355 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | * @ordered | ||
360 | */ | ||
361 | int AND_GATE_DEFINITION__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
362 | |||
363 | /** | ||
364 | * The number of structural features of the '<em>And Gate Definition</em>' class. | ||
365 | * <!-- begin-user-doc --> | ||
366 | * <!-- end-user-doc --> | ||
367 | * @generated | ||
368 | * @ordered | ||
369 | */ | ||
370 | int AND_GATE_DEFINITION_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
371 | |||
372 | /** | ||
373 | * The number of operations of the '<em>And Gate Definition</em>' class. | ||
374 | * <!-- begin-user-doc --> | ||
375 | * <!-- end-user-doc --> | ||
376 | * @generated | ||
377 | * @ordered | ||
378 | */ | ||
379 | int AND_GATE_DEFINITION_OPERATION_COUNT = GATE_DEFINITION_OPERATION_COUNT + 0; | ||
380 | |||
381 | /** | ||
382 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OrGateDefinitionImpl <em>Or Gate Definition</em>}' class. | ||
383 | * <!-- begin-user-doc --> | ||
384 | * <!-- end-user-doc --> | ||
385 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OrGateDefinitionImpl | ||
386 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getOrGateDefinition() | ||
387 | * @generated | ||
388 | */ | ||
389 | int OR_GATE_DEFINITION = 7; | ||
390 | |||
391 | /** | ||
392 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
393 | * <!-- begin-user-doc --> | ||
394 | * <!-- end-user-doc --> | ||
395 | * @generated | ||
396 | * @ordered | ||
397 | */ | ||
398 | int OR_GATE_DEFINITION__NAME = GATE_DEFINITION__NAME; | ||
399 | |||
400 | /** | ||
401 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
402 | * <!-- begin-user-doc --> | ||
403 | * <!-- end-user-doc --> | ||
404 | * @generated | ||
405 | * @ordered | ||
406 | */ | ||
407 | int OR_GATE_DEFINITION__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
408 | |||
409 | /** | ||
410 | * The number of structural features of the '<em>Or Gate Definition</em>' class. | ||
411 | * <!-- begin-user-doc --> | ||
412 | * <!-- end-user-doc --> | ||
413 | * @generated | ||
414 | * @ordered | ||
415 | */ | ||
416 | int OR_GATE_DEFINITION_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
417 | |||
418 | /** | ||
419 | * The number of operations of the '<em>Or Gate Definition</em>' class. | ||
420 | * <!-- begin-user-doc --> | ||
421 | * <!-- end-user-doc --> | ||
422 | * @generated | ||
423 | * @ordered | ||
424 | */ | ||
425 | int OR_GATE_DEFINITION_OPERATION_COUNT = GATE_DEFINITION_OPERATION_COUNT + 0; | ||
426 | |||
427 | /** | ||
428 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.KOfMGateDefinitionImpl <em>KOf MGate Definition</em>}' class. | ||
429 | * <!-- begin-user-doc --> | ||
430 | * <!-- end-user-doc --> | ||
431 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.KOfMGateDefinitionImpl | ||
432 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getKOfMGateDefinition() | ||
433 | * @generated | ||
434 | */ | ||
435 | int KOF_MGATE_DEFINITION = 8; | ||
436 | |||
437 | /** | ||
438 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
439 | * <!-- begin-user-doc --> | ||
440 | * <!-- end-user-doc --> | ||
441 | * @generated | ||
442 | * @ordered | ||
443 | */ | ||
444 | int KOF_MGATE_DEFINITION__NAME = GATE_DEFINITION__NAME; | ||
445 | |||
446 | /** | ||
447 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
448 | * <!-- begin-user-doc --> | ||
449 | * <!-- end-user-doc --> | ||
450 | * @generated | ||
451 | * @ordered | ||
452 | */ | ||
453 | int KOF_MGATE_DEFINITION__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
454 | |||
455 | /** | ||
456 | * The feature id for the '<em><b>K</b></em>' attribute. | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @generated | ||
460 | * @ordered | ||
461 | */ | ||
462 | int KOF_MGATE_DEFINITION__K = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
463 | |||
464 | /** | ||
465 | * The feature id for the '<em><b>M</b></em>' attribute. | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | * @ordered | ||
470 | */ | ||
471 | int KOF_MGATE_DEFINITION__M = GATE_DEFINITION_FEATURE_COUNT + 1; | ||
472 | |||
473 | /** | ||
474 | * The number of structural features of the '<em>KOf MGate Definition</em>' class. | ||
475 | * <!-- begin-user-doc --> | ||
476 | * <!-- end-user-doc --> | ||
477 | * @generated | ||
478 | * @ordered | ||
479 | */ | ||
480 | int KOF_MGATE_DEFINITION_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 2; | ||
481 | |||
482 | /** | ||
483 | * The number of operations of the '<em>KOf MGate Definition</em>' class. | ||
484 | * <!-- begin-user-doc --> | ||
485 | * <!-- end-user-doc --> | ||
486 | * @generated | ||
487 | * @ordered | ||
488 | */ | ||
489 | int KOF_MGATE_DEFINITION_OPERATION_COUNT = GATE_DEFINITION_OPERATION_COUNT + 0; | ||
490 | |||
491 | /** | ||
492 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentFaultTreeImpl <em>Component Fault Tree</em>}' class. | ||
493 | * <!-- begin-user-doc --> | ||
494 | * <!-- end-user-doc --> | ||
495 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentFaultTreeImpl | ||
496 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponentFaultTree() | ||
497 | * @generated | ||
498 | */ | ||
499 | int COMPONENT_FAULT_TREE = 9; | ||
500 | |||
501 | /** | ||
502 | * The feature id for the '<em><b>Components</b></em>' containment reference list. | ||
503 | * <!-- begin-user-doc --> | ||
504 | * <!-- end-user-doc --> | ||
505 | * @generated | ||
506 | * @ordered | ||
507 | */ | ||
508 | int COMPONENT_FAULT_TREE__COMPONENTS = 0; | ||
509 | |||
510 | /** | ||
511 | * The feature id for the '<em><b>Top Event</b></em>' reference. | ||
512 | * <!-- begin-user-doc --> | ||
513 | * <!-- end-user-doc --> | ||
514 | * @generated | ||
515 | * @ordered | ||
516 | */ | ||
517 | int COMPONENT_FAULT_TREE__TOP_EVENT = 1; | ||
518 | |||
519 | /** | ||
520 | * The number of structural features of the '<em>Component Fault Tree</em>' class. | ||
521 | * <!-- begin-user-doc --> | ||
522 | * <!-- end-user-doc --> | ||
523 | * @generated | ||
524 | * @ordered | ||
525 | */ | ||
526 | int COMPONENT_FAULT_TREE_FEATURE_COUNT = 2; | ||
527 | |||
528 | /** | ||
529 | * The number of operations of the '<em>Component Fault Tree</em>' class. | ||
530 | * <!-- begin-user-doc --> | ||
531 | * <!-- end-user-doc --> | ||
532 | * @generated | ||
533 | * @ordered | ||
534 | */ | ||
535 | int COMPONENT_FAULT_TREE_OPERATION_COUNT = 0; | ||
536 | |||
537 | /** | ||
538 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl <em>Component</em>}' class. | ||
539 | * <!-- begin-user-doc --> | ||
540 | * <!-- end-user-doc --> | ||
541 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl | ||
542 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponent() | ||
543 | * @generated | ||
544 | */ | ||
545 | int COMPONENT = 10; | ||
546 | |||
547 | /** | ||
548 | * The feature id for the '<em><b>Inputs</b></em>' containment reference list. | ||
549 | * <!-- begin-user-doc --> | ||
550 | * <!-- end-user-doc --> | ||
551 | * @generated | ||
552 | * @ordered | ||
553 | */ | ||
554 | int COMPONENT__INPUTS = 0; | ||
555 | |||
556 | /** | ||
557 | * The feature id for the '<em><b>Outputs</b></em>' containment reference list. | ||
558 | * <!-- begin-user-doc --> | ||
559 | * <!-- end-user-doc --> | ||
560 | * @generated | ||
561 | * @ordered | ||
562 | */ | ||
563 | int COMPONENT__OUTPUTS = 1; | ||
564 | |||
565 | /** | ||
566 | * The feature id for the '<em><b>Component Definition</b></em>' reference. | ||
567 | * <!-- begin-user-doc --> | ||
568 | * <!-- end-user-doc --> | ||
569 | * @generated | ||
570 | * @ordered | ||
571 | */ | ||
572 | int COMPONENT__COMPONENT_DEFINITION = 2; | ||
573 | |||
574 | /** | ||
575 | * The number of structural features of the '<em>Component</em>' class. | ||
576 | * <!-- begin-user-doc --> | ||
577 | * <!-- end-user-doc --> | ||
578 | * @generated | ||
579 | * @ordered | ||
580 | */ | ||
581 | int COMPONENT_FEATURE_COUNT = 3; | ||
582 | |||
583 | /** | ||
584 | * The number of operations of the '<em>Component</em>' class. | ||
585 | * <!-- begin-user-doc --> | ||
586 | * <!-- end-user-doc --> | ||
587 | * @generated | ||
588 | * @ordered | ||
589 | */ | ||
590 | int COMPONENT_OPERATION_COUNT = 0; | ||
591 | |||
592 | /** | ||
593 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl <em>Input</em>}' class. | ||
594 | * <!-- begin-user-doc --> | ||
595 | * <!-- end-user-doc --> | ||
596 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl | ||
597 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getInput() | ||
598 | * @generated | ||
599 | */ | ||
600 | int INPUT = 11; | ||
601 | |||
602 | /** | ||
603 | * The feature id for the '<em><b>Intput Event</b></em>' reference. | ||
604 | * <!-- begin-user-doc --> | ||
605 | * <!-- end-user-doc --> | ||
606 | * @generated | ||
607 | * @ordered | ||
608 | */ | ||
609 | int INPUT__INTPUT_EVENT = 0; | ||
610 | |||
611 | /** | ||
612 | * The feature id for the '<em><b>Component</b></em>' container reference. | ||
613 | * <!-- begin-user-doc --> | ||
614 | * <!-- end-user-doc --> | ||
615 | * @generated | ||
616 | * @ordered | ||
617 | */ | ||
618 | int INPUT__COMPONENT = 1; | ||
619 | |||
620 | /** | ||
621 | * The feature id for the '<em><b>Incoming Connections</b></em>' containment reference list. | ||
622 | * <!-- begin-user-doc --> | ||
623 | * <!-- end-user-doc --> | ||
624 | * @generated | ||
625 | * @ordered | ||
626 | */ | ||
627 | int INPUT__INCOMING_CONNECTIONS = 2; | ||
628 | |||
629 | /** | ||
630 | * The number of structural features of the '<em>Input</em>' class. | ||
631 | * <!-- begin-user-doc --> | ||
632 | * <!-- end-user-doc --> | ||
633 | * @generated | ||
634 | * @ordered | ||
635 | */ | ||
636 | int INPUT_FEATURE_COUNT = 3; | ||
637 | |||
638 | /** | ||
639 | * The number of operations of the '<em>Input</em>' class. | ||
640 | * <!-- begin-user-doc --> | ||
641 | * <!-- end-user-doc --> | ||
642 | * @generated | ||
643 | * @ordered | ||
644 | */ | ||
645 | int INPUT_OPERATION_COUNT = 0; | ||
646 | |||
647 | /** | ||
648 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl <em>Output</em>}' class. | ||
649 | * <!-- begin-user-doc --> | ||
650 | * <!-- end-user-doc --> | ||
651 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl | ||
652 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getOutput() | ||
653 | * @generated | ||
654 | */ | ||
655 | int OUTPUT = 12; | ||
656 | |||
657 | /** | ||
658 | * The feature id for the '<em><b>Event Declaration</b></em>' reference. | ||
659 | * <!-- begin-user-doc --> | ||
660 | * <!-- end-user-doc --> | ||
661 | * @generated | ||
662 | * @ordered | ||
663 | */ | ||
664 | int OUTPUT__EVENT_DECLARATION = 0; | ||
665 | |||
666 | /** | ||
667 | * The feature id for the '<em><b>Outgoing Connections</b></em>' reference list. | ||
668 | * <!-- begin-user-doc --> | ||
669 | * <!-- end-user-doc --> | ||
670 | * @generated | ||
671 | * @ordered | ||
672 | */ | ||
673 | int OUTPUT__OUTGOING_CONNECTIONS = 1; | ||
674 | |||
675 | /** | ||
676 | * The feature id for the '<em><b>Component</b></em>' container reference. | ||
677 | * <!-- begin-user-doc --> | ||
678 | * <!-- end-user-doc --> | ||
679 | * @generated | ||
680 | * @ordered | ||
681 | */ | ||
682 | int OUTPUT__COMPONENT = 2; | ||
683 | |||
684 | /** | ||
685 | * The number of structural features of the '<em>Output</em>' class. | ||
686 | * <!-- begin-user-doc --> | ||
687 | * <!-- end-user-doc --> | ||
688 | * @generated | ||
689 | * @ordered | ||
690 | */ | ||
691 | int OUTPUT_FEATURE_COUNT = 3; | ||
692 | |||
693 | /** | ||
694 | * The number of operations of the '<em>Output</em>' class. | ||
695 | * <!-- begin-user-doc --> | ||
696 | * <!-- end-user-doc --> | ||
697 | * @generated | ||
698 | * @ordered | ||
699 | */ | ||
700 | int OUTPUT_OPERATION_COUNT = 0; | ||
701 | |||
702 | /** | ||
703 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl <em>Connection</em>}' class. | ||
704 | * <!-- begin-user-doc --> | ||
705 | * <!-- end-user-doc --> | ||
706 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl | ||
707 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getConnection() | ||
708 | * @generated | ||
709 | */ | ||
710 | int CONNECTION = 13; | ||
711 | |||
712 | /** | ||
713 | * The feature id for the '<em><b>Input</b></em>' container reference. | ||
714 | * <!-- begin-user-doc --> | ||
715 | * <!-- end-user-doc --> | ||
716 | * @generated | ||
717 | * @ordered | ||
718 | */ | ||
719 | int CONNECTION__INPUT = 0; | ||
720 | |||
721 | /** | ||
722 | * The feature id for the '<em><b>Output</b></em>' reference. | ||
723 | * <!-- begin-user-doc --> | ||
724 | * <!-- end-user-doc --> | ||
725 | * @generated | ||
726 | * @ordered | ||
727 | */ | ||
728 | int CONNECTION__OUTPUT = 1; | ||
729 | |||
730 | /** | ||
731 | * The number of structural features of the '<em>Connection</em>' class. | ||
732 | * <!-- begin-user-doc --> | ||
733 | * <!-- end-user-doc --> | ||
734 | * @generated | ||
735 | * @ordered | ||
736 | */ | ||
737 | int CONNECTION_FEATURE_COUNT = 2; | ||
738 | |||
739 | /** | ||
740 | * The number of operations of the '<em>Connection</em>' class. | ||
741 | * <!-- begin-user-doc --> | ||
742 | * <!-- end-user-doc --> | ||
743 | * @generated | ||
744 | * @ordered | ||
745 | */ | ||
746 | int CONNECTION_OPERATION_COUNT = 0; | ||
747 | |||
748 | |||
749 | /** | ||
750 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition <em>Component Definition</em>}'. | ||
751 | * <!-- begin-user-doc --> | ||
752 | * <!-- end-user-doc --> | ||
753 | * @return the meta object for class '<em>Component Definition</em>'. | ||
754 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition | ||
755 | * @generated | ||
756 | */ | ||
757 | EClass getComponentDefinition(); | ||
758 | |||
759 | /** | ||
760 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getInputEvents <em>Input Events</em>}'. | ||
761 | * <!-- begin-user-doc --> | ||
762 | * <!-- end-user-doc --> | ||
763 | * @return the meta object for the containment reference list '<em>Input Events</em>'. | ||
764 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getInputEvents() | ||
765 | * @see #getComponentDefinition() | ||
766 | * @generated | ||
767 | */ | ||
768 | EReference getComponentDefinition_InputEvents(); | ||
769 | |||
770 | /** | ||
771 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getEventDefinitions <em>Event Definitions</em>}'. | ||
772 | * <!-- begin-user-doc --> | ||
773 | * <!-- end-user-doc --> | ||
774 | * @return the meta object for the containment reference list '<em>Event Definitions</em>'. | ||
775 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getEventDefinitions() | ||
776 | * @see #getComponentDefinition() | ||
777 | * @generated | ||
778 | */ | ||
779 | EReference getComponentDefinition_EventDefinitions(); | ||
780 | |||
781 | /** | ||
782 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getOutputEvents <em>Output Events</em>}'. | ||
783 | * <!-- begin-user-doc --> | ||
784 | * <!-- end-user-doc --> | ||
785 | * @return the meta object for the reference list '<em>Output Events</em>'. | ||
786 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getOutputEvents() | ||
787 | * @see #getComponentDefinition() | ||
788 | * @generated | ||
789 | */ | ||
790 | EReference getComponentDefinition_OutputEvents(); | ||
791 | |||
792 | /** | ||
793 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getName <em>Name</em>}'. | ||
794 | * <!-- begin-user-doc --> | ||
795 | * <!-- end-user-doc --> | ||
796 | * @return the meta object for the attribute '<em>Name</em>'. | ||
797 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition#getName() | ||
798 | * @see #getComponentDefinition() | ||
799 | * @generated | ||
800 | */ | ||
801 | EAttribute getComponentDefinition_Name(); | ||
802 | |||
803 | /** | ||
804 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition <em>Event Definition</em>}'. | ||
805 | * <!-- begin-user-doc --> | ||
806 | * <!-- end-user-doc --> | ||
807 | * @return the meta object for class '<em>Event Definition</em>'. | ||
808 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition | ||
809 | * @generated | ||
810 | */ | ||
811 | EClass getEventDefinition(); | ||
812 | |||
813 | /** | ||
814 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition <em>Gate Definition</em>}'. | ||
815 | * <!-- begin-user-doc --> | ||
816 | * <!-- end-user-doc --> | ||
817 | * @return the meta object for class '<em>Gate Definition</em>'. | ||
818 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition | ||
819 | * @generated | ||
820 | */ | ||
821 | EClass getGateDefinition(); | ||
822 | |||
823 | /** | ||
824 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition#getInputEvents <em>Input Events</em>}'. | ||
825 | * <!-- begin-user-doc --> | ||
826 | * <!-- end-user-doc --> | ||
827 | * @return the meta object for the reference list '<em>Input Events</em>'. | ||
828 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition#getInputEvents() | ||
829 | * @see #getGateDefinition() | ||
830 | * @generated | ||
831 | */ | ||
832 | EReference getGateDefinition_InputEvents(); | ||
833 | |||
834 | /** | ||
835 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
836 | * <!-- begin-user-doc --> | ||
837 | * <!-- end-user-doc --> | ||
838 | * @return the meta object for class '<em>Basic Event Definition</em>'. | ||
839 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition | ||
840 | * @generated | ||
841 | */ | ||
842 | EClass getBasicEventDefinition(); | ||
843 | |||
844 | /** | ||
845 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition#getDistribution <em>Distribution</em>}'. | ||
846 | * <!-- begin-user-doc --> | ||
847 | * <!-- end-user-doc --> | ||
848 | * @return the meta object for the containment reference '<em>Distribution</em>'. | ||
849 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition#getDistribution() | ||
850 | * @see #getBasicEventDefinition() | ||
851 | * @generated | ||
852 | */ | ||
853 | EReference getBasicEventDefinition_Distribution(); | ||
854 | |||
855 | /** | ||
856 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent <em>Intput Event</em>}'. | ||
857 | * <!-- begin-user-doc --> | ||
858 | * <!-- end-user-doc --> | ||
859 | * @return the meta object for class '<em>Intput Event</em>'. | ||
860 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent | ||
861 | * @generated | ||
862 | */ | ||
863 | EClass getIntputEvent(); | ||
864 | |||
865 | /** | ||
866 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent#isMultiple <em>Multiple</em>}'. | ||
867 | * <!-- begin-user-doc --> | ||
868 | * <!-- end-user-doc --> | ||
869 | * @return the meta object for the attribute '<em>Multiple</em>'. | ||
870 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent#isMultiple() | ||
871 | * @see #getIntputEvent() | ||
872 | * @generated | ||
873 | */ | ||
874 | EAttribute getIntputEvent_Multiple(); | ||
875 | |||
876 | /** | ||
877 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration <em>Event Declaration</em>}'. | ||
878 | * <!-- begin-user-doc --> | ||
879 | * <!-- end-user-doc --> | ||
880 | * @return the meta object for class '<em>Event Declaration</em>'. | ||
881 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration | ||
882 | * @generated | ||
883 | */ | ||
884 | EClass getEventDeclaration(); | ||
885 | |||
886 | /** | ||
887 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration#getName <em>Name</em>}'. | ||
888 | * <!-- begin-user-doc --> | ||
889 | * <!-- end-user-doc --> | ||
890 | * @return the meta object for the attribute '<em>Name</em>'. | ||
891 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration#getName() | ||
892 | * @see #getEventDeclaration() | ||
893 | * @generated | ||
894 | */ | ||
895 | EAttribute getEventDeclaration_Name(); | ||
896 | |||
897 | /** | ||
898 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition <em>And Gate Definition</em>}'. | ||
899 | * <!-- begin-user-doc --> | ||
900 | * <!-- end-user-doc --> | ||
901 | * @return the meta object for class '<em>And Gate Definition</em>'. | ||
902 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition | ||
903 | * @generated | ||
904 | */ | ||
905 | EClass getAndGateDefinition(); | ||
906 | |||
907 | /** | ||
908 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition <em>Or Gate Definition</em>}'. | ||
909 | * <!-- begin-user-doc --> | ||
910 | * <!-- end-user-doc --> | ||
911 | * @return the meta object for class '<em>Or Gate Definition</em>'. | ||
912 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition | ||
913 | * @generated | ||
914 | */ | ||
915 | EClass getOrGateDefinition(); | ||
916 | |||
917 | /** | ||
918 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition <em>KOf MGate Definition</em>}'. | ||
919 | * <!-- begin-user-doc --> | ||
920 | * <!-- end-user-doc --> | ||
921 | * @return the meta object for class '<em>KOf MGate Definition</em>'. | ||
922 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition | ||
923 | * @generated | ||
924 | */ | ||
925 | EClass getKOfMGateDefinition(); | ||
926 | |||
927 | /** | ||
928 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getK <em>K</em>}'. | ||
929 | * <!-- begin-user-doc --> | ||
930 | * <!-- end-user-doc --> | ||
931 | * @return the meta object for the attribute '<em>K</em>'. | ||
932 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getK() | ||
933 | * @see #getKOfMGateDefinition() | ||
934 | * @generated | ||
935 | */ | ||
936 | EAttribute getKOfMGateDefinition_K(); | ||
937 | |||
938 | /** | ||
939 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getM <em>M</em>}'. | ||
940 | * <!-- begin-user-doc --> | ||
941 | * <!-- end-user-doc --> | ||
942 | * @return the meta object for the attribute '<em>M</em>'. | ||
943 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition#getM() | ||
944 | * @see #getKOfMGateDefinition() | ||
945 | * @generated | ||
946 | */ | ||
947 | EAttribute getKOfMGateDefinition_M(); | ||
948 | |||
949 | /** | ||
950 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree <em>Component Fault Tree</em>}'. | ||
951 | * <!-- begin-user-doc --> | ||
952 | * <!-- end-user-doc --> | ||
953 | * @return the meta object for class '<em>Component Fault Tree</em>'. | ||
954 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree | ||
955 | * @generated | ||
956 | */ | ||
957 | EClass getComponentFaultTree(); | ||
958 | |||
959 | /** | ||
960 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getComponents <em>Components</em>}'. | ||
961 | * <!-- begin-user-doc --> | ||
962 | * <!-- end-user-doc --> | ||
963 | * @return the meta object for the containment reference list '<em>Components</em>'. | ||
964 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getComponents() | ||
965 | * @see #getComponentFaultTree() | ||
966 | * @generated | ||
967 | */ | ||
968 | EReference getComponentFaultTree_Components(); | ||
969 | |||
970 | /** | ||
971 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getTopEvent <em>Top Event</em>}'. | ||
972 | * <!-- begin-user-doc --> | ||
973 | * <!-- end-user-doc --> | ||
974 | * @return the meta object for the reference '<em>Top Event</em>'. | ||
975 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree#getTopEvent() | ||
976 | * @see #getComponentFaultTree() | ||
977 | * @generated | ||
978 | */ | ||
979 | EReference getComponentFaultTree_TopEvent(); | ||
980 | |||
981 | /** | ||
982 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component <em>Component</em>}'. | ||
983 | * <!-- begin-user-doc --> | ||
984 | * <!-- end-user-doc --> | ||
985 | * @return the meta object for class '<em>Component</em>'. | ||
986 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component | ||
987 | * @generated | ||
988 | */ | ||
989 | EClass getComponent(); | ||
990 | |||
991 | /** | ||
992 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getInputs <em>Inputs</em>}'. | ||
993 | * <!-- begin-user-doc --> | ||
994 | * <!-- end-user-doc --> | ||
995 | * @return the meta object for the containment reference list '<em>Inputs</em>'. | ||
996 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getInputs() | ||
997 | * @see #getComponent() | ||
998 | * @generated | ||
999 | */ | ||
1000 | EReference getComponent_Inputs(); | ||
1001 | |||
1002 | /** | ||
1003 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getOutputs <em>Outputs</em>}'. | ||
1004 | * <!-- begin-user-doc --> | ||
1005 | * <!-- end-user-doc --> | ||
1006 | * @return the meta object for the containment reference list '<em>Outputs</em>'. | ||
1007 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getOutputs() | ||
1008 | * @see #getComponent() | ||
1009 | * @generated | ||
1010 | */ | ||
1011 | EReference getComponent_Outputs(); | ||
1012 | |||
1013 | /** | ||
1014 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getComponentDefinition <em>Component Definition</em>}'. | ||
1015 | * <!-- begin-user-doc --> | ||
1016 | * <!-- end-user-doc --> | ||
1017 | * @return the meta object for the reference '<em>Component Definition</em>'. | ||
1018 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getComponentDefinition() | ||
1019 | * @see #getComponent() | ||
1020 | * @generated | ||
1021 | */ | ||
1022 | EReference getComponent_ComponentDefinition(); | ||
1023 | |||
1024 | /** | ||
1025 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input <em>Input</em>}'. | ||
1026 | * <!-- begin-user-doc --> | ||
1027 | * <!-- end-user-doc --> | ||
1028 | * @return the meta object for class '<em>Input</em>'. | ||
1029 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input | ||
1030 | * @generated | ||
1031 | */ | ||
1032 | EClass getInput(); | ||
1033 | |||
1034 | /** | ||
1035 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIntputEvent <em>Intput Event</em>}'. | ||
1036 | * <!-- begin-user-doc --> | ||
1037 | * <!-- end-user-doc --> | ||
1038 | * @return the meta object for the reference '<em>Intput Event</em>'. | ||
1039 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIntputEvent() | ||
1040 | * @see #getInput() | ||
1041 | * @generated | ||
1042 | */ | ||
1043 | EReference getInput_IntputEvent(); | ||
1044 | |||
1045 | /** | ||
1046 | * Returns the meta object for the container reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getComponent <em>Component</em>}'. | ||
1047 | * <!-- begin-user-doc --> | ||
1048 | * <!-- end-user-doc --> | ||
1049 | * @return the meta object for the container reference '<em>Component</em>'. | ||
1050 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getComponent() | ||
1051 | * @see #getInput() | ||
1052 | * @generated | ||
1053 | */ | ||
1054 | EReference getInput_Component(); | ||
1055 | |||
1056 | /** | ||
1057 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIncomingConnections <em>Incoming Connections</em>}'. | ||
1058 | * <!-- begin-user-doc --> | ||
1059 | * <!-- end-user-doc --> | ||
1060 | * @return the meta object for the containment reference list '<em>Incoming Connections</em>'. | ||
1061 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIncomingConnections() | ||
1062 | * @see #getInput() | ||
1063 | * @generated | ||
1064 | */ | ||
1065 | EReference getInput_IncomingConnections(); | ||
1066 | |||
1067 | /** | ||
1068 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output <em>Output</em>}'. | ||
1069 | * <!-- begin-user-doc --> | ||
1070 | * <!-- end-user-doc --> | ||
1071 | * @return the meta object for class '<em>Output</em>'. | ||
1072 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output | ||
1073 | * @generated | ||
1074 | */ | ||
1075 | EClass getOutput(); | ||
1076 | |||
1077 | /** | ||
1078 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getEventDeclaration <em>Event Declaration</em>}'. | ||
1079 | * <!-- begin-user-doc --> | ||
1080 | * <!-- end-user-doc --> | ||
1081 | * @return the meta object for the reference '<em>Event Declaration</em>'. | ||
1082 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getEventDeclaration() | ||
1083 | * @see #getOutput() | ||
1084 | * @generated | ||
1085 | */ | ||
1086 | EReference getOutput_EventDeclaration(); | ||
1087 | |||
1088 | /** | ||
1089 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getOutgoingConnections <em>Outgoing Connections</em>}'. | ||
1090 | * <!-- begin-user-doc --> | ||
1091 | * <!-- end-user-doc --> | ||
1092 | * @return the meta object for the reference list '<em>Outgoing Connections</em>'. | ||
1093 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getOutgoingConnections() | ||
1094 | * @see #getOutput() | ||
1095 | * @generated | ||
1096 | */ | ||
1097 | EReference getOutput_OutgoingConnections(); | ||
1098 | |||
1099 | /** | ||
1100 | * Returns the meta object for the container reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getComponent <em>Component</em>}'. | ||
1101 | * <!-- begin-user-doc --> | ||
1102 | * <!-- end-user-doc --> | ||
1103 | * @return the meta object for the container reference '<em>Component</em>'. | ||
1104 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getComponent() | ||
1105 | * @see #getOutput() | ||
1106 | * @generated | ||
1107 | */ | ||
1108 | EReference getOutput_Component(); | ||
1109 | |||
1110 | /** | ||
1111 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection <em>Connection</em>}'. | ||
1112 | * <!-- begin-user-doc --> | ||
1113 | * <!-- end-user-doc --> | ||
1114 | * @return the meta object for class '<em>Connection</em>'. | ||
1115 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection | ||
1116 | * @generated | ||
1117 | */ | ||
1118 | EClass getConnection(); | ||
1119 | |||
1120 | /** | ||
1121 | * Returns the meta object for the container reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getInput <em>Input</em>}'. | ||
1122 | * <!-- begin-user-doc --> | ||
1123 | * <!-- end-user-doc --> | ||
1124 | * @return the meta object for the container reference '<em>Input</em>'. | ||
1125 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getInput() | ||
1126 | * @see #getConnection() | ||
1127 | * @generated | ||
1128 | */ | ||
1129 | EReference getConnection_Input(); | ||
1130 | |||
1131 | /** | ||
1132 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getOutput <em>Output</em>}'. | ||
1133 | * <!-- begin-user-doc --> | ||
1134 | * <!-- end-user-doc --> | ||
1135 | * @return the meta object for the reference '<em>Output</em>'. | ||
1136 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getOutput() | ||
1137 | * @see #getConnection() | ||
1138 | * @generated | ||
1139 | */ | ||
1140 | EReference getConnection_Output(); | ||
1141 | |||
1142 | /** | ||
1143 | * Returns the factory that creates the instances of the model. | ||
1144 | * <!-- begin-user-doc --> | ||
1145 | * <!-- end-user-doc --> | ||
1146 | * @return the factory that creates the instances of the model. | ||
1147 | * @generated | ||
1148 | */ | ||
1149 | CftFactory getCftFactory(); | ||
1150 | |||
1151 | /** | ||
1152 | * <!-- begin-user-doc --> | ||
1153 | * Defines literals for the meta objects that represent | ||
1154 | * <ul> | ||
1155 | * <li>each class,</li> | ||
1156 | * <li>each feature of each class,</li> | ||
1157 | * <li>each operation of each class,</li> | ||
1158 | * <li>each enum,</li> | ||
1159 | * <li>and each data type</li> | ||
1160 | * </ul> | ||
1161 | * <!-- end-user-doc --> | ||
1162 | * @generated | ||
1163 | */ | ||
1164 | interface Literals { | ||
1165 | /** | ||
1166 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl <em>Component Definition</em>}' class. | ||
1167 | * <!-- begin-user-doc --> | ||
1168 | * <!-- end-user-doc --> | ||
1169 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl | ||
1170 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponentDefinition() | ||
1171 | * @generated | ||
1172 | */ | ||
1173 | EClass COMPONENT_DEFINITION = eINSTANCE.getComponentDefinition(); | ||
1174 | |||
1175 | /** | ||
1176 | * The meta object literal for the '<em><b>Input Events</b></em>' containment reference list feature. | ||
1177 | * <!-- begin-user-doc --> | ||
1178 | * <!-- end-user-doc --> | ||
1179 | * @generated | ||
1180 | */ | ||
1181 | EReference COMPONENT_DEFINITION__INPUT_EVENTS = eINSTANCE.getComponentDefinition_InputEvents(); | ||
1182 | |||
1183 | /** | ||
1184 | * The meta object literal for the '<em><b>Event Definitions</b></em>' containment reference list feature. | ||
1185 | * <!-- begin-user-doc --> | ||
1186 | * <!-- end-user-doc --> | ||
1187 | * @generated | ||
1188 | */ | ||
1189 | EReference COMPONENT_DEFINITION__EVENT_DEFINITIONS = eINSTANCE.getComponentDefinition_EventDefinitions(); | ||
1190 | |||
1191 | /** | ||
1192 | * The meta object literal for the '<em><b>Output Events</b></em>' reference list feature. | ||
1193 | * <!-- begin-user-doc --> | ||
1194 | * <!-- end-user-doc --> | ||
1195 | * @generated | ||
1196 | */ | ||
1197 | EReference COMPONENT_DEFINITION__OUTPUT_EVENTS = eINSTANCE.getComponentDefinition_OutputEvents(); | ||
1198 | |||
1199 | /** | ||
1200 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1201 | * <!-- begin-user-doc --> | ||
1202 | * <!-- end-user-doc --> | ||
1203 | * @generated | ||
1204 | */ | ||
1205 | EAttribute COMPONENT_DEFINITION__NAME = eINSTANCE.getComponentDefinition_Name(); | ||
1206 | |||
1207 | /** | ||
1208 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDefinitionImpl <em>Event Definition</em>}' class. | ||
1209 | * <!-- begin-user-doc --> | ||
1210 | * <!-- end-user-doc --> | ||
1211 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDefinitionImpl | ||
1212 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getEventDefinition() | ||
1213 | * @generated | ||
1214 | */ | ||
1215 | EClass EVENT_DEFINITION = eINSTANCE.getEventDefinition(); | ||
1216 | |||
1217 | /** | ||
1218 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.GateDefinitionImpl <em>Gate Definition</em>}' class. | ||
1219 | * <!-- begin-user-doc --> | ||
1220 | * <!-- end-user-doc --> | ||
1221 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.GateDefinitionImpl | ||
1222 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getGateDefinition() | ||
1223 | * @generated | ||
1224 | */ | ||
1225 | EClass GATE_DEFINITION = eINSTANCE.getGateDefinition(); | ||
1226 | |||
1227 | /** | ||
1228 | * The meta object literal for the '<em><b>Input Events</b></em>' reference list feature. | ||
1229 | * <!-- begin-user-doc --> | ||
1230 | * <!-- end-user-doc --> | ||
1231 | * @generated | ||
1232 | */ | ||
1233 | EReference GATE_DEFINITION__INPUT_EVENTS = eINSTANCE.getGateDefinition_InputEvents(); | ||
1234 | |||
1235 | /** | ||
1236 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.BasicEventDefinitionImpl <em>Basic Event Definition</em>}' class. | ||
1237 | * <!-- begin-user-doc --> | ||
1238 | * <!-- end-user-doc --> | ||
1239 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.BasicEventDefinitionImpl | ||
1240 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getBasicEventDefinition() | ||
1241 | * @generated | ||
1242 | */ | ||
1243 | EClass BASIC_EVENT_DEFINITION = eINSTANCE.getBasicEventDefinition(); | ||
1244 | |||
1245 | /** | ||
1246 | * The meta object literal for the '<em><b>Distribution</b></em>' containment reference feature. | ||
1247 | * <!-- begin-user-doc --> | ||
1248 | * <!-- end-user-doc --> | ||
1249 | * @generated | ||
1250 | */ | ||
1251 | EReference BASIC_EVENT_DEFINITION__DISTRIBUTION = eINSTANCE.getBasicEventDefinition_Distribution(); | ||
1252 | |||
1253 | /** | ||
1254 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.IntputEventImpl <em>Intput Event</em>}' class. | ||
1255 | * <!-- begin-user-doc --> | ||
1256 | * <!-- end-user-doc --> | ||
1257 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.IntputEventImpl | ||
1258 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getIntputEvent() | ||
1259 | * @generated | ||
1260 | */ | ||
1261 | EClass INTPUT_EVENT = eINSTANCE.getIntputEvent(); | ||
1262 | |||
1263 | /** | ||
1264 | * The meta object literal for the '<em><b>Multiple</b></em>' attribute feature. | ||
1265 | * <!-- begin-user-doc --> | ||
1266 | * <!-- end-user-doc --> | ||
1267 | * @generated | ||
1268 | */ | ||
1269 | EAttribute INTPUT_EVENT__MULTIPLE = eINSTANCE.getIntputEvent_Multiple(); | ||
1270 | |||
1271 | /** | ||
1272 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDeclarationImpl <em>Event Declaration</em>}' class. | ||
1273 | * <!-- begin-user-doc --> | ||
1274 | * <!-- end-user-doc --> | ||
1275 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDeclarationImpl | ||
1276 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getEventDeclaration() | ||
1277 | * @generated | ||
1278 | */ | ||
1279 | EClass EVENT_DECLARATION = eINSTANCE.getEventDeclaration(); | ||
1280 | |||
1281 | /** | ||
1282 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1283 | * <!-- begin-user-doc --> | ||
1284 | * <!-- end-user-doc --> | ||
1285 | * @generated | ||
1286 | */ | ||
1287 | EAttribute EVENT_DECLARATION__NAME = eINSTANCE.getEventDeclaration_Name(); | ||
1288 | |||
1289 | /** | ||
1290 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.AndGateDefinitionImpl <em>And Gate Definition</em>}' class. | ||
1291 | * <!-- begin-user-doc --> | ||
1292 | * <!-- end-user-doc --> | ||
1293 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.AndGateDefinitionImpl | ||
1294 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getAndGateDefinition() | ||
1295 | * @generated | ||
1296 | */ | ||
1297 | EClass AND_GATE_DEFINITION = eINSTANCE.getAndGateDefinition(); | ||
1298 | |||
1299 | /** | ||
1300 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OrGateDefinitionImpl <em>Or Gate Definition</em>}' class. | ||
1301 | * <!-- begin-user-doc --> | ||
1302 | * <!-- end-user-doc --> | ||
1303 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OrGateDefinitionImpl | ||
1304 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getOrGateDefinition() | ||
1305 | * @generated | ||
1306 | */ | ||
1307 | EClass OR_GATE_DEFINITION = eINSTANCE.getOrGateDefinition(); | ||
1308 | |||
1309 | /** | ||
1310 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.KOfMGateDefinitionImpl <em>KOf MGate Definition</em>}' class. | ||
1311 | * <!-- begin-user-doc --> | ||
1312 | * <!-- end-user-doc --> | ||
1313 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.KOfMGateDefinitionImpl | ||
1314 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getKOfMGateDefinition() | ||
1315 | * @generated | ||
1316 | */ | ||
1317 | EClass KOF_MGATE_DEFINITION = eINSTANCE.getKOfMGateDefinition(); | ||
1318 | |||
1319 | /** | ||
1320 | * The meta object literal for the '<em><b>K</b></em>' attribute feature. | ||
1321 | * <!-- begin-user-doc --> | ||
1322 | * <!-- end-user-doc --> | ||
1323 | * @generated | ||
1324 | */ | ||
1325 | EAttribute KOF_MGATE_DEFINITION__K = eINSTANCE.getKOfMGateDefinition_K(); | ||
1326 | |||
1327 | /** | ||
1328 | * The meta object literal for the '<em><b>M</b></em>' attribute feature. | ||
1329 | * <!-- begin-user-doc --> | ||
1330 | * <!-- end-user-doc --> | ||
1331 | * @generated | ||
1332 | */ | ||
1333 | EAttribute KOF_MGATE_DEFINITION__M = eINSTANCE.getKOfMGateDefinition_M(); | ||
1334 | |||
1335 | /** | ||
1336 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentFaultTreeImpl <em>Component Fault Tree</em>}' class. | ||
1337 | * <!-- begin-user-doc --> | ||
1338 | * <!-- end-user-doc --> | ||
1339 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentFaultTreeImpl | ||
1340 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponentFaultTree() | ||
1341 | * @generated | ||
1342 | */ | ||
1343 | EClass COMPONENT_FAULT_TREE = eINSTANCE.getComponentFaultTree(); | ||
1344 | |||
1345 | /** | ||
1346 | * The meta object literal for the '<em><b>Components</b></em>' containment reference list feature. | ||
1347 | * <!-- begin-user-doc --> | ||
1348 | * <!-- end-user-doc --> | ||
1349 | * @generated | ||
1350 | */ | ||
1351 | EReference COMPONENT_FAULT_TREE__COMPONENTS = eINSTANCE.getComponentFaultTree_Components(); | ||
1352 | |||
1353 | /** | ||
1354 | * The meta object literal for the '<em><b>Top Event</b></em>' reference feature. | ||
1355 | * <!-- begin-user-doc --> | ||
1356 | * <!-- end-user-doc --> | ||
1357 | * @generated | ||
1358 | */ | ||
1359 | EReference COMPONENT_FAULT_TREE__TOP_EVENT = eINSTANCE.getComponentFaultTree_TopEvent(); | ||
1360 | |||
1361 | /** | ||
1362 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl <em>Component</em>}' class. | ||
1363 | * <!-- begin-user-doc --> | ||
1364 | * <!-- end-user-doc --> | ||
1365 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl | ||
1366 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getComponent() | ||
1367 | * @generated | ||
1368 | */ | ||
1369 | EClass COMPONENT = eINSTANCE.getComponent(); | ||
1370 | |||
1371 | /** | ||
1372 | * The meta object literal for the '<em><b>Inputs</b></em>' containment reference list feature. | ||
1373 | * <!-- begin-user-doc --> | ||
1374 | * <!-- end-user-doc --> | ||
1375 | * @generated | ||
1376 | */ | ||
1377 | EReference COMPONENT__INPUTS = eINSTANCE.getComponent_Inputs(); | ||
1378 | |||
1379 | /** | ||
1380 | * The meta object literal for the '<em><b>Outputs</b></em>' containment reference list feature. | ||
1381 | * <!-- begin-user-doc --> | ||
1382 | * <!-- end-user-doc --> | ||
1383 | * @generated | ||
1384 | */ | ||
1385 | EReference COMPONENT__OUTPUTS = eINSTANCE.getComponent_Outputs(); | ||
1386 | |||
1387 | /** | ||
1388 | * The meta object literal for the '<em><b>Component Definition</b></em>' reference feature. | ||
1389 | * <!-- begin-user-doc --> | ||
1390 | * <!-- end-user-doc --> | ||
1391 | * @generated | ||
1392 | */ | ||
1393 | EReference COMPONENT__COMPONENT_DEFINITION = eINSTANCE.getComponent_ComponentDefinition(); | ||
1394 | |||
1395 | /** | ||
1396 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl <em>Input</em>}' class. | ||
1397 | * <!-- begin-user-doc --> | ||
1398 | * <!-- end-user-doc --> | ||
1399 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl | ||
1400 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getInput() | ||
1401 | * @generated | ||
1402 | */ | ||
1403 | EClass INPUT = eINSTANCE.getInput(); | ||
1404 | |||
1405 | /** | ||
1406 | * The meta object literal for the '<em><b>Intput Event</b></em>' reference feature. | ||
1407 | * <!-- begin-user-doc --> | ||
1408 | * <!-- end-user-doc --> | ||
1409 | * @generated | ||
1410 | */ | ||
1411 | EReference INPUT__INTPUT_EVENT = eINSTANCE.getInput_IntputEvent(); | ||
1412 | |||
1413 | /** | ||
1414 | * The meta object literal for the '<em><b>Component</b></em>' container reference feature. | ||
1415 | * <!-- begin-user-doc --> | ||
1416 | * <!-- end-user-doc --> | ||
1417 | * @generated | ||
1418 | */ | ||
1419 | EReference INPUT__COMPONENT = eINSTANCE.getInput_Component(); | ||
1420 | |||
1421 | /** | ||
1422 | * The meta object literal for the '<em><b>Incoming Connections</b></em>' containment reference list feature. | ||
1423 | * <!-- begin-user-doc --> | ||
1424 | * <!-- end-user-doc --> | ||
1425 | * @generated | ||
1426 | */ | ||
1427 | EReference INPUT__INCOMING_CONNECTIONS = eINSTANCE.getInput_IncomingConnections(); | ||
1428 | |||
1429 | /** | ||
1430 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl <em>Output</em>}' class. | ||
1431 | * <!-- begin-user-doc --> | ||
1432 | * <!-- end-user-doc --> | ||
1433 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.OutputImpl | ||
1434 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getOutput() | ||
1435 | * @generated | ||
1436 | */ | ||
1437 | EClass OUTPUT = eINSTANCE.getOutput(); | ||
1438 | |||
1439 | /** | ||
1440 | * The meta object literal for the '<em><b>Event Declaration</b></em>' reference feature. | ||
1441 | * <!-- begin-user-doc --> | ||
1442 | * <!-- end-user-doc --> | ||
1443 | * @generated | ||
1444 | */ | ||
1445 | EReference OUTPUT__EVENT_DECLARATION = eINSTANCE.getOutput_EventDeclaration(); | ||
1446 | |||
1447 | /** | ||
1448 | * The meta object literal for the '<em><b>Outgoing Connections</b></em>' reference list feature. | ||
1449 | * <!-- begin-user-doc --> | ||
1450 | * <!-- end-user-doc --> | ||
1451 | * @generated | ||
1452 | */ | ||
1453 | EReference OUTPUT__OUTGOING_CONNECTIONS = eINSTANCE.getOutput_OutgoingConnections(); | ||
1454 | |||
1455 | /** | ||
1456 | * The meta object literal for the '<em><b>Component</b></em>' container reference feature. | ||
1457 | * <!-- begin-user-doc --> | ||
1458 | * <!-- end-user-doc --> | ||
1459 | * @generated | ||
1460 | */ | ||
1461 | EReference OUTPUT__COMPONENT = eINSTANCE.getOutput_Component(); | ||
1462 | |||
1463 | /** | ||
1464 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl <em>Connection</em>}' class. | ||
1465 | * <!-- begin-user-doc --> | ||
1466 | * <!-- end-user-doc --> | ||
1467 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl | ||
1468 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getConnection() | ||
1469 | * @generated | ||
1470 | */ | ||
1471 | EClass CONNECTION = eINSTANCE.getConnection(); | ||
1472 | |||
1473 | /** | ||
1474 | * The meta object literal for the '<em><b>Input</b></em>' container reference feature. | ||
1475 | * <!-- begin-user-doc --> | ||
1476 | * <!-- end-user-doc --> | ||
1477 | * @generated | ||
1478 | */ | ||
1479 | EReference CONNECTION__INPUT = eINSTANCE.getConnection_Input(); | ||
1480 | |||
1481 | /** | ||
1482 | * The meta object literal for the '<em><b>Output</b></em>' reference feature. | ||
1483 | * <!-- begin-user-doc --> | ||
1484 | * <!-- end-user-doc --> | ||
1485 | * @generated | ||
1486 | */ | ||
1487 | EReference CONNECTION__OUTPUT = eINSTANCE.getConnection_Output(); | ||
1488 | |||
1489 | } | ||
1490 | |||
1491 | } //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 new file mode 100644 index 00000000..e1951172 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Component.java | |||
@@ -0,0 +1,90 @@ | |||
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</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.Component#getInputs <em>Inputs</em>}</li> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getOutputs <em>Outputs</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getComponentDefinition <em>Component Definition</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 EObject { | ||
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 | } // 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 new file mode 100644 index 00000000..b3f3b163 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentDefinition.java | |||
@@ -0,0 +1,103 @@ | |||
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.IntputEvent}. | ||
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<IntputEvent> 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 new file mode 100644 index 00000000..06554378 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentFaultTree.java | |||
@@ -0,0 +1,69 @@ | |||
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 new file mode 100644 index 00000000..c05e809b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Connection.java | |||
@@ -0,0 +1,81 @@ | |||
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>Connection</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.Connection#getInput <em>Input</em>}</li> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getOutput <em>Output</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getConnection() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface Connection extends EObject { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Input</b></em>' container reference. | ||
27 | * It is bidirectional and its opposite is '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIncomingConnections <em>Incoming Connections</em>}'. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Input</em>' container reference 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>Input</em>' container reference. | ||
35 | * @see #setInput(Input) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getConnection_Input() | ||
37 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIncomingConnections | ||
38 | * @model opposite="incomingConnections" required="true" transient="false" | ||
39 | * @generated | ||
40 | */ | ||
41 | Input getInput(); | ||
42 | |||
43 | /** | ||
44 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getInput <em>Input</em>}' container reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @param value the new value of the '<em>Input</em>' container reference. | ||
48 | * @see #getInput() | ||
49 | * @generated | ||
50 | */ | ||
51 | void setInput(Input value); | ||
52 | |||
53 | /** | ||
54 | * Returns the value of the '<em><b>Output</b></em>' reference. | ||
55 | * It is bidirectional and its opposite is '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getOutgoingConnections <em>Outgoing Connections</em>}'. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <p> | ||
58 | * If the meaning of the '<em>Output</em>' reference isn't clear, | ||
59 | * there really should be more of a description here... | ||
60 | * </p> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @return the value of the '<em>Output</em>' reference. | ||
63 | * @see #setOutput(Output) | ||
64 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getConnection_Output() | ||
65 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output#getOutgoingConnections | ||
66 | * @model opposite="outgoingConnections" required="true" | ||
67 | * @generated | ||
68 | */ | ||
69 | Output getOutput(); | ||
70 | |||
71 | /** | ||
72 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection#getOutput <em>Output</em>}' reference. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @param value the new value of the '<em>Output</em>' reference. | ||
76 | * @see #getOutput() | ||
77 | * @generated | ||
78 | */ | ||
79 | void setOutput(Output value); | ||
80 | |||
81 | } // 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 new file mode 100644 index 00000000..1e52a570 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDeclaration.java | |||
@@ -0,0 +1,50 @@ | |||
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 | /** | ||
26 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Name</em>' attribute 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>Name</em>' attribute. | ||
34 | * @see #setName(String) | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getEventDeclaration_Name() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | String getName(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration#getName <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Name</em>' attribute. | ||
46 | * @see #getName() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setName(String value); | ||
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 new file mode 100644 index 00000000..d279ddfc --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDefinition.java | |||
@@ -0,0 +1,17 @@ | |||
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 new file mode 100644 index 00000000..2173be5c --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/GateDefinition.java | |||
@@ -0,0 +1,40 @@ | |||
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 new file mode 100644 index 00000000..55da3f9a --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Input.java | |||
@@ -0,0 +1,100 @@ | |||
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#getIntputEvent <em>Intput 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>Intput Event</b></em>' reference. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <p> | ||
32 | * If the meaning of the '<em>Intput 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>Intput Event</em>' reference. | ||
37 | * @see #setIntputEvent(IntputEvent) | ||
38 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInput_IntputEvent() | ||
39 | * @model required="true" | ||
40 | * @generated | ||
41 | */ | ||
42 | IntputEvent getIntputEvent(); | ||
43 | |||
44 | /** | ||
45 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIntputEvent <em>Intput Event</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @param value the new value of the '<em>Intput Event</em>' reference. | ||
49 | * @see #getIntputEvent() | ||
50 | * @generated | ||
51 | */ | ||
52 | void setIntputEvent(IntputEvent 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/IntputEvent.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/IntputEvent.java new file mode 100644 index 00000000..bec5c487 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/IntputEvent.java | |||
@@ -0,0 +1,49 @@ | |||
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>Intput 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.IntputEvent#isMultiple <em>Multiple</em>}</li> | ||
16 | * </ul> | ||
17 | * | ||
18 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getIntputEvent() | ||
19 | * @model | ||
20 | * @generated | ||
21 | */ | ||
22 | public interface IntputEvent 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#getIntputEvent_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.IntputEvent#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 | } // IntputEvent | ||
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 new file mode 100644 index 00000000..6e1bc1c1 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/KOfMGateDefinition.java | |||
@@ -0,0 +1,76 @@ | |||
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/OrGateDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/OrGateDefinition.java new file mode 100644 index 00000000..f62d6652 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/OrGateDefinition.java | |||
@@ -0,0 +1,17 @@ | |||
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 new file mode 100644 index 00000000..ffb61b8c --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Output.java | |||
@@ -0,0 +1,100 @@ | |||
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 new file mode 100644 index 00000000..fd716fc9 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/AndGateDefinitionImpl.java | |||
@@ -0,0 +1,37 @@ | |||
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 new file mode 100644 index 00000000..87fc5d70 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/BasicEventDefinitionImpl.java | |||
@@ -0,0 +1,178 @@ | |||
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 new file mode 100644 index 00000000..33778461 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java | |||
@@ -0,0 +1,217 @@ | |||
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.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 CftFactoryImpl extends EFactoryImpl implements CftFactory { | ||
22 | /** | ||
23 | * Creates the default factory implementation. | ||
24 | * <!-- begin-user-doc --> | ||
25 | * <!-- end-user-doc --> | ||
26 | * @generated | ||
27 | */ | ||
28 | public static CftFactory init() { | ||
29 | try { | ||
30 | CftFactory theCftFactory = (CftFactory)EPackage.Registry.INSTANCE.getEFactory(CftPackage.eNS_URI); | ||
31 | if (theCftFactory != null) { | ||
32 | return theCftFactory; | ||
33 | } | ||
34 | } | ||
35 | catch (Exception exception) { | ||
36 | EcorePlugin.INSTANCE.log(exception); | ||
37 | } | ||
38 | return new CftFactoryImpl(); | ||
39 | } | ||
40 | |||
41 | /** | ||
42 | * Creates an instance of the factory. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | public CftFactoryImpl() { | ||
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 CftPackage.COMPONENT_DEFINITION: return createComponentDefinition(); | ||
60 | case CftPackage.BASIC_EVENT_DEFINITION: return createBasicEventDefinition(); | ||
61 | case CftPackage.INTPUT_EVENT: return createIntputEvent(); | ||
62 | case CftPackage.AND_GATE_DEFINITION: return createAndGateDefinition(); | ||
63 | case CftPackage.OR_GATE_DEFINITION: return createOrGateDefinition(); | ||
64 | case CftPackage.KOF_MGATE_DEFINITION: return createKOfMGateDefinition(); | ||
65 | case CftPackage.COMPONENT_FAULT_TREE: return createComponentFaultTree(); | ||
66 | case CftPackage.COMPONENT: return createComponent(); | ||
67 | case CftPackage.INPUT: return createInput(); | ||
68 | case CftPackage.OUTPUT: return createOutput(); | ||
69 | case CftPackage.CONNECTION: return createConnection(); | ||
70 | default: | ||
71 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
72 | } | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | public ComponentDefinition createComponentDefinition() { | ||
82 | ComponentDefinitionImpl componentDefinition = new ComponentDefinitionImpl(); | ||
83 | return componentDefinition; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public BasicEventDefinition createBasicEventDefinition() { | ||
93 | BasicEventDefinitionImpl basicEventDefinition = new BasicEventDefinitionImpl(); | ||
94 | return basicEventDefinition; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public IntputEvent createIntputEvent() { | ||
104 | IntputEventImpl intputEvent = new IntputEventImpl(); | ||
105 | return intputEvent; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public AndGateDefinition createAndGateDefinition() { | ||
115 | AndGateDefinitionImpl andGateDefinition = new AndGateDefinitionImpl(); | ||
116 | return andGateDefinition; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public OrGateDefinition createOrGateDefinition() { | ||
126 | OrGateDefinitionImpl orGateDefinition = new OrGateDefinitionImpl(); | ||
127 | return orGateDefinition; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public KOfMGateDefinition createKOfMGateDefinition() { | ||
137 | KOfMGateDefinitionImpl kOfMGateDefinition = new KOfMGateDefinitionImpl(); | ||
138 | return kOfMGateDefinition; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public ComponentFaultTree createComponentFaultTree() { | ||
148 | ComponentFaultTreeImpl componentFaultTree = new ComponentFaultTreeImpl(); | ||
149 | return componentFaultTree; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | @Override | ||
158 | public Component createComponent() { | ||
159 | ComponentImpl component = new ComponentImpl(); | ||
160 | return component; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public Input createInput() { | ||
170 | InputImpl input = new InputImpl(); | ||
171 | return input; | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | @Override | ||
180 | public Output createOutput() { | ||
181 | OutputImpl output = new OutputImpl(); | ||
182 | return output; | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | @Override | ||
191 | public Connection createConnection() { | ||
192 | ConnectionImpl connection = new ConnectionImpl(); | ||
193 | return connection; | ||
194 | } | ||
195 | |||
196 | /** | ||
197 | * <!-- begin-user-doc --> | ||
198 | * <!-- end-user-doc --> | ||
199 | * @generated | ||
200 | */ | ||
201 | @Override | ||
202 | public CftPackage getCftPackage() { | ||
203 | return (CftPackage)getEPackage(); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @deprecated | ||
210 | * @generated | ||
211 | */ | ||
212 | @Deprecated | ||
213 | public static CftPackage getPackage() { | ||
214 | return CftPackage.eINSTANCE; | ||
215 | } | ||
216 | |||
217 | } //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 new file mode 100644 index 00000000..f03fa0ba --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java | |||
@@ -0,0 +1,746 @@ | |||
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.IntputEvent; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | ||
21 | |||
22 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
23 | |||
24 | import org.eclipse.emf.ecore.EAttribute; | ||
25 | import org.eclipse.emf.ecore.EClass; | ||
26 | import org.eclipse.emf.ecore.EPackage; | ||
27 | import org.eclipse.emf.ecore.EReference; | ||
28 | |||
29 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
30 | |||
31 | /** | ||
32 | * <!-- begin-user-doc --> | ||
33 | * An implementation of the model <b>Package</b>. | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public class CftPackageImpl extends EPackageImpl implements CftPackage { | ||
38 | /** | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @generated | ||
42 | */ | ||
43 | private EClass componentDefinitionEClass = null; | ||
44 | |||
45 | /** | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | private EClass eventDefinitionEClass = null; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | private EClass gateDefinitionEClass = null; | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | private EClass basicEventDefinitionEClass = null; | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | private EClass intputEventEClass = null; | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | private EClass eventDeclarationEClass = null; | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | private EClass andGateDefinitionEClass = null; | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | private EClass orGateDefinitionEClass = null; | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | private EClass kOfMGateDefinitionEClass = null; | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | private EClass componentFaultTreeEClass = null; | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | private EClass componentEClass = null; | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | private EClass inputEClass = null; | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | private EClass outputEClass = null; | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | private EClass connectionEClass = null; | ||
135 | |||
136 | /** | ||
137 | * Creates an instance of the model <b>Package</b>, registered with | ||
138 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
139 | * package URI value. | ||
140 | * <p>Note: the correct way to create the package is via the static | ||
141 | * factory method {@link #init init()}, which also performs | ||
142 | * initialization of the package, or returns the registered package, | ||
143 | * if one already exists. | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
147 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#eNS_URI | ||
148 | * @see #init() | ||
149 | * @generated | ||
150 | */ | ||
151 | private CftPackageImpl() { | ||
152 | super(eNS_URI, CftFactory.eINSTANCE); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | private static boolean isInited = false; | ||
161 | |||
162 | /** | ||
163 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
164 | * | ||
165 | * <p>This method is used to initialize {@link CftPackage#eINSTANCE} when that field is accessed. | ||
166 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @see #eNS_URI | ||
170 | * @see #createPackageContents() | ||
171 | * @see #initializePackageContents() | ||
172 | * @generated | ||
173 | */ | ||
174 | public static CftPackage init() { | ||
175 | if (isInited) return (CftPackage)EPackage.Registry.INSTANCE.getEPackage(CftPackage.eNS_URI); | ||
176 | |||
177 | // Obtain or create and register package | ||
178 | Object registeredCftPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
179 | CftPackageImpl theCftPackage = registeredCftPackage instanceof CftPackageImpl ? (CftPackageImpl)registeredCftPackage : new CftPackageImpl(); | ||
180 | |||
181 | isInited = true; | ||
182 | |||
183 | // Initialize simple dependencies | ||
184 | FtPackage.eINSTANCE.eClass(); | ||
185 | |||
186 | // Create package meta-data objects | ||
187 | theCftPackage.createPackageContents(); | ||
188 | |||
189 | // Initialize created meta-data | ||
190 | theCftPackage.initializePackageContents(); | ||
191 | |||
192 | // Mark meta-data to indicate it can't be changed | ||
193 | theCftPackage.freeze(); | ||
194 | |||
195 | // Update the registry and return the package | ||
196 | EPackage.Registry.INSTANCE.put(CftPackage.eNS_URI, theCftPackage); | ||
197 | return theCftPackage; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public EClass getComponentDefinition() { | ||
207 | return componentDefinitionEClass; | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public EReference getComponentDefinition_InputEvents() { | ||
217 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(0); | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | @Override | ||
226 | public EReference getComponentDefinition_EventDefinitions() { | ||
227 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(1); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public EReference getComponentDefinition_OutputEvents() { | ||
237 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(2); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public EAttribute getComponentDefinition_Name() { | ||
247 | return (EAttribute)componentDefinitionEClass.getEStructuralFeatures().get(3); | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * <!-- begin-user-doc --> | ||
252 | * <!-- end-user-doc --> | ||
253 | * @generated | ||
254 | */ | ||
255 | @Override | ||
256 | public EClass getEventDefinition() { | ||
257 | return eventDefinitionEClass; | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public EClass getGateDefinition() { | ||
267 | return gateDefinitionEClass; | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * <!-- begin-user-doc --> | ||
272 | * <!-- end-user-doc --> | ||
273 | * @generated | ||
274 | */ | ||
275 | @Override | ||
276 | public EReference getGateDefinition_InputEvents() { | ||
277 | return (EReference)gateDefinitionEClass.getEStructuralFeatures().get(0); | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * <!-- begin-user-doc --> | ||
282 | * <!-- end-user-doc --> | ||
283 | * @generated | ||
284 | */ | ||
285 | @Override | ||
286 | public EClass getBasicEventDefinition() { | ||
287 | return basicEventDefinitionEClass; | ||
288 | } | ||
289 | |||
290 | /** | ||
291 | * <!-- begin-user-doc --> | ||
292 | * <!-- end-user-doc --> | ||
293 | * @generated | ||
294 | */ | ||
295 | @Override | ||
296 | public EReference getBasicEventDefinition_Distribution() { | ||
297 | return (EReference)basicEventDefinitionEClass.getEStructuralFeatures().get(0); | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | */ | ||
305 | @Override | ||
306 | public EClass getIntputEvent() { | ||
307 | return intputEventEClass; | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | */ | ||
315 | @Override | ||
316 | public EAttribute getIntputEvent_Multiple() { | ||
317 | return (EAttribute)intputEventEClass.getEStructuralFeatures().get(0); | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | */ | ||
325 | @Override | ||
326 | public EClass getEventDeclaration() { | ||
327 | return eventDeclarationEClass; | ||
328 | } | ||
329 | |||
330 | /** | ||
331 | * <!-- begin-user-doc --> | ||
332 | * <!-- end-user-doc --> | ||
333 | * @generated | ||
334 | */ | ||
335 | @Override | ||
336 | public EAttribute getEventDeclaration_Name() { | ||
337 | return (EAttribute)eventDeclarationEClass.getEStructuralFeatures().get(0); | ||
338 | } | ||
339 | |||
340 | /** | ||
341 | * <!-- begin-user-doc --> | ||
342 | * <!-- end-user-doc --> | ||
343 | * @generated | ||
344 | */ | ||
345 | @Override | ||
346 | public EClass getAndGateDefinition() { | ||
347 | return andGateDefinitionEClass; | ||
348 | } | ||
349 | |||
350 | /** | ||
351 | * <!-- begin-user-doc --> | ||
352 | * <!-- end-user-doc --> | ||
353 | * @generated | ||
354 | */ | ||
355 | @Override | ||
356 | public EClass getOrGateDefinition() { | ||
357 | return orGateDefinitionEClass; | ||
358 | } | ||
359 | |||
360 | /** | ||
361 | * <!-- begin-user-doc --> | ||
362 | * <!-- end-user-doc --> | ||
363 | * @generated | ||
364 | */ | ||
365 | @Override | ||
366 | public EClass getKOfMGateDefinition() { | ||
367 | return kOfMGateDefinitionEClass; | ||
368 | } | ||
369 | |||
370 | /** | ||
371 | * <!-- begin-user-doc --> | ||
372 | * <!-- end-user-doc --> | ||
373 | * @generated | ||
374 | */ | ||
375 | @Override | ||
376 | public EAttribute getKOfMGateDefinition_K() { | ||
377 | return (EAttribute)kOfMGateDefinitionEClass.getEStructuralFeatures().get(0); | ||
378 | } | ||
379 | |||
380 | /** | ||
381 | * <!-- begin-user-doc --> | ||
382 | * <!-- end-user-doc --> | ||
383 | * @generated | ||
384 | */ | ||
385 | @Override | ||
386 | public EAttribute getKOfMGateDefinition_M() { | ||
387 | return (EAttribute)kOfMGateDefinitionEClass.getEStructuralFeatures().get(1); | ||
388 | } | ||
389 | |||
390 | /** | ||
391 | * <!-- begin-user-doc --> | ||
392 | * <!-- end-user-doc --> | ||
393 | * @generated | ||
394 | */ | ||
395 | @Override | ||
396 | public EClass getComponentFaultTree() { | ||
397 | return componentFaultTreeEClass; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * <!-- begin-user-doc --> | ||
402 | * <!-- end-user-doc --> | ||
403 | * @generated | ||
404 | */ | ||
405 | @Override | ||
406 | public EReference getComponentFaultTree_Components() { | ||
407 | return (EReference)componentFaultTreeEClass.getEStructuralFeatures().get(0); | ||
408 | } | ||
409 | |||
410 | /** | ||
411 | * <!-- begin-user-doc --> | ||
412 | * <!-- end-user-doc --> | ||
413 | * @generated | ||
414 | */ | ||
415 | @Override | ||
416 | public EReference getComponentFaultTree_TopEvent() { | ||
417 | return (EReference)componentFaultTreeEClass.getEStructuralFeatures().get(1); | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public EClass getComponent() { | ||
427 | return componentEClass; | ||
428 | } | ||
429 | |||
430 | /** | ||
431 | * <!-- begin-user-doc --> | ||
432 | * <!-- end-user-doc --> | ||
433 | * @generated | ||
434 | */ | ||
435 | @Override | ||
436 | public EReference getComponent_Inputs() { | ||
437 | return (EReference)componentEClass.getEStructuralFeatures().get(0); | ||
438 | } | ||
439 | |||
440 | /** | ||
441 | * <!-- begin-user-doc --> | ||
442 | * <!-- end-user-doc --> | ||
443 | * @generated | ||
444 | */ | ||
445 | @Override | ||
446 | public EReference getComponent_Outputs() { | ||
447 | return (EReference)componentEClass.getEStructuralFeatures().get(1); | ||
448 | } | ||
449 | |||
450 | /** | ||
451 | * <!-- begin-user-doc --> | ||
452 | * <!-- end-user-doc --> | ||
453 | * @generated | ||
454 | */ | ||
455 | @Override | ||
456 | public EReference getComponent_ComponentDefinition() { | ||
457 | return (EReference)componentEClass.getEStructuralFeatures().get(2); | ||
458 | } | ||
459 | |||
460 | /** | ||
461 | * <!-- begin-user-doc --> | ||
462 | * <!-- end-user-doc --> | ||
463 | * @generated | ||
464 | */ | ||
465 | @Override | ||
466 | public EClass getInput() { | ||
467 | return inputEClass; | ||
468 | } | ||
469 | |||
470 | /** | ||
471 | * <!-- begin-user-doc --> | ||
472 | * <!-- end-user-doc --> | ||
473 | * @generated | ||
474 | */ | ||
475 | @Override | ||
476 | public EReference getInput_IntputEvent() { | ||
477 | return (EReference)inputEClass.getEStructuralFeatures().get(0); | ||
478 | } | ||
479 | |||
480 | /** | ||
481 | * <!-- begin-user-doc --> | ||
482 | * <!-- end-user-doc --> | ||
483 | * @generated | ||
484 | */ | ||
485 | @Override | ||
486 | public EReference getInput_Component() { | ||
487 | return (EReference)inputEClass.getEStructuralFeatures().get(1); | ||
488 | } | ||
489 | |||
490 | /** | ||
491 | * <!-- begin-user-doc --> | ||
492 | * <!-- end-user-doc --> | ||
493 | * @generated | ||
494 | */ | ||
495 | @Override | ||
496 | public EReference getInput_IncomingConnections() { | ||
497 | return (EReference)inputEClass.getEStructuralFeatures().get(2); | ||
498 | } | ||
499 | |||
500 | /** | ||
501 | * <!-- begin-user-doc --> | ||
502 | * <!-- end-user-doc --> | ||
503 | * @generated | ||
504 | */ | ||
505 | @Override | ||
506 | public EClass getOutput() { | ||
507 | return outputEClass; | ||
508 | } | ||
509 | |||
510 | /** | ||
511 | * <!-- begin-user-doc --> | ||
512 | * <!-- end-user-doc --> | ||
513 | * @generated | ||
514 | */ | ||
515 | @Override | ||
516 | public EReference getOutput_EventDeclaration() { | ||
517 | return (EReference)outputEClass.getEStructuralFeatures().get(0); | ||
518 | } | ||
519 | |||
520 | /** | ||
521 | * <!-- begin-user-doc --> | ||
522 | * <!-- end-user-doc --> | ||
523 | * @generated | ||
524 | */ | ||
525 | @Override | ||
526 | public EReference getOutput_OutgoingConnections() { | ||
527 | return (EReference)outputEClass.getEStructuralFeatures().get(1); | ||
528 | } | ||
529 | |||
530 | /** | ||
531 | * <!-- begin-user-doc --> | ||
532 | * <!-- end-user-doc --> | ||
533 | * @generated | ||
534 | */ | ||
535 | @Override | ||
536 | public EReference getOutput_Component() { | ||
537 | return (EReference)outputEClass.getEStructuralFeatures().get(2); | ||
538 | } | ||
539 | |||
540 | /** | ||
541 | * <!-- begin-user-doc --> | ||
542 | * <!-- end-user-doc --> | ||
543 | * @generated | ||
544 | */ | ||
545 | @Override | ||
546 | public EClass getConnection() { | ||
547 | return connectionEClass; | ||
548 | } | ||
549 | |||
550 | /** | ||
551 | * <!-- begin-user-doc --> | ||
552 | * <!-- end-user-doc --> | ||
553 | * @generated | ||
554 | */ | ||
555 | @Override | ||
556 | public EReference getConnection_Input() { | ||
557 | return (EReference)connectionEClass.getEStructuralFeatures().get(0); | ||
558 | } | ||
559 | |||
560 | /** | ||
561 | * <!-- begin-user-doc --> | ||
562 | * <!-- end-user-doc --> | ||
563 | * @generated | ||
564 | */ | ||
565 | @Override | ||
566 | public EReference getConnection_Output() { | ||
567 | return (EReference)connectionEClass.getEStructuralFeatures().get(1); | ||
568 | } | ||
569 | |||
570 | /** | ||
571 | * <!-- begin-user-doc --> | ||
572 | * <!-- end-user-doc --> | ||
573 | * @generated | ||
574 | */ | ||
575 | @Override | ||
576 | public CftFactory getCftFactory() { | ||
577 | return (CftFactory)getEFactoryInstance(); | ||
578 | } | ||
579 | |||
580 | /** | ||
581 | * <!-- begin-user-doc --> | ||
582 | * <!-- end-user-doc --> | ||
583 | * @generated | ||
584 | */ | ||
585 | private boolean isCreated = false; | ||
586 | |||
587 | /** | ||
588 | * Creates the meta-model objects for the package. This method is | ||
589 | * guarded to have no affect on any invocation but its first. | ||
590 | * <!-- begin-user-doc --> | ||
591 | * <!-- end-user-doc --> | ||
592 | * @generated | ||
593 | */ | ||
594 | public void createPackageContents() { | ||
595 | if (isCreated) return; | ||
596 | isCreated = true; | ||
597 | |||
598 | // Create classes and their features | ||
599 | componentDefinitionEClass = createEClass(COMPONENT_DEFINITION); | ||
600 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__INPUT_EVENTS); | ||
601 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
602 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
603 | createEAttribute(componentDefinitionEClass, COMPONENT_DEFINITION__NAME); | ||
604 | |||
605 | eventDefinitionEClass = createEClass(EVENT_DEFINITION); | ||
606 | |||
607 | gateDefinitionEClass = createEClass(GATE_DEFINITION); | ||
608 | createEReference(gateDefinitionEClass, GATE_DEFINITION__INPUT_EVENTS); | ||
609 | |||
610 | basicEventDefinitionEClass = createEClass(BASIC_EVENT_DEFINITION); | ||
611 | createEReference(basicEventDefinitionEClass, BASIC_EVENT_DEFINITION__DISTRIBUTION); | ||
612 | |||
613 | intputEventEClass = createEClass(INTPUT_EVENT); | ||
614 | createEAttribute(intputEventEClass, INTPUT_EVENT__MULTIPLE); | ||
615 | |||
616 | eventDeclarationEClass = createEClass(EVENT_DECLARATION); | ||
617 | createEAttribute(eventDeclarationEClass, EVENT_DECLARATION__NAME); | ||
618 | |||
619 | andGateDefinitionEClass = createEClass(AND_GATE_DEFINITION); | ||
620 | |||
621 | orGateDefinitionEClass = createEClass(OR_GATE_DEFINITION); | ||
622 | |||
623 | kOfMGateDefinitionEClass = createEClass(KOF_MGATE_DEFINITION); | ||
624 | createEAttribute(kOfMGateDefinitionEClass, KOF_MGATE_DEFINITION__K); | ||
625 | createEAttribute(kOfMGateDefinitionEClass, KOF_MGATE_DEFINITION__M); | ||
626 | |||
627 | componentFaultTreeEClass = createEClass(COMPONENT_FAULT_TREE); | ||
628 | createEReference(componentFaultTreeEClass, COMPONENT_FAULT_TREE__COMPONENTS); | ||
629 | createEReference(componentFaultTreeEClass, COMPONENT_FAULT_TREE__TOP_EVENT); | ||
630 | |||
631 | componentEClass = createEClass(COMPONENT); | ||
632 | createEReference(componentEClass, COMPONENT__INPUTS); | ||
633 | createEReference(componentEClass, COMPONENT__OUTPUTS); | ||
634 | createEReference(componentEClass, COMPONENT__COMPONENT_DEFINITION); | ||
635 | |||
636 | inputEClass = createEClass(INPUT); | ||
637 | createEReference(inputEClass, INPUT__INTPUT_EVENT); | ||
638 | createEReference(inputEClass, INPUT__COMPONENT); | ||
639 | createEReference(inputEClass, INPUT__INCOMING_CONNECTIONS); | ||
640 | |||
641 | outputEClass = createEClass(OUTPUT); | ||
642 | createEReference(outputEClass, OUTPUT__EVENT_DECLARATION); | ||
643 | createEReference(outputEClass, OUTPUT__OUTGOING_CONNECTIONS); | ||
644 | createEReference(outputEClass, OUTPUT__COMPONENT); | ||
645 | |||
646 | connectionEClass = createEClass(CONNECTION); | ||
647 | createEReference(connectionEClass, CONNECTION__INPUT); | ||
648 | createEReference(connectionEClass, CONNECTION__OUTPUT); | ||
649 | } | ||
650 | |||
651 | /** | ||
652 | * <!-- begin-user-doc --> | ||
653 | * <!-- end-user-doc --> | ||
654 | * @generated | ||
655 | */ | ||
656 | private boolean isInitialized = false; | ||
657 | |||
658 | /** | ||
659 | * Complete the initialization of the package and its meta-model. This | ||
660 | * method is guarded to have no affect on any invocation but its first. | ||
661 | * <!-- begin-user-doc --> | ||
662 | * <!-- end-user-doc --> | ||
663 | * @generated | ||
664 | */ | ||
665 | public void initializePackageContents() { | ||
666 | if (isInitialized) return; | ||
667 | isInitialized = true; | ||
668 | |||
669 | // Initialize package | ||
670 | setName(eNAME); | ||
671 | setNsPrefix(eNS_PREFIX); | ||
672 | setNsURI(eNS_URI); | ||
673 | |||
674 | // Obtain other dependent packages | ||
675 | FtPackage theFtPackage = (FtPackage)EPackage.Registry.INSTANCE.getEPackage(FtPackage.eNS_URI); | ||
676 | |||
677 | // Create type parameters | ||
678 | |||
679 | // Set bounds for type parameters | ||
680 | |||
681 | // Add supertypes to classes | ||
682 | eventDefinitionEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
683 | gateDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
684 | basicEventDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
685 | intputEventEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
686 | andGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | ||
687 | orGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | ||
688 | kOfMGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | ||
689 | |||
690 | // Initialize classes, features, and operations; add parameters | ||
691 | initEClass(componentDefinitionEClass, ComponentDefinition.class, "ComponentDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
692 | initEReference(getComponentDefinition_InputEvents(), this.getIntputEvent(), 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); | ||
693 | 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); | ||
694 | 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); | ||
695 | 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); | ||
696 | |||
697 | initEClass(eventDefinitionEClass, EventDefinition.class, "EventDefinition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
698 | |||
699 | initEClass(gateDefinitionEClass, GateDefinition.class, "GateDefinition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
700 | 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); | ||
701 | |||
702 | initEClass(basicEventDefinitionEClass, BasicEventDefinition.class, "BasicEventDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
703 | 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); | ||
704 | |||
705 | initEClass(intputEventEClass, IntputEvent.class, "IntputEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
706 | initEAttribute(getIntputEvent_Multiple(), ecorePackage.getEBoolean(), "multiple", null, 0, 1, IntputEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
707 | |||
708 | initEClass(eventDeclarationEClass, EventDeclaration.class, "EventDeclaration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
709 | 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); | ||
710 | |||
711 | initEClass(andGateDefinitionEClass, AndGateDefinition.class, "AndGateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
712 | |||
713 | initEClass(orGateDefinitionEClass, OrGateDefinition.class, "OrGateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
714 | |||
715 | initEClass(kOfMGateDefinitionEClass, KOfMGateDefinition.class, "KOfMGateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
716 | 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); | ||
717 | 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); | ||
718 | |||
719 | initEClass(componentFaultTreeEClass, ComponentFaultTree.class, "ComponentFaultTree", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
720 | 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); | ||
721 | 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); | ||
722 | |||
723 | initEClass(componentEClass, Component.class, "Component", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
724 | 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); | ||
725 | 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); | ||
726 | 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); | ||
727 | |||
728 | initEClass(inputEClass, Input.class, "Input", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
729 | initEReference(getInput_IntputEvent(), this.getIntputEvent(), null, "intputEvent", null, 1, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
730 | 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); | ||
731 | 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); | ||
732 | |||
733 | initEClass(outputEClass, Output.class, "Output", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
734 | 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); | ||
735 | 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); | ||
736 | 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); | ||
737 | |||
738 | initEClass(connectionEClass, Connection.class, "Connection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
739 | 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); | ||
740 | 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); | ||
741 | |||
742 | // Create resource | ||
743 | createResource(eNS_URI); | ||
744 | } | ||
745 | |||
746 | } //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 new file mode 100644 index 00000000..58a476f3 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentDefinitionImpl.java | |||
@@ -0,0 +1,300 @@ | |||
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.IntputEvent; | ||
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.EObjectContainmentEList; | ||
25 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
26 | import org.eclipse.emf.ecore.util.InternalEList; | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * An implementation of the model object '<em><b>Component Definition</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.ComponentDefinitionImpl#getInputEvents <em>Input Events</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl#getEventDefinitions <em>Event Definitions</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl#getOutputEvents <em>Output Events</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentDefinitionImpl#getName <em>Name</em>}</li> | ||
40 | * </ul> | ||
41 | * | ||
42 | * @generated | ||
43 | */ | ||
44 | public class ComponentDefinitionImpl extends MinimalEObjectImpl.Container implements ComponentDefinition { | ||
45 | /** | ||
46 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' containment reference list. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getInputEvents() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected EList<IntputEvent> inputEvents; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #getEventDefinitions() <em>Event Definitions</em>}' containment reference list. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getEventDefinitions() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected EList<EventDefinition> eventDefinitions; | ||
64 | |||
65 | /** | ||
66 | * The cached value of the '{@link #getOutputEvents() <em>Output Events</em>}' reference list. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @see #getOutputEvents() | ||
70 | * @generated | ||
71 | * @ordered | ||
72 | */ | ||
73 | protected EList<EventDeclaration> outputEvents; | ||
74 | |||
75 | /** | ||
76 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @see #getName() | ||
80 | * @generated | ||
81 | * @ordered | ||
82 | */ | ||
83 | protected static final String NAME_EDEFAULT = null; | ||
84 | |||
85 | /** | ||
86 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @see #getName() | ||
90 | * @generated | ||
91 | * @ordered | ||
92 | */ | ||
93 | protected String name = NAME_EDEFAULT; | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | protected ComponentDefinitionImpl() { | ||
101 | super(); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | protected EClass eStaticClass() { | ||
111 | return CftPackage.Literals.COMPONENT_DEFINITION; | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public EList<IntputEvent> getInputEvents() { | ||
121 | if (inputEvents == null) { | ||
122 | inputEvents = new EObjectContainmentEList<IntputEvent>(IntputEvent.class, this, CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS); | ||
123 | } | ||
124 | return inputEvents; | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public EList<EventDefinition> getEventDefinitions() { | ||
134 | if (eventDefinitions == null) { | ||
135 | eventDefinitions = new EObjectContainmentEList<EventDefinition>(EventDefinition.class, this, CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
136 | } | ||
137 | return eventDefinitions; | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public EList<EventDeclaration> getOutputEvents() { | ||
147 | if (outputEvents == null) { | ||
148 | outputEvents = new EObjectResolvingEList<EventDeclaration>(EventDeclaration.class, this, CftPackage.COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
149 | } | ||
150 | return outputEvents; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public String getName() { | ||
160 | return name; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void setName(String newName) { | ||
170 | String oldName = name; | ||
171 | name = newName; | ||
172 | if (eNotificationRequired()) | ||
173 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT_DEFINITION__NAME, oldName, name)); | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @Override | ||
182 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
183 | switch (featureID) { | ||
184 | case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
185 | return ((InternalEList<?>)getInputEvents()).basicRemove(otherEnd, msgs); | ||
186 | case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
187 | return ((InternalEList<?>)getEventDefinitions()).basicRemove(otherEnd, msgs); | ||
188 | } | ||
189 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | @Override | ||
198 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
199 | switch (featureID) { | ||
200 | case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
201 | return getInputEvents(); | ||
202 | case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
203 | return getEventDefinitions(); | ||
204 | case CftPackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
205 | return getOutputEvents(); | ||
206 | case CftPackage.COMPONENT_DEFINITION__NAME: | ||
207 | return getName(); | ||
208 | } | ||
209 | return super.eGet(featureID, resolve, coreType); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @SuppressWarnings("unchecked") | ||
218 | @Override | ||
219 | public void eSet(int featureID, Object newValue) { | ||
220 | switch (featureID) { | ||
221 | case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
222 | getInputEvents().clear(); | ||
223 | getInputEvents().addAll((Collection<? extends IntputEvent>)newValue); | ||
224 | return; | ||
225 | case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
226 | getEventDefinitions().clear(); | ||
227 | getEventDefinitions().addAll((Collection<? extends EventDefinition>)newValue); | ||
228 | return; | ||
229 | case CftPackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
230 | getOutputEvents().clear(); | ||
231 | getOutputEvents().addAll((Collection<? extends EventDeclaration>)newValue); | ||
232 | return; | ||
233 | case CftPackage.COMPONENT_DEFINITION__NAME: | ||
234 | setName((String)newValue); | ||
235 | return; | ||
236 | } | ||
237 | super.eSet(featureID, newValue); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public void eUnset(int featureID) { | ||
247 | switch (featureID) { | ||
248 | case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
249 | getInputEvents().clear(); | ||
250 | return; | ||
251 | case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
252 | getEventDefinitions().clear(); | ||
253 | return; | ||
254 | case CftPackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
255 | getOutputEvents().clear(); | ||
256 | return; | ||
257 | case CftPackage.COMPONENT_DEFINITION__NAME: | ||
258 | setName(NAME_EDEFAULT); | ||
259 | return; | ||
260 | } | ||
261 | super.eUnset(featureID); | ||
262 | } | ||
263 | |||
264 | /** | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @generated | ||
268 | */ | ||
269 | @Override | ||
270 | public boolean eIsSet(int featureID) { | ||
271 | switch (featureID) { | ||
272 | case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
273 | return inputEvents != null && !inputEvents.isEmpty(); | ||
274 | case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
275 | return eventDefinitions != null && !eventDefinitions.isEmpty(); | ||
276 | case CftPackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
277 | return outputEvents != null && !outputEvents.isEmpty(); | ||
278 | case CftPackage.COMPONENT_DEFINITION__NAME: | ||
279 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
280 | } | ||
281 | return super.eIsSet(featureID); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public String toString() { | ||
291 | if (eIsProxy()) return super.toString(); | ||
292 | |||
293 | StringBuilder result = new StringBuilder(super.toString()); | ||
294 | result.append(" (name: "); | ||
295 | result.append(name); | ||
296 | result.append(')'); | ||
297 | return result.toString(); | ||
298 | } | ||
299 | |||
300 | } //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 new file mode 100644 index 00000000..b84b6436 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentFaultTreeImpl.java | |||
@@ -0,0 +1,218 @@ | |||
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 new file mode 100644 index 00000000..6d23dc78 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java | |||
@@ -0,0 +1,273 @@ | |||
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.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.EObjectContainmentWithInverseEList; | ||
25 | import org.eclipse.emf.ecore.util.InternalEList; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Component</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.ComponentImpl#getInputs <em>Inputs</em>}</li> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getOutputs <em>Outputs</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getComponentDefinition <em>Component Definition</em>}</li> | ||
38 | * </ul> | ||
39 | * | ||
40 | * @generated | ||
41 | */ | ||
42 | public class ComponentImpl extends MinimalEObjectImpl.Container implements Component { | ||
43 | /** | ||
44 | * The cached value of the '{@link #getInputs() <em>Inputs</em>}' containment reference list. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getInputs() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected EList<Input> inputs; | ||
52 | |||
53 | /** | ||
54 | * The cached value of the '{@link #getOutputs() <em>Outputs</em>}' containment reference list. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getOutputs() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected EList<Output> outputs; | ||
62 | |||
63 | /** | ||
64 | * The cached value of the '{@link #getComponentDefinition() <em>Component Definition</em>}' reference. | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @see #getComponentDefinition() | ||
68 | * @generated | ||
69 | * @ordered | ||
70 | */ | ||
71 | protected ComponentDefinition componentDefinition; | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | protected ComponentImpl() { | ||
79 | super(); | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | protected EClass eStaticClass() { | ||
89 | return CftPackage.Literals.COMPONENT; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public EList<Input> getInputs() { | ||
99 | if (inputs == null) { | ||
100 | inputs = new EObjectContainmentWithInverseEList<Input>(Input.class, this, CftPackage.COMPONENT__INPUTS, CftPackage.INPUT__COMPONENT); | ||
101 | } | ||
102 | return inputs; | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public EList<Output> getOutputs() { | ||
112 | if (outputs == null) { | ||
113 | outputs = new EObjectContainmentWithInverseEList<Output>(Output.class, this, CftPackage.COMPONENT__OUTPUTS, CftPackage.OUTPUT__COMPONENT); | ||
114 | } | ||
115 | return outputs; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public ComponentDefinition getComponentDefinition() { | ||
125 | if (componentDefinition != null && componentDefinition.eIsProxy()) { | ||
126 | InternalEObject oldComponentDefinition = (InternalEObject)componentDefinition; | ||
127 | componentDefinition = (ComponentDefinition)eResolveProxy(oldComponentDefinition); | ||
128 | if (componentDefinition != oldComponentDefinition) { | ||
129 | if (eNotificationRequired()) | ||
130 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.COMPONENT__COMPONENT_DEFINITION, oldComponentDefinition, componentDefinition)); | ||
131 | } | ||
132 | } | ||
133 | return componentDefinition; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | public ComponentDefinition basicGetComponentDefinition() { | ||
142 | return componentDefinition; | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public void setComponentDefinition(ComponentDefinition newComponentDefinition) { | ||
152 | ComponentDefinition oldComponentDefinition = componentDefinition; | ||
153 | componentDefinition = newComponentDefinition; | ||
154 | if (eNotificationRequired()) | ||
155 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__COMPONENT_DEFINITION, oldComponentDefinition, componentDefinition)); | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @SuppressWarnings("unchecked") | ||
164 | @Override | ||
165 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
166 | switch (featureID) { | ||
167 | case CftPackage.COMPONENT__INPUTS: | ||
168 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getInputs()).basicAdd(otherEnd, msgs); | ||
169 | case CftPackage.COMPONENT__OUTPUTS: | ||
170 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getOutputs()).basicAdd(otherEnd, msgs); | ||
171 | } | ||
172 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
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__INPUTS: | ||
184 | return ((InternalEList<?>)getInputs()).basicRemove(otherEnd, msgs); | ||
185 | case CftPackage.COMPONENT__OUTPUTS: | ||
186 | return ((InternalEList<?>)getOutputs()).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__INPUTS: | ||
200 | return getInputs(); | ||
201 | case CftPackage.COMPONENT__OUTPUTS: | ||
202 | return getOutputs(); | ||
203 | case CftPackage.COMPONENT__COMPONENT_DEFINITION: | ||
204 | if (resolve) return getComponentDefinition(); | ||
205 | return basicGetComponentDefinition(); | ||
206 | } | ||
207 | return super.eGet(featureID, resolve, coreType); | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @SuppressWarnings("unchecked") | ||
216 | @Override | ||
217 | public void eSet(int featureID, Object newValue) { | ||
218 | switch (featureID) { | ||
219 | case CftPackage.COMPONENT__INPUTS: | ||
220 | getInputs().clear(); | ||
221 | getInputs().addAll((Collection<? extends Input>)newValue); | ||
222 | return; | ||
223 | case CftPackage.COMPONENT__OUTPUTS: | ||
224 | getOutputs().clear(); | ||
225 | getOutputs().addAll((Collection<? extends Output>)newValue); | ||
226 | return; | ||
227 | case CftPackage.COMPONENT__COMPONENT_DEFINITION: | ||
228 | setComponentDefinition((ComponentDefinition)newValue); | ||
229 | return; | ||
230 | } | ||
231 | super.eSet(featureID, newValue); | ||
232 | } | ||
233 | |||
234 | /** | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
239 | @Override | ||
240 | public void eUnset(int featureID) { | ||
241 | switch (featureID) { | ||
242 | case CftPackage.COMPONENT__INPUTS: | ||
243 | getInputs().clear(); | ||
244 | return; | ||
245 | case CftPackage.COMPONENT__OUTPUTS: | ||
246 | getOutputs().clear(); | ||
247 | return; | ||
248 | case CftPackage.COMPONENT__COMPONENT_DEFINITION: | ||
249 | setComponentDefinition((ComponentDefinition)null); | ||
250 | return; | ||
251 | } | ||
252 | super.eUnset(featureID); | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public boolean eIsSet(int featureID) { | ||
262 | switch (featureID) { | ||
263 | case CftPackage.COMPONENT__INPUTS: | ||
264 | return inputs != null && !inputs.isEmpty(); | ||
265 | case CftPackage.COMPONENT__OUTPUTS: | ||
266 | return outputs != null && !outputs.isEmpty(); | ||
267 | case CftPackage.COMPONENT__COMPONENT_DEFINITION: | ||
268 | return componentDefinition != null; | ||
269 | } | ||
270 | return super.eIsSet(featureID); | ||
271 | } | ||
272 | |||
273 | } //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 new file mode 100644 index 00000000..7506e4d7 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java | |||
@@ -0,0 +1,289 @@ | |||
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.Output; | ||
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 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
20 | |||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * An implementation of the model object '<em><b>Connection</b></em>'. | ||
24 | * <!-- end-user-doc --> | ||
25 | * <p> | ||
26 | * The following features are implemented: | ||
27 | * </p> | ||
28 | * <ul> | ||
29 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getInput <em>Input</em>}</li> | ||
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getOutput <em>Output</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class ConnectionImpl extends MinimalEObjectImpl.Container implements Connection { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getOutput() <em>Output</em>}' reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getOutput() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected Output output; | ||
45 | |||
46 | /** | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @generated | ||
50 | */ | ||
51 | protected ConnectionImpl() { | ||
52 | super(); | ||
53 | } | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | @Override | ||
61 | protected EClass eStaticClass() { | ||
62 | return CftPackage.Literals.CONNECTION; | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | public Input getInput() { | ||
72 | if (eContainerFeatureID() != CftPackage.CONNECTION__INPUT) return null; | ||
73 | return (Input)eInternalContainer(); | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public NotificationChain basicSetInput(Input newInput, NotificationChain msgs) { | ||
82 | msgs = eBasicSetContainer((InternalEObject)newInput, CftPackage.CONNECTION__INPUT, msgs); | ||
83 | return msgs; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public void setInput(Input newInput) { | ||
93 | if (newInput != eInternalContainer() || (eContainerFeatureID() != CftPackage.CONNECTION__INPUT && newInput != null)) { | ||
94 | if (EcoreUtil.isAncestor(this, newInput)) | ||
95 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | ||
96 | NotificationChain msgs = null; | ||
97 | if (eInternalContainer() != null) | ||
98 | msgs = eBasicRemoveFromContainer(msgs); | ||
99 | if (newInput != null) | ||
100 | msgs = ((InternalEObject)newInput).eInverseAdd(this, CftPackage.INPUT__INCOMING_CONNECTIONS, Input.class, msgs); | ||
101 | msgs = basicSetInput(newInput, msgs); | ||
102 | if (msgs != null) msgs.dispatch(); | ||
103 | } | ||
104 | else if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__INPUT, newInput, newInput)); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public Output getOutput() { | ||
115 | if (output != null && output.eIsProxy()) { | ||
116 | InternalEObject oldOutput = (InternalEObject)output; | ||
117 | output = (Output)eResolveProxy(oldOutput); | ||
118 | if (output != oldOutput) { | ||
119 | if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.CONNECTION__OUTPUT, oldOutput, output)); | ||
121 | } | ||
122 | } | ||
123 | return output; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | public Output basicGetOutput() { | ||
132 | return output; | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | public NotificationChain basicSetOutput(Output newOutput, NotificationChain msgs) { | ||
141 | Output oldOutput = output; | ||
142 | output = newOutput; | ||
143 | if (eNotificationRequired()) { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__OUTPUT, oldOutput, newOutput); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public void setOutput(Output newOutput) { | ||
157 | if (newOutput != output) { | ||
158 | NotificationChain msgs = null; | ||
159 | if (output != null) | ||
160 | msgs = ((InternalEObject)output).eInverseRemove(this, CftPackage.OUTPUT__OUTGOING_CONNECTIONS, Output.class, msgs); | ||
161 | if (newOutput != null) | ||
162 | msgs = ((InternalEObject)newOutput).eInverseAdd(this, CftPackage.OUTPUT__OUTGOING_CONNECTIONS, Output.class, msgs); | ||
163 | msgs = basicSetOutput(newOutput, msgs); | ||
164 | if (msgs != null) msgs.dispatch(); | ||
165 | } | ||
166 | else if (eNotificationRequired()) | ||
167 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__OUTPUT, newOutput, newOutput)); | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @Override | ||
176 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
177 | switch (featureID) { | ||
178 | case CftPackage.CONNECTION__INPUT: | ||
179 | if (eInternalContainer() != null) | ||
180 | msgs = eBasicRemoveFromContainer(msgs); | ||
181 | return basicSetInput((Input)otherEnd, msgs); | ||
182 | case CftPackage.CONNECTION__OUTPUT: | ||
183 | if (output != null) | ||
184 | msgs = ((InternalEObject)output).eInverseRemove(this, CftPackage.OUTPUT__OUTGOING_CONNECTIONS, Output.class, msgs); | ||
185 | return basicSetOutput((Output)otherEnd, msgs); | ||
186 | } | ||
187 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
188 | } | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | @Override | ||
196 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
197 | switch (featureID) { | ||
198 | case CftPackage.CONNECTION__INPUT: | ||
199 | return basicSetInput(null, msgs); | ||
200 | case CftPackage.CONNECTION__OUTPUT: | ||
201 | return basicSetOutput(null, msgs); | ||
202 | } | ||
203 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | ||
213 | switch (eContainerFeatureID()) { | ||
214 | case CftPackage.CONNECTION__INPUT: | ||
215 | return eInternalContainer().eInverseRemove(this, CftPackage.INPUT__INCOMING_CONNECTIONS, Input.class, msgs); | ||
216 | } | ||
217 | return super.eBasicRemoveFromContainerFeature(msgs); | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | @Override | ||
226 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
227 | switch (featureID) { | ||
228 | case CftPackage.CONNECTION__INPUT: | ||
229 | return getInput(); | ||
230 | case CftPackage.CONNECTION__OUTPUT: | ||
231 | if (resolve) return getOutput(); | ||
232 | return basicGetOutput(); | ||
233 | } | ||
234 | return super.eGet(featureID, resolve, coreType); | ||
235 | } | ||
236 | |||
237 | /** | ||
238 | * <!-- begin-user-doc --> | ||
239 | * <!-- end-user-doc --> | ||
240 | * @generated | ||
241 | */ | ||
242 | @Override | ||
243 | public void eSet(int featureID, Object newValue) { | ||
244 | switch (featureID) { | ||
245 | case CftPackage.CONNECTION__INPUT: | ||
246 | setInput((Input)newValue); | ||
247 | return; | ||
248 | case CftPackage.CONNECTION__OUTPUT: | ||
249 | setOutput((Output)newValue); | ||
250 | return; | ||
251 | } | ||
252 | super.eSet(featureID, newValue); | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public void eUnset(int featureID) { | ||
262 | switch (featureID) { | ||
263 | case CftPackage.CONNECTION__INPUT: | ||
264 | setInput((Input)null); | ||
265 | return; | ||
266 | case CftPackage.CONNECTION__OUTPUT: | ||
267 | setOutput((Output)null); | ||
268 | return; | ||
269 | } | ||
270 | super.eUnset(featureID); | ||
271 | } | ||
272 | |||
273 | /** | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | */ | ||
278 | @Override | ||
279 | public boolean eIsSet(int featureID) { | ||
280 | switch (featureID) { | ||
281 | case CftPackage.CONNECTION__INPUT: | ||
282 | return getInput() != null; | ||
283 | case CftPackage.CONNECTION__OUTPUT: | ||
284 | return output != null; | ||
285 | } | ||
286 | return super.eIsSet(featureID); | ||
287 | } | ||
288 | |||
289 | } //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 new file mode 100644 index 00000000..e60a9427 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/EventDeclarationImpl.java | |||
@@ -0,0 +1,163 @@ | |||
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 new file mode 100644 index 00000000..76b79f5b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/EventDefinitionImpl.java | |||
@@ -0,0 +1,37 @@ | |||
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 new file mode 100644 index 00000000..2fb9a724 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/GateDefinitionImpl.java | |||
@@ -0,0 +1,133 @@ | |||
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/InputImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java new file mode 100644 index 00000000..eda5fea0 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java | |||
@@ -0,0 +1,309 @@ | |||
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.IntputEvent; | ||
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.EObjectContainmentWithInverseEList; | ||
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>Input</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.InputImpl#getIntputEvent <em>Intput Event</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getComponent <em>Component</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getIncomingConnections <em>Incoming Connections</em>}</li> | ||
39 | * </ul> | ||
40 | * | ||
41 | * @generated | ||
42 | */ | ||
43 | public class InputImpl extends MinimalEObjectImpl.Container implements Input { | ||
44 | /** | ||
45 | * The cached value of the '{@link #getIntputEvent() <em>Intput Event</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getIntputEvent() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected IntputEvent intputEvent; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #getIncomingConnections() <em>Incoming Connections</em>}' containment reference list. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #getIncomingConnections() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected EList<Connection> incomingConnections; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | protected InputImpl() { | ||
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.INPUT; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public IntputEvent getIntputEvent() { | ||
90 | if (intputEvent != null && intputEvent.eIsProxy()) { | ||
91 | InternalEObject oldIntputEvent = (InternalEObject)intputEvent; | ||
92 | intputEvent = (IntputEvent)eResolveProxy(oldIntputEvent); | ||
93 | if (intputEvent != oldIntputEvent) { | ||
94 | if (eNotificationRequired()) | ||
95 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.INPUT__INTPUT_EVENT, oldIntputEvent, intputEvent)); | ||
96 | } | ||
97 | } | ||
98 | return intputEvent; | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | public IntputEvent basicGetIntputEvent() { | ||
107 | return intputEvent; | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public void setIntputEvent(IntputEvent newIntputEvent) { | ||
117 | IntputEvent oldIntputEvent = intputEvent; | ||
118 | intputEvent = newIntputEvent; | ||
119 | if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INPUT__INTPUT_EVENT, oldIntputEvent, intputEvent)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public Component getComponent() { | ||
130 | if (eContainerFeatureID() != CftPackage.INPUT__COMPONENT) return null; | ||
131 | return (Component)eInternalContainer(); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | public NotificationChain basicSetComponent(Component newComponent, NotificationChain msgs) { | ||
140 | msgs = eBasicSetContainer((InternalEObject)newComponent, CftPackage.INPUT__COMPONENT, msgs); | ||
141 | return msgs; | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public void setComponent(Component newComponent) { | ||
151 | if (newComponent != eInternalContainer() || (eContainerFeatureID() != CftPackage.INPUT__COMPONENT && newComponent != null)) { | ||
152 | if (EcoreUtil.isAncestor(this, newComponent)) | ||
153 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | ||
154 | NotificationChain msgs = null; | ||
155 | if (eInternalContainer() != null) | ||
156 | msgs = eBasicRemoveFromContainer(msgs); | ||
157 | if (newComponent != null) | ||
158 | msgs = ((InternalEObject)newComponent).eInverseAdd(this, CftPackage.COMPONENT__INPUTS, Component.class, msgs); | ||
159 | msgs = basicSetComponent(newComponent, msgs); | ||
160 | if (msgs != null) msgs.dispatch(); | ||
161 | } | ||
162 | else if (eNotificationRequired()) | ||
163 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INPUT__COMPONENT, newComponent, newComponent)); | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public EList<Connection> getIncomingConnections() { | ||
173 | if (incomingConnections == null) { | ||
174 | incomingConnections = new EObjectContainmentWithInverseEList<Connection>(Connection.class, this, CftPackage.INPUT__INCOMING_CONNECTIONS, CftPackage.CONNECTION__INPUT); | ||
175 | } | ||
176 | return incomingConnections; | ||
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.INPUT__COMPONENT: | ||
189 | if (eInternalContainer() != null) | ||
190 | msgs = eBasicRemoveFromContainer(msgs); | ||
191 | return basicSetComponent((Component)otherEnd, msgs); | ||
192 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
193 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getIncomingConnections()).basicAdd(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.INPUT__COMPONENT: | ||
207 | return basicSetComponent(null, msgs); | ||
208 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
209 | return ((InternalEList<?>)getIncomingConnections()).basicRemove(otherEnd, 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.INPUT__COMPONENT: | ||
223 | return eInternalContainer().eInverseRemove(this, CftPackage.COMPONENT__INPUTS, 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.INPUT__INTPUT_EVENT: | ||
237 | if (resolve) return getIntputEvent(); | ||
238 | return basicGetIntputEvent(); | ||
239 | case CftPackage.INPUT__COMPONENT: | ||
240 | return getComponent(); | ||
241 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
242 | return getIncomingConnections(); | ||
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.INPUT__INTPUT_EVENT: | ||
257 | setIntputEvent((IntputEvent)newValue); | ||
258 | return; | ||
259 | case CftPackage.INPUT__COMPONENT: | ||
260 | setComponent((Component)newValue); | ||
261 | return; | ||
262 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
263 | getIncomingConnections().clear(); | ||
264 | getIncomingConnections().addAll((Collection<? extends Connection>)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.INPUT__INTPUT_EVENT: | ||
279 | setIntputEvent((IntputEvent)null); | ||
280 | return; | ||
281 | case CftPackage.INPUT__COMPONENT: | ||
282 | setComponent((Component)null); | ||
283 | return; | ||
284 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
285 | getIncomingConnections().clear(); | ||
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.INPUT__INTPUT_EVENT: | ||
300 | return intputEvent != null; | ||
301 | case CftPackage.INPUT__COMPONENT: | ||
302 | return getComponent() != null; | ||
303 | case CftPackage.INPUT__INCOMING_CONNECTIONS: | ||
304 | return incomingConnections != null && !incomingConnections.isEmpty(); | ||
305 | } | ||
306 | return super.eIsSet(featureID); | ||
307 | } | ||
308 | |||
309 | } //InputImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/IntputEventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/IntputEventImpl.java new file mode 100644 index 00000000..ea22452f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/IntputEventImpl.java | |||
@@ -0,0 +1,164 @@ | |||
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.IntputEvent; | ||
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>Intput 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.IntputEventImpl#isMultiple <em>Multiple</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class IntputEventImpl extends EventDeclarationImpl implements IntputEvent { | ||
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 IntputEventImpl() { | ||
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.INTPUT_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.INTPUT_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.INTPUT_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.INTPUT_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.INTPUT_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.INTPUT_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 | } //IntputEventImpl | ||
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 new file mode 100644 index 00000000..fed17513 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/KOfMGateDefinitionImpl.java | |||
@@ -0,0 +1,220 @@ | |||
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 new file mode 100644 index 00000000..d2275f60 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/OrGateDefinitionImpl.java | |||
@@ -0,0 +1,37 @@ | |||
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 new file mode 100644 index 00000000..31a81afe --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/OutputImpl.java | |||
@@ -0,0 +1,309 @@ | |||
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 new file mode 100644 index 00000000..c6b82734 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftAdapterFactory.java | |||
@@ -0,0 +1,354 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.util; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.*; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Adapter; | ||
8 | import org.eclipse.emf.common.notify.Notifier; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EObject; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * The <b>Adapter Factory</b> for the model. | ||
17 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
18 | * <!-- end-user-doc --> | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage | ||
20 | * @generated | ||
21 | */ | ||
22 | public class CftAdapterFactory extends AdapterFactoryImpl { | ||
23 | /** | ||
24 | * The cached model package. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | protected static CftPackage modelPackage; | ||
30 | |||
31 | /** | ||
32 | * Creates an instance of the adapter factory. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public CftAdapterFactory() { | ||
38 | if (modelPackage == null) { | ||
39 | modelPackage = CftPackage.eINSTANCE; | ||
40 | } | ||
41 | } | ||
42 | |||
43 | /** | ||
44 | * Returns whether this factory is applicable for the type of the object. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return whether this factory is applicable for the type of the object. | ||
49 | * @generated | ||
50 | */ | ||
51 | @Override | ||
52 | public boolean isFactoryForType(Object object) { | ||
53 | if (object == modelPackage) { | ||
54 | return true; | ||
55 | } | ||
56 | if (object instanceof EObject) { | ||
57 | return ((EObject)object).eClass().getEPackage() == modelPackage; | ||
58 | } | ||
59 | return false; | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * The switch that delegates to the <code>createXXX</code> methods. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | protected CftSwitch<Adapter> modelSwitch = | ||
69 | new CftSwitch<Adapter>() { | ||
70 | @Override | ||
71 | public Adapter caseComponentDefinition(ComponentDefinition object) { | ||
72 | return createComponentDefinitionAdapter(); | ||
73 | } | ||
74 | @Override | ||
75 | public Adapter caseEventDefinition(EventDefinition object) { | ||
76 | return createEventDefinitionAdapter(); | ||
77 | } | ||
78 | @Override | ||
79 | public Adapter caseGateDefinition(GateDefinition object) { | ||
80 | return createGateDefinitionAdapter(); | ||
81 | } | ||
82 | @Override | ||
83 | public Adapter caseBasicEventDefinition(BasicEventDefinition object) { | ||
84 | return createBasicEventDefinitionAdapter(); | ||
85 | } | ||
86 | @Override | ||
87 | public Adapter caseIntputEvent(IntputEvent object) { | ||
88 | return createIntputEventAdapter(); | ||
89 | } | ||
90 | @Override | ||
91 | public Adapter caseEventDeclaration(EventDeclaration object) { | ||
92 | return createEventDeclarationAdapter(); | ||
93 | } | ||
94 | @Override | ||
95 | public Adapter caseAndGateDefinition(AndGateDefinition object) { | ||
96 | return createAndGateDefinitionAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseOrGateDefinition(OrGateDefinition object) { | ||
100 | return createOrGateDefinitionAdapter(); | ||
101 | } | ||
102 | @Override | ||
103 | public Adapter caseKOfMGateDefinition(KOfMGateDefinition object) { | ||
104 | return createKOfMGateDefinitionAdapter(); | ||
105 | } | ||
106 | @Override | ||
107 | public Adapter caseComponentFaultTree(ComponentFaultTree object) { | ||
108 | return createComponentFaultTreeAdapter(); | ||
109 | } | ||
110 | @Override | ||
111 | public Adapter caseComponent(Component object) { | ||
112 | return createComponentAdapter(); | ||
113 | } | ||
114 | @Override | ||
115 | public Adapter caseInput(Input object) { | ||
116 | return createInputAdapter(); | ||
117 | } | ||
118 | @Override | ||
119 | public Adapter caseOutput(Output object) { | ||
120 | return createOutputAdapter(); | ||
121 | } | ||
122 | @Override | ||
123 | public Adapter caseConnection(Connection object) { | ||
124 | return createConnectionAdapter(); | ||
125 | } | ||
126 | @Override | ||
127 | public Adapter defaultCase(EObject object) { | ||
128 | return createEObjectAdapter(); | ||
129 | } | ||
130 | }; | ||
131 | |||
132 | /** | ||
133 | * Creates an adapter for the <code>target</code>. | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @param target the object to adapt. | ||
137 | * @return the adapter for the <code>target</code>. | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public Adapter createAdapter(Notifier target) { | ||
142 | return modelSwitch.doSwitch((EObject)target); | ||
143 | } | ||
144 | |||
145 | |||
146 | /** | ||
147 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition <em>Component Definition</em>}'. | ||
148 | * <!-- begin-user-doc --> | ||
149 | * This default implementation returns null so that we can easily ignore cases; | ||
150 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
151 | * <!-- end-user-doc --> | ||
152 | * @return the new adapter. | ||
153 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition | ||
154 | * @generated | ||
155 | */ | ||
156 | public Adapter createComponentDefinitionAdapter() { | ||
157 | return null; | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition <em>Event Definition</em>}'. | ||
162 | * <!-- begin-user-doc --> | ||
163 | * This default implementation returns null so that we can easily ignore cases; | ||
164 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
165 | * <!-- end-user-doc --> | ||
166 | * @return the new adapter. | ||
167 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition | ||
168 | * @generated | ||
169 | */ | ||
170 | public Adapter createEventDefinitionAdapter() { | ||
171 | return null; | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition <em>Gate Definition</em>}'. | ||
176 | * <!-- begin-user-doc --> | ||
177 | * This default implementation returns null so that we can easily ignore cases; | ||
178 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
179 | * <!-- end-user-doc --> | ||
180 | * @return the new adapter. | ||
181 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition | ||
182 | * @generated | ||
183 | */ | ||
184 | public Adapter createGateDefinitionAdapter() { | ||
185 | return null; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
190 | * <!-- begin-user-doc --> | ||
191 | * This default implementation returns null so that we can easily ignore cases; | ||
192 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
193 | * <!-- end-user-doc --> | ||
194 | * @return the new adapter. | ||
195 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition | ||
196 | * @generated | ||
197 | */ | ||
198 | public Adapter createBasicEventDefinitionAdapter() { | ||
199 | return null; | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent <em>Intput Event</em>}'. | ||
204 | * <!-- begin-user-doc --> | ||
205 | * This default implementation returns null so that we can easily ignore cases; | ||
206 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
207 | * <!-- end-user-doc --> | ||
208 | * @return the new adapter. | ||
209 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent | ||
210 | * @generated | ||
211 | */ | ||
212 | public Adapter createIntputEventAdapter() { | ||
213 | return null; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration <em>Event Declaration</em>}'. | ||
218 | * <!-- begin-user-doc --> | ||
219 | * This default implementation returns null so that we can easily ignore cases; | ||
220 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
221 | * <!-- end-user-doc --> | ||
222 | * @return the new adapter. | ||
223 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration | ||
224 | * @generated | ||
225 | */ | ||
226 | public Adapter createEventDeclarationAdapter() { | ||
227 | return null; | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition <em>And Gate Definition</em>}'. | ||
232 | * <!-- begin-user-doc --> | ||
233 | * This default implementation returns null so that we can easily ignore cases; | ||
234 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
235 | * <!-- end-user-doc --> | ||
236 | * @return the new adapter. | ||
237 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition | ||
238 | * @generated | ||
239 | */ | ||
240 | public Adapter createAndGateDefinitionAdapter() { | ||
241 | return null; | ||
242 | } | ||
243 | |||
244 | /** | ||
245 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition <em>Or Gate Definition</em>}'. | ||
246 | * <!-- begin-user-doc --> | ||
247 | * This default implementation returns null so that we can easily ignore cases; | ||
248 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
249 | * <!-- end-user-doc --> | ||
250 | * @return the new adapter. | ||
251 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition | ||
252 | * @generated | ||
253 | */ | ||
254 | public Adapter createOrGateDefinitionAdapter() { | ||
255 | return null; | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition <em>KOf MGate Definition</em>}'. | ||
260 | * <!-- begin-user-doc --> | ||
261 | * This default implementation returns null so that we can easily ignore cases; | ||
262 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
263 | * <!-- end-user-doc --> | ||
264 | * @return the new adapter. | ||
265 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition | ||
266 | * @generated | ||
267 | */ | ||
268 | public Adapter createKOfMGateDefinitionAdapter() { | ||
269 | return null; | ||
270 | } | ||
271 | |||
272 | /** | ||
273 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree <em>Component Fault Tree</em>}'. | ||
274 | * <!-- begin-user-doc --> | ||
275 | * This default implementation returns null so that we can easily ignore cases; | ||
276 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
277 | * <!-- end-user-doc --> | ||
278 | * @return the new adapter. | ||
279 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentFaultTree | ||
280 | * @generated | ||
281 | */ | ||
282 | public Adapter createComponentFaultTreeAdapter() { | ||
283 | return null; | ||
284 | } | ||
285 | |||
286 | /** | ||
287 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component <em>Component</em>}'. | ||
288 | * <!-- begin-user-doc --> | ||
289 | * This default implementation returns null so that we can easily ignore cases; | ||
290 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
291 | * <!-- end-user-doc --> | ||
292 | * @return the new adapter. | ||
293 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component | ||
294 | * @generated | ||
295 | */ | ||
296 | public Adapter createComponentAdapter() { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input <em>Input</em>}'. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * This default implementation returns null so that we can easily ignore cases; | ||
304 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
305 | * <!-- end-user-doc --> | ||
306 | * @return the new adapter. | ||
307 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input | ||
308 | * @generated | ||
309 | */ | ||
310 | public Adapter createInputAdapter() { | ||
311 | return null; | ||
312 | } | ||
313 | |||
314 | /** | ||
315 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output <em>Output</em>}'. | ||
316 | * <!-- begin-user-doc --> | ||
317 | * This default implementation returns null so that we can easily ignore cases; | ||
318 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
319 | * <!-- end-user-doc --> | ||
320 | * @return the new adapter. | ||
321 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output | ||
322 | * @generated | ||
323 | */ | ||
324 | public Adapter createOutputAdapter() { | ||
325 | return null; | ||
326 | } | ||
327 | |||
328 | /** | ||
329 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection <em>Connection</em>}'. | ||
330 | * <!-- begin-user-doc --> | ||
331 | * This default implementation returns null so that we can easily ignore cases; | ||
332 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
333 | * <!-- end-user-doc --> | ||
334 | * @return the new adapter. | ||
335 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection | ||
336 | * @generated | ||
337 | */ | ||
338 | public Adapter createConnectionAdapter() { | ||
339 | return null; | ||
340 | } | ||
341 | |||
342 | /** | ||
343 | * Creates a new adapter for the default case. | ||
344 | * <!-- begin-user-doc --> | ||
345 | * This default implementation returns null. | ||
346 | * <!-- end-user-doc --> | ||
347 | * @return the new adapter. | ||
348 | * @generated | ||
349 | */ | ||
350 | public Adapter createEObjectAdapter() { | ||
351 | return null; | ||
352 | } | ||
353 | |||
354 | } //CftAdapterFactory | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java new file mode 100644 index 00000000..f2ec9ffb --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java | |||
@@ -0,0 +1,398 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.util; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.*; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | |||
10 | import org.eclipse.emf.ecore.util.Switch; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
15 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
16 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
17 | * starting with the actual class of the object | ||
18 | * and proceeding up the inheritance hierarchy | ||
19 | * until a non-null result is returned, | ||
20 | * which is the result of the switch. | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage | ||
23 | * @generated | ||
24 | */ | ||
25 | public class CftSwitch<T> extends Switch<T> { | ||
26 | /** | ||
27 | * The cached model package | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | protected static CftPackage modelPackage; | ||
33 | |||
34 | /** | ||
35 | * Creates an instance of the switch. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public CftSwitch() { | ||
41 | if (modelPackage == null) { | ||
42 | modelPackage = CftPackage.eINSTANCE; | ||
43 | } | ||
44 | } | ||
45 | |||
46 | /** | ||
47 | * Checks whether this is a switch for the given package. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @param ePackage the package in question. | ||
51 | * @return whether this is a switch for the given package. | ||
52 | * @generated | ||
53 | */ | ||
54 | @Override | ||
55 | protected boolean isSwitchFor(EPackage ePackage) { | ||
56 | return ePackage == modelPackage; | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected T doSwitch(int classifierID, EObject theEObject) { | ||
68 | switch (classifierID) { | ||
69 | case CftPackage.COMPONENT_DEFINITION: { | ||
70 | ComponentDefinition componentDefinition = (ComponentDefinition)theEObject; | ||
71 | T result = caseComponentDefinition(componentDefinition); | ||
72 | if (result == null) result = defaultCase(theEObject); | ||
73 | return result; | ||
74 | } | ||
75 | case CftPackage.EVENT_DEFINITION: { | ||
76 | EventDefinition eventDefinition = (EventDefinition)theEObject; | ||
77 | T result = caseEventDefinition(eventDefinition); | ||
78 | if (result == null) result = caseEventDeclaration(eventDefinition); | ||
79 | if (result == null) result = defaultCase(theEObject); | ||
80 | return result; | ||
81 | } | ||
82 | case CftPackage.GATE_DEFINITION: { | ||
83 | GateDefinition gateDefinition = (GateDefinition)theEObject; | ||
84 | T result = caseGateDefinition(gateDefinition); | ||
85 | if (result == null) result = caseEventDefinition(gateDefinition); | ||
86 | if (result == null) result = caseEventDeclaration(gateDefinition); | ||
87 | if (result == null) result = defaultCase(theEObject); | ||
88 | return result; | ||
89 | } | ||
90 | case CftPackage.BASIC_EVENT_DEFINITION: { | ||
91 | BasicEventDefinition basicEventDefinition = (BasicEventDefinition)theEObject; | ||
92 | T result = caseBasicEventDefinition(basicEventDefinition); | ||
93 | if (result == null) result = caseEventDefinition(basicEventDefinition); | ||
94 | if (result == null) result = caseEventDeclaration(basicEventDefinition); | ||
95 | if (result == null) result = defaultCase(theEObject); | ||
96 | return result; | ||
97 | } | ||
98 | case CftPackage.INTPUT_EVENT: { | ||
99 | IntputEvent intputEvent = (IntputEvent)theEObject; | ||
100 | T result = caseIntputEvent(intputEvent); | ||
101 | if (result == null) result = caseEventDeclaration(intputEvent); | ||
102 | if (result == null) result = defaultCase(theEObject); | ||
103 | return result; | ||
104 | } | ||
105 | case CftPackage.EVENT_DECLARATION: { | ||
106 | EventDeclaration eventDeclaration = (EventDeclaration)theEObject; | ||
107 | T result = caseEventDeclaration(eventDeclaration); | ||
108 | if (result == null) result = defaultCase(theEObject); | ||
109 | return result; | ||
110 | } | ||
111 | case CftPackage.AND_GATE_DEFINITION: { | ||
112 | AndGateDefinition andGateDefinition = (AndGateDefinition)theEObject; | ||
113 | T result = caseAndGateDefinition(andGateDefinition); | ||
114 | if (result == null) result = caseGateDefinition(andGateDefinition); | ||
115 | if (result == null) result = caseEventDefinition(andGateDefinition); | ||
116 | if (result == null) result = caseEventDeclaration(andGateDefinition); | ||
117 | if (result == null) result = defaultCase(theEObject); | ||
118 | return result; | ||
119 | } | ||
120 | case CftPackage.OR_GATE_DEFINITION: { | ||
121 | OrGateDefinition orGateDefinition = (OrGateDefinition)theEObject; | ||
122 | T result = caseOrGateDefinition(orGateDefinition); | ||
123 | if (result == null) result = caseGateDefinition(orGateDefinition); | ||
124 | if (result == null) result = caseEventDefinition(orGateDefinition); | ||
125 | if (result == null) result = caseEventDeclaration(orGateDefinition); | ||
126 | if (result == null) result = defaultCase(theEObject); | ||
127 | return result; | ||
128 | } | ||
129 | case CftPackage.KOF_MGATE_DEFINITION: { | ||
130 | KOfMGateDefinition kOfMGateDefinition = (KOfMGateDefinition)theEObject; | ||
131 | T result = caseKOfMGateDefinition(kOfMGateDefinition); | ||
132 | if (result == null) result = caseGateDefinition(kOfMGateDefinition); | ||
133 | if (result == null) result = caseEventDefinition(kOfMGateDefinition); | ||
134 | if (result == null) result = caseEventDeclaration(kOfMGateDefinition); | ||
135 | if (result == null) result = defaultCase(theEObject); | ||
136 | return result; | ||
137 | } | ||
138 | case CftPackage.COMPONENT_FAULT_TREE: { | ||
139 | ComponentFaultTree componentFaultTree = (ComponentFaultTree)theEObject; | ||
140 | T result = caseComponentFaultTree(componentFaultTree); | ||
141 | if (result == null) result = defaultCase(theEObject); | ||
142 | return result; | ||
143 | } | ||
144 | case CftPackage.COMPONENT: { | ||
145 | Component component = (Component)theEObject; | ||
146 | T result = caseComponent(component); | ||
147 | if (result == null) result = defaultCase(theEObject); | ||
148 | return result; | ||
149 | } | ||
150 | case CftPackage.INPUT: { | ||
151 | Input input = (Input)theEObject; | ||
152 | T result = caseInput(input); | ||
153 | if (result == null) result = defaultCase(theEObject); | ||
154 | return result; | ||
155 | } | ||
156 | case CftPackage.OUTPUT: { | ||
157 | Output output = (Output)theEObject; | ||
158 | T result = caseOutput(output); | ||
159 | if (result == null) result = defaultCase(theEObject); | ||
160 | return result; | ||
161 | } | ||
162 | case CftPackage.CONNECTION: { | ||
163 | Connection connection = (Connection)theEObject; | ||
164 | T result = caseConnection(connection); | ||
165 | if (result == null) result = defaultCase(theEObject); | ||
166 | return result; | ||
167 | } | ||
168 | default: return defaultCase(theEObject); | ||
169 | } | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * Returns the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
174 | * <!-- begin-user-doc --> | ||
175 | * This implementation returns null; | ||
176 | * returning a non-null result will terminate the switch. | ||
177 | * <!-- end-user-doc --> | ||
178 | * @param object the target of the switch. | ||
179 | * @return the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
180 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
181 | * @generated | ||
182 | */ | ||
183 | public T caseComponentDefinition(ComponentDefinition object) { | ||
184 | return null; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * Returns the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
189 | * <!-- begin-user-doc --> | ||
190 | * This implementation returns null; | ||
191 | * returning a non-null result will terminate the switch. | ||
192 | * <!-- end-user-doc --> | ||
193 | * @param object the target of the switch. | ||
194 | * @return the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
195 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
196 | * @generated | ||
197 | */ | ||
198 | public T caseEventDefinition(EventDefinition object) { | ||
199 | return null; | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * Returns the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
204 | * <!-- begin-user-doc --> | ||
205 | * This implementation returns null; | ||
206 | * returning a non-null result will terminate the switch. | ||
207 | * <!-- end-user-doc --> | ||
208 | * @param object the target of the switch. | ||
209 | * @return the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
210 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
211 | * @generated | ||
212 | */ | ||
213 | public T caseGateDefinition(GateDefinition object) { | ||
214 | return null; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * Returns the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * This implementation returns null; | ||
221 | * returning a non-null result will terminate the switch. | ||
222 | * <!-- end-user-doc --> | ||
223 | * @param object the target of the switch. | ||
224 | * @return the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
225 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
226 | * @generated | ||
227 | */ | ||
228 | public T caseBasicEventDefinition(BasicEventDefinition object) { | ||
229 | return null; | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * Returns the result of interpreting the object as an instance of '<em>Intput Event</em>'. | ||
234 | * <!-- begin-user-doc --> | ||
235 | * This implementation returns null; | ||
236 | * returning a non-null result will terminate the switch. | ||
237 | * <!-- end-user-doc --> | ||
238 | * @param object the target of the switch. | ||
239 | * @return the result of interpreting the object as an instance of '<em>Intput Event</em>'. | ||
240 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
241 | * @generated | ||
242 | */ | ||
243 | public T caseIntputEvent(IntputEvent object) { | ||
244 | return null; | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * Returns the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
249 | * <!-- begin-user-doc --> | ||
250 | * This implementation returns null; | ||
251 | * returning a non-null result will terminate the switch. | ||
252 | * <!-- end-user-doc --> | ||
253 | * @param object the target of the switch. | ||
254 | * @return the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
255 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
256 | * @generated | ||
257 | */ | ||
258 | public T caseEventDeclaration(EventDeclaration object) { | ||
259 | return null; | ||
260 | } | ||
261 | |||
262 | /** | ||
263 | * Returns the result of interpreting the object as an instance of '<em>And Gate Definition</em>'. | ||
264 | * <!-- begin-user-doc --> | ||
265 | * This implementation returns null; | ||
266 | * returning a non-null result will terminate the switch. | ||
267 | * <!-- end-user-doc --> | ||
268 | * @param object the target of the switch. | ||
269 | * @return the result of interpreting the object as an instance of '<em>And Gate Definition</em>'. | ||
270 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
271 | * @generated | ||
272 | */ | ||
273 | public T caseAndGateDefinition(AndGateDefinition object) { | ||
274 | return null; | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * Returns the result of interpreting the object as an instance of '<em>Or Gate Definition</em>'. | ||
279 | * <!-- begin-user-doc --> | ||
280 | * This implementation returns null; | ||
281 | * returning a non-null result will terminate the switch. | ||
282 | * <!-- end-user-doc --> | ||
283 | * @param object the target of the switch. | ||
284 | * @return the result of interpreting the object as an instance of '<em>Or Gate Definition</em>'. | ||
285 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
286 | * @generated | ||
287 | */ | ||
288 | public T caseOrGateDefinition(OrGateDefinition object) { | ||
289 | return null; | ||
290 | } | ||
291 | |||
292 | /** | ||
293 | * Returns the result of interpreting the object as an instance of '<em>KOf MGate Definition</em>'. | ||
294 | * <!-- begin-user-doc --> | ||
295 | * This implementation returns null; | ||
296 | * returning a non-null result will terminate the switch. | ||
297 | * <!-- end-user-doc --> | ||
298 | * @param object the target of the switch. | ||
299 | * @return the result of interpreting the object as an instance of '<em>KOf MGate Definition</em>'. | ||
300 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
301 | * @generated | ||
302 | */ | ||
303 | public T caseKOfMGateDefinition(KOfMGateDefinition object) { | ||
304 | return null; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * Returns the result of interpreting the object as an instance of '<em>Component Fault Tree</em>'. | ||
309 | * <!-- begin-user-doc --> | ||
310 | * This implementation returns null; | ||
311 | * returning a non-null result will terminate the switch. | ||
312 | * <!-- end-user-doc --> | ||
313 | * @param object the target of the switch. | ||
314 | * @return the result of interpreting the object as an instance of '<em>Component Fault Tree</em>'. | ||
315 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
316 | * @generated | ||
317 | */ | ||
318 | public T caseComponentFaultTree(ComponentFaultTree object) { | ||
319 | return null; | ||
320 | } | ||
321 | |||
322 | /** | ||
323 | * Returns the result of interpreting the object as an instance of '<em>Component</em>'. | ||
324 | * <!-- begin-user-doc --> | ||
325 | * This implementation returns null; | ||
326 | * returning a non-null result will terminate the switch. | ||
327 | * <!-- end-user-doc --> | ||
328 | * @param object the target of the switch. | ||
329 | * @return the result of interpreting the object as an instance of '<em>Component</em>'. | ||
330 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
331 | * @generated | ||
332 | */ | ||
333 | public T caseComponent(Component object) { | ||
334 | return null; | ||
335 | } | ||
336 | |||
337 | /** | ||
338 | * Returns the result of interpreting the object as an instance of '<em>Input</em>'. | ||
339 | * <!-- begin-user-doc --> | ||
340 | * This implementation returns null; | ||
341 | * returning a non-null result will terminate the switch. | ||
342 | * <!-- end-user-doc --> | ||
343 | * @param object the target of the switch. | ||
344 | * @return the result of interpreting the object as an instance of '<em>Input</em>'. | ||
345 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
346 | * @generated | ||
347 | */ | ||
348 | public T caseInput(Input object) { | ||
349 | return null; | ||
350 | } | ||
351 | |||
352 | /** | ||
353 | * Returns the result of interpreting the object as an instance of '<em>Output</em>'. | ||
354 | * <!-- begin-user-doc --> | ||
355 | * This implementation returns null; | ||
356 | * returning a non-null result will terminate the switch. | ||
357 | * <!-- end-user-doc --> | ||
358 | * @param object the target of the switch. | ||
359 | * @return the result of interpreting the object as an instance of '<em>Output</em>'. | ||
360 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
361 | * @generated | ||
362 | */ | ||
363 | public T caseOutput(Output object) { | ||
364 | return null; | ||
365 | } | ||
366 | |||
367 | /** | ||
368 | * Returns the result of interpreting the object as an instance of '<em>Connection</em>'. | ||
369 | * <!-- begin-user-doc --> | ||
370 | * This implementation returns null; | ||
371 | * returning a non-null result will terminate the switch. | ||
372 | * <!-- end-user-doc --> | ||
373 | * @param object the target of the switch. | ||
374 | * @return the result of interpreting the object as an instance of '<em>Connection</em>'. | ||
375 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
376 | * @generated | ||
377 | */ | ||
378 | public T caseConnection(Connection object) { | ||
379 | return null; | ||
380 | } | ||
381 | |||
382 | /** | ||
383 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
384 | * <!-- begin-user-doc --> | ||
385 | * This implementation returns null; | ||
386 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
387 | * <!-- end-user-doc --> | ||
388 | * @param object the target of the switch. | ||
389 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
390 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
391 | * @generated | ||
392 | */ | ||
393 | @Override | ||
394 | public T defaultCase(EObject object) { | ||
395 | return null; | ||
396 | } | ||
397 | |||
398 | } //CftSwitch | ||