diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl')
12 files changed, 0 insertions, 3498 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java deleted file mode 100644 index 0b37cdbb..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java +++ /dev/null | |||
@@ -1,343 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
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 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Assignment</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl#getInput <em>Input</em>}</li> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl#isMultiple <em>Multiple</em>}</li> | ||
29 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl#getOutput <em>Output</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class AssignmentImpl extends MinimalEObjectImpl.Container implements Assignment | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getInput() <em>Input</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getInput() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected EventReference input; | ||
45 | |||
46 | /** | ||
47 | * The default value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #isMultiple() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final boolean MULTIPLE_EDEFAULT = false; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #isMultiple() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected boolean multiple = MULTIPLE_EDEFAULT; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getOutput() <em>Output</em>}' containment reference. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getOutput() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected EventReference output; | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | protected AssignmentImpl() | ||
82 | { | ||
83 | super(); | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | protected EClass eStaticClass() | ||
93 | { | ||
94 | return CftLanguagePackage.Literals.ASSIGNMENT; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public EventReference getInput() | ||
104 | { | ||
105 | return input; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | public NotificationChain basicSetInput(EventReference newInput, NotificationChain msgs) | ||
114 | { | ||
115 | EventReference oldInput = input; | ||
116 | input = newInput; | ||
117 | if (eNotificationRequired()) | ||
118 | { | ||
119 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__INPUT, oldInput, newInput); | ||
120 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
121 | } | ||
122 | return msgs; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setInput(EventReference newInput) | ||
132 | { | ||
133 | if (newInput != input) | ||
134 | { | ||
135 | NotificationChain msgs = null; | ||
136 | if (input != null) | ||
137 | msgs = ((InternalEObject)input).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__INPUT, null, msgs); | ||
138 | if (newInput != null) | ||
139 | msgs = ((InternalEObject)newInput).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__INPUT, null, msgs); | ||
140 | msgs = basicSetInput(newInput, msgs); | ||
141 | if (msgs != null) msgs.dispatch(); | ||
142 | } | ||
143 | else if (eNotificationRequired()) | ||
144 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__INPUT, newInput, newInput)); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean isMultiple() | ||
154 | { | ||
155 | return multiple; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public void setMultiple(boolean newMultiple) | ||
165 | { | ||
166 | boolean oldMultiple = multiple; | ||
167 | multiple = newMultiple; | ||
168 | if (eNotificationRequired()) | ||
169 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__MULTIPLE, oldMultiple, multiple)); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public EventReference getOutput() | ||
179 | { | ||
180 | return output; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | public NotificationChain basicSetOutput(EventReference newOutput, NotificationChain msgs) | ||
189 | { | ||
190 | EventReference oldOutput = output; | ||
191 | output = newOutput; | ||
192 | if (eNotificationRequired()) | ||
193 | { | ||
194 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__OUTPUT, oldOutput, newOutput); | ||
195 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
196 | } | ||
197 | return msgs; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public void setOutput(EventReference newOutput) | ||
207 | { | ||
208 | if (newOutput != output) | ||
209 | { | ||
210 | NotificationChain msgs = null; | ||
211 | if (output != null) | ||
212 | msgs = ((InternalEObject)output).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__OUTPUT, null, msgs); | ||
213 | if (newOutput != null) | ||
214 | msgs = ((InternalEObject)newOutput).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__OUTPUT, null, msgs); | ||
215 | msgs = basicSetOutput(newOutput, msgs); | ||
216 | if (msgs != null) msgs.dispatch(); | ||
217 | } | ||
218 | else if (eNotificationRequired()) | ||
219 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__OUTPUT, newOutput, newOutput)); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
229 | { | ||
230 | switch (featureID) | ||
231 | { | ||
232 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
233 | return basicSetInput(null, msgs); | ||
234 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
235 | return basicSetOutput(null, msgs); | ||
236 | } | ||
237 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
247 | { | ||
248 | switch (featureID) | ||
249 | { | ||
250 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
251 | return getInput(); | ||
252 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
253 | return isMultiple(); | ||
254 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
255 | return getOutput(); | ||
256 | } | ||
257 | return super.eGet(featureID, resolve, coreType); | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public void eSet(int featureID, Object newValue) | ||
267 | { | ||
268 | switch (featureID) | ||
269 | { | ||
270 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
271 | setInput((EventReference)newValue); | ||
272 | return; | ||
273 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
274 | setMultiple((Boolean)newValue); | ||
275 | return; | ||
276 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
277 | setOutput((EventReference)newValue); | ||
278 | return; | ||
279 | } | ||
280 | super.eSet(featureID, newValue); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public void eUnset(int featureID) | ||
290 | { | ||
291 | switch (featureID) | ||
292 | { | ||
293 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
294 | setInput((EventReference)null); | ||
295 | return; | ||
296 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
297 | setMultiple(MULTIPLE_EDEFAULT); | ||
298 | return; | ||
299 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
300 | setOutput((EventReference)null); | ||
301 | return; | ||
302 | } | ||
303 | super.eUnset(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public boolean eIsSet(int featureID) | ||
313 | { | ||
314 | switch (featureID) | ||
315 | { | ||
316 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
317 | return input != null; | ||
318 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
319 | return multiple != MULTIPLE_EDEFAULT; | ||
320 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
321 | return output != null; | ||
322 | } | ||
323 | return super.eIsSet(featureID); | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | */ | ||
331 | @Override | ||
332 | public String toString() | ||
333 | { | ||
334 | if (eIsProxy()) return super.toString(); | ||
335 | |||
336 | StringBuilder result = new StringBuilder(super.toString()); | ||
337 | result.append(" (multiple: "); | ||
338 | result.append(multiple); | ||
339 | result.append(')'); | ||
340 | return result.toString(); | ||
341 | } | ||
342 | |||
343 | } //AssignmentImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java deleted file mode 100644 index db604384..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java +++ /dev/null | |||
@@ -1,226 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.EObject; | ||
10 | import org.eclipse.emf.ecore.EPackage; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
13 | |||
14 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model <b>Factory</b>. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | public class CftLanguageFactoryImpl extends EFactoryImpl implements CftLanguageFactory | ||
23 | { | ||
24 | /** | ||
25 | * Creates the default factory implementation. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @generated | ||
29 | */ | ||
30 | public static CftLanguageFactory init() | ||
31 | { | ||
32 | try | ||
33 | { | ||
34 | CftLanguageFactory theCftLanguageFactory = (CftLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(CftLanguagePackage.eNS_URI); | ||
35 | if (theCftLanguageFactory != null) | ||
36 | { | ||
37 | return theCftLanguageFactory; | ||
38 | } | ||
39 | } | ||
40 | catch (Exception exception) | ||
41 | { | ||
42 | EcorePlugin.INSTANCE.log(exception); | ||
43 | } | ||
44 | return new CftLanguageFactoryImpl(); | ||
45 | } | ||
46 | |||
47 | /** | ||
48 | * Creates an instance of the factory. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | public CftLanguageFactoryImpl() | ||
54 | { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | public EObject create(EClass eClass) | ||
65 | { | ||
66 | switch (eClass.getClassifierID()) | ||
67 | { | ||
68 | case CftLanguagePackage.CFT_MODEL: return createCftModel(); | ||
69 | case CftLanguagePackage.IMPORT_DECLARATION: return createImportDeclaration(); | ||
70 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: return createTransformationDefinition(); | ||
71 | case CftLanguagePackage.MAPPING_DEFINITION: return createMappingDefinition(); | ||
72 | case CftLanguagePackage.MAPPING_PARAMETER: return createMappingParameter(); | ||
73 | case CftLanguagePackage.LOOKUP_DEFINITION: return createLookupDefinition(); | ||
74 | case CftLanguagePackage.VARIABLE: return createVariable(); | ||
75 | case CftLanguagePackage.ASSIGNMENT: return createAssignment(); | ||
76 | case CftLanguagePackage.EVENT_REFERENCE: return createEventReference(); | ||
77 | case CftLanguagePackage.COMPONENT_INSTANCE: return createComponentInstance(); | ||
78 | default: | ||
79 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
80 | } | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public CftModel createCftModel() | ||
90 | { | ||
91 | CftModelImpl cftModel = new CftModelImpl(); | ||
92 | return cftModel; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public ImportDeclaration createImportDeclaration() | ||
102 | { | ||
103 | ImportDeclarationImpl importDeclaration = new ImportDeclarationImpl(); | ||
104 | return importDeclaration; | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | public TransformationDefinition createTransformationDefinition() | ||
114 | { | ||
115 | TransformationDefinitionImpl transformationDefinition = new TransformationDefinitionImpl(); | ||
116 | return transformationDefinition; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public MappingDefinition createMappingDefinition() | ||
126 | { | ||
127 | MappingDefinitionImpl mappingDefinition = new MappingDefinitionImpl(); | ||
128 | return mappingDefinition; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public MappingParameter createMappingParameter() | ||
138 | { | ||
139 | MappingParameterImpl mappingParameter = new MappingParameterImpl(); | ||
140 | return mappingParameter; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public LookupDefinition createLookupDefinition() | ||
150 | { | ||
151 | LookupDefinitionImpl lookupDefinition = new LookupDefinitionImpl(); | ||
152 | return lookupDefinition; | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public Variable createVariable() | ||
162 | { | ||
163 | VariableImpl variable = new VariableImpl(); | ||
164 | return variable; | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Assignment createAssignment() | ||
174 | { | ||
175 | AssignmentImpl assignment = new AssignmentImpl(); | ||
176 | return assignment; | ||
177 | } | ||
178 | |||
179 | /** | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @generated | ||
183 | */ | ||
184 | @Override | ||
185 | public EventReference createEventReference() | ||
186 | { | ||
187 | EventReferenceImpl eventReference = new EventReferenceImpl(); | ||
188 | return eventReference; | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | */ | ||
196 | @Override | ||
197 | public ComponentInstance createComponentInstance() | ||
198 | { | ||
199 | ComponentInstanceImpl componentInstance = new ComponentInstanceImpl(); | ||
200 | return componentInstance; | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public CftLanguagePackage getCftLanguagePackage() | ||
210 | { | ||
211 | return (CftLanguagePackage)getEPackage(); | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @deprecated | ||
218 | * @generated | ||
219 | */ | ||
220 | @Deprecated | ||
221 | public static CftLanguagePackage getPackage() | ||
222 | { | ||
223 | return CftLanguagePackage.eINSTANCE; | ||
224 | } | ||
225 | |||
226 | } //CftLanguageFactoryImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java deleted file mode 100644 index d4e06dde..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java +++ /dev/null | |||
@@ -1,712 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguageFactory; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
18 | |||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
20 | |||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
22 | |||
23 | import org.eclipse.emf.ecore.EAttribute; | ||
24 | import org.eclipse.emf.ecore.EClass; | ||
25 | import org.eclipse.emf.ecore.EPackage; | ||
26 | import org.eclipse.emf.ecore.EReference; | ||
27 | import org.eclipse.emf.ecore.EcorePackage; | ||
28 | |||
29 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
30 | |||
31 | import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternLanguagePackage; | ||
32 | |||
33 | import org.eclipse.xtext.common.types.TypesPackage; | ||
34 | |||
35 | import org.eclipse.xtext.xbase.XbasePackage; | ||
36 | |||
37 | import org.eclipse.xtext.xtype.XtypePackage; | ||
38 | |||
39 | /** | ||
40 | * <!-- begin-user-doc --> | ||
41 | * An implementation of the model <b>Package</b>. | ||
42 | * <!-- end-user-doc --> | ||
43 | * @generated | ||
44 | */ | ||
45 | public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguagePackage | ||
46 | { | ||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | private EClass cftModelEClass = null; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | private EClass importDeclarationEClass = null; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | private EClass transformationDefinitionEClass = null; | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | private EClass mappingDefinitionEClass = null; | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | private EClass mappingParameterEClass = null; | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | private EClass lookupDefinitionEClass = null; | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | private EClass variableEClass = null; | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | private EClass assignmentEClass = null; | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | private EClass eventReferenceEClass = null; | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | private EClass componentInstanceEClass = null; | ||
116 | |||
117 | /** | ||
118 | * Creates an instance of the model <b>Package</b>, registered with | ||
119 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
120 | * package URI value. | ||
121 | * <p>Note: the correct way to create the package is via the static | ||
122 | * factory method {@link #init init()}, which also performs | ||
123 | * initialization of the package, or returns the registered package, | ||
124 | * if one already exists. | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
128 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#eNS_URI | ||
129 | * @see #init() | ||
130 | * @generated | ||
131 | */ | ||
132 | private CftLanguagePackageImpl() | ||
133 | { | ||
134 | super(eNS_URI, CftLanguageFactory.eINSTANCE); | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | private static boolean isInited = false; | ||
143 | |||
144 | /** | ||
145 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
146 | * | ||
147 | * <p>This method is used to initialize {@link CftLanguagePackage#eINSTANCE} when that field is accessed. | ||
148 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @see #eNS_URI | ||
152 | * @see #createPackageContents() | ||
153 | * @see #initializePackageContents() | ||
154 | * @generated | ||
155 | */ | ||
156 | public static CftLanguagePackage init() | ||
157 | { | ||
158 | if (isInited) return (CftLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(CftLanguagePackage.eNS_URI); | ||
159 | |||
160 | // Obtain or create and register package | ||
161 | Object registeredCftLanguagePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
162 | CftLanguagePackageImpl theCftLanguagePackage = registeredCftLanguagePackage instanceof CftLanguagePackageImpl ? (CftLanguagePackageImpl)registeredCftLanguagePackage : new CftLanguagePackageImpl(); | ||
163 | |||
164 | isInited = true; | ||
165 | |||
166 | // Initialize simple dependencies | ||
167 | CftPackage.eINSTANCE.eClass(); | ||
168 | EcorePackage.eINSTANCE.eClass(); | ||
169 | PatternLanguagePackage.eINSTANCE.eClass(); | ||
170 | FtPackage.eINSTANCE.eClass(); | ||
171 | XtypePackage.eINSTANCE.eClass(); | ||
172 | TypesPackage.eINSTANCE.eClass(); | ||
173 | XbasePackage.eINSTANCE.eClass(); | ||
174 | |||
175 | // Create package meta-data objects | ||
176 | theCftLanguagePackage.createPackageContents(); | ||
177 | |||
178 | // Initialize created meta-data | ||
179 | theCftLanguagePackage.initializePackageContents(); | ||
180 | |||
181 | // Mark meta-data to indicate it can't be changed | ||
182 | theCftLanguagePackage.freeze(); | ||
183 | |||
184 | // Update the registry and return the package | ||
185 | EPackage.Registry.INSTANCE.put(CftLanguagePackage.eNS_URI, theCftLanguagePackage); | ||
186 | return theCftLanguagePackage; | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public EClass getCftModel() | ||
196 | { | ||
197 | return cftModelEClass; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public EAttribute getCftModel_PackageName() | ||
207 | { | ||
208 | return (EAttribute)cftModelEClass.getEStructuralFeatures().get(0); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public EReference getCftModel_Imports() | ||
218 | { | ||
219 | return (EReference)cftModelEClass.getEStructuralFeatures().get(1); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public EReference getCftModel_ComponentDefinitions() | ||
229 | { | ||
230 | return (EReference)cftModelEClass.getEStructuralFeatures().get(2); | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * <!-- begin-user-doc --> | ||
235 | * <!-- end-user-doc --> | ||
236 | * @generated | ||
237 | */ | ||
238 | @Override | ||
239 | public EReference getCftModel_TransformationDefinitions() | ||
240 | { | ||
241 | return (EReference)cftModelEClass.getEStructuralFeatures().get(3); | ||
242 | } | ||
243 | |||
244 | /** | ||
245 | * <!-- begin-user-doc --> | ||
246 | * <!-- end-user-doc --> | ||
247 | * @generated | ||
248 | */ | ||
249 | @Override | ||
250 | public EClass getImportDeclaration() | ||
251 | { | ||
252 | return importDeclarationEClass; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public EAttribute getImportDeclaration_ImportedNamespace() | ||
262 | { | ||
263 | return (EAttribute)importDeclarationEClass.getEStructuralFeatures().get(0); | ||
264 | } | ||
265 | |||
266 | /** | ||
267 | * <!-- begin-user-doc --> | ||
268 | * <!-- end-user-doc --> | ||
269 | * @generated | ||
270 | */ | ||
271 | @Override | ||
272 | public EClass getTransformationDefinition() | ||
273 | { | ||
274 | return transformationDefinitionEClass; | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | @Override | ||
283 | public EAttribute getTransformationDefinition_Name() | ||
284 | { | ||
285 | return (EAttribute)transformationDefinitionEClass.getEStructuralFeatures().get(0); | ||
286 | } | ||
287 | |||
288 | /** | ||
289 | * <!-- begin-user-doc --> | ||
290 | * <!-- end-user-doc --> | ||
291 | * @generated | ||
292 | */ | ||
293 | @Override | ||
294 | public EReference getTransformationDefinition_MappingDefinitions() | ||
295 | { | ||
296 | return (EReference)transformationDefinitionEClass.getEStructuralFeatures().get(1); | ||
297 | } | ||
298 | |||
299 | /** | ||
300 | * <!-- begin-user-doc --> | ||
301 | * <!-- end-user-doc --> | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public EClass getMappingDefinition() | ||
306 | { | ||
307 | return mappingDefinitionEClass; | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | */ | ||
315 | @Override | ||
316 | public EAttribute getMappingDefinition_TopLevel() | ||
317 | { | ||
318 | return (EAttribute)mappingDefinitionEClass.getEStructuralFeatures().get(0); | ||
319 | } | ||
320 | |||
321 | /** | ||
322 | * <!-- begin-user-doc --> | ||
323 | * <!-- end-user-doc --> | ||
324 | * @generated | ||
325 | */ | ||
326 | @Override | ||
327 | public EReference getMappingDefinition_Pattern() | ||
328 | { | ||
329 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(1); | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * <!-- begin-user-doc --> | ||
334 | * <!-- end-user-doc --> | ||
335 | * @generated | ||
336 | */ | ||
337 | @Override | ||
338 | public EReference getMappingDefinition_Parameters() | ||
339 | { | ||
340 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(2); | ||
341 | } | ||
342 | |||
343 | /** | ||
344 | * <!-- begin-user-doc --> | ||
345 | * <!-- end-user-doc --> | ||
346 | * @generated | ||
347 | */ | ||
348 | @Override | ||
349 | public EReference getMappingDefinition_ComponentInstance() | ||
350 | { | ||
351 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(3); | ||
352 | } | ||
353 | |||
354 | /** | ||
355 | * <!-- begin-user-doc --> | ||
356 | * <!-- end-user-doc --> | ||
357 | * @generated | ||
358 | */ | ||
359 | @Override | ||
360 | public EReference getMappingDefinition_LookupDefinitions() | ||
361 | { | ||
362 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(4); | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | @Override | ||
371 | public EReference getMappingDefinition_Assignments() | ||
372 | { | ||
373 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(5); | ||
374 | } | ||
375 | |||
376 | /** | ||
377 | * <!-- begin-user-doc --> | ||
378 | * <!-- end-user-doc --> | ||
379 | * @generated | ||
380 | */ | ||
381 | @Override | ||
382 | public EClass getMappingParameter() | ||
383 | { | ||
384 | return mappingParameterEClass; | ||
385 | } | ||
386 | |||
387 | /** | ||
388 | * <!-- begin-user-doc --> | ||
389 | * <!-- end-user-doc --> | ||
390 | * @generated | ||
391 | */ | ||
392 | @Override | ||
393 | public EAttribute getMappingParameter_Name() | ||
394 | { | ||
395 | return (EAttribute)mappingParameterEClass.getEStructuralFeatures().get(0); | ||
396 | } | ||
397 | |||
398 | /** | ||
399 | * <!-- begin-user-doc --> | ||
400 | * <!-- end-user-doc --> | ||
401 | * @generated | ||
402 | */ | ||
403 | @Override | ||
404 | public EClass getLookupDefinition() | ||
405 | { | ||
406 | return lookupDefinitionEClass; | ||
407 | } | ||
408 | |||
409 | /** | ||
410 | * <!-- begin-user-doc --> | ||
411 | * <!-- end-user-doc --> | ||
412 | * @generated | ||
413 | */ | ||
414 | @Override | ||
415 | public EReference getLookupDefinition_Mapping() | ||
416 | { | ||
417 | return (EReference)lookupDefinitionEClass.getEStructuralFeatures().get(0); | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public EReference getLookupDefinition_Arguments() | ||
427 | { | ||
428 | return (EReference)lookupDefinitionEClass.getEStructuralFeatures().get(1); | ||
429 | } | ||
430 | |||
431 | /** | ||
432 | * <!-- begin-user-doc --> | ||
433 | * <!-- end-user-doc --> | ||
434 | * @generated | ||
435 | */ | ||
436 | @Override | ||
437 | public EClass getVariable() | ||
438 | { | ||
439 | return variableEClass; | ||
440 | } | ||
441 | |||
442 | /** | ||
443 | * <!-- begin-user-doc --> | ||
444 | * <!-- end-user-doc --> | ||
445 | * @generated | ||
446 | */ | ||
447 | @Override | ||
448 | public EAttribute getVariable_Name() | ||
449 | { | ||
450 | return (EAttribute)variableEClass.getEStructuralFeatures().get(0); | ||
451 | } | ||
452 | |||
453 | /** | ||
454 | * <!-- begin-user-doc --> | ||
455 | * <!-- end-user-doc --> | ||
456 | * @generated | ||
457 | */ | ||
458 | @Override | ||
459 | public EClass getAssignment() | ||
460 | { | ||
461 | return assignmentEClass; | ||
462 | } | ||
463 | |||
464 | /** | ||
465 | * <!-- begin-user-doc --> | ||
466 | * <!-- end-user-doc --> | ||
467 | * @generated | ||
468 | */ | ||
469 | @Override | ||
470 | public EReference getAssignment_Input() | ||
471 | { | ||
472 | return (EReference)assignmentEClass.getEStructuralFeatures().get(0); | ||
473 | } | ||
474 | |||
475 | /** | ||
476 | * <!-- begin-user-doc --> | ||
477 | * <!-- end-user-doc --> | ||
478 | * @generated | ||
479 | */ | ||
480 | @Override | ||
481 | public EAttribute getAssignment_Multiple() | ||
482 | { | ||
483 | return (EAttribute)assignmentEClass.getEStructuralFeatures().get(1); | ||
484 | } | ||
485 | |||
486 | /** | ||
487 | * <!-- begin-user-doc --> | ||
488 | * <!-- end-user-doc --> | ||
489 | * @generated | ||
490 | */ | ||
491 | @Override | ||
492 | public EReference getAssignment_Output() | ||
493 | { | ||
494 | return (EReference)assignmentEClass.getEStructuralFeatures().get(2); | ||
495 | } | ||
496 | |||
497 | /** | ||
498 | * <!-- begin-user-doc --> | ||
499 | * <!-- end-user-doc --> | ||
500 | * @generated | ||
501 | */ | ||
502 | @Override | ||
503 | public EClass getEventReference() | ||
504 | { | ||
505 | return eventReferenceEClass; | ||
506 | } | ||
507 | |||
508 | /** | ||
509 | * <!-- begin-user-doc --> | ||
510 | * <!-- end-user-doc --> | ||
511 | * @generated | ||
512 | */ | ||
513 | @Override | ||
514 | public EReference getEventReference_Component() | ||
515 | { | ||
516 | return (EReference)eventReferenceEClass.getEStructuralFeatures().get(0); | ||
517 | } | ||
518 | |||
519 | /** | ||
520 | * <!-- begin-user-doc --> | ||
521 | * <!-- end-user-doc --> | ||
522 | * @generated | ||
523 | */ | ||
524 | @Override | ||
525 | public EReference getEventReference_Event() | ||
526 | { | ||
527 | return (EReference)eventReferenceEClass.getEStructuralFeatures().get(1); | ||
528 | } | ||
529 | |||
530 | /** | ||
531 | * <!-- begin-user-doc --> | ||
532 | * <!-- end-user-doc --> | ||
533 | * @generated | ||
534 | */ | ||
535 | @Override | ||
536 | public EClass getComponentInstance() | ||
537 | { | ||
538 | return componentInstanceEClass; | ||
539 | } | ||
540 | |||
541 | /** | ||
542 | * <!-- begin-user-doc --> | ||
543 | * <!-- end-user-doc --> | ||
544 | * @generated | ||
545 | */ | ||
546 | @Override | ||
547 | public EReference getComponentInstance_ComponentType() | ||
548 | { | ||
549 | return (EReference)componentInstanceEClass.getEStructuralFeatures().get(0); | ||
550 | } | ||
551 | |||
552 | /** | ||
553 | * <!-- begin-user-doc --> | ||
554 | * <!-- end-user-doc --> | ||
555 | * @generated | ||
556 | */ | ||
557 | @Override | ||
558 | public CftLanguageFactory getCftLanguageFactory() | ||
559 | { | ||
560 | return (CftLanguageFactory)getEFactoryInstance(); | ||
561 | } | ||
562 | |||
563 | /** | ||
564 | * <!-- begin-user-doc --> | ||
565 | * <!-- end-user-doc --> | ||
566 | * @generated | ||
567 | */ | ||
568 | private boolean isCreated = false; | ||
569 | |||
570 | /** | ||
571 | * Creates the meta-model objects for the package. This method is | ||
572 | * guarded to have no affect on any invocation but its first. | ||
573 | * <!-- begin-user-doc --> | ||
574 | * <!-- end-user-doc --> | ||
575 | * @generated | ||
576 | */ | ||
577 | public void createPackageContents() | ||
578 | { | ||
579 | if (isCreated) return; | ||
580 | isCreated = true; | ||
581 | |||
582 | // Create classes and their features | ||
583 | cftModelEClass = createEClass(CFT_MODEL); | ||
584 | createEAttribute(cftModelEClass, CFT_MODEL__PACKAGE_NAME); | ||
585 | createEReference(cftModelEClass, CFT_MODEL__IMPORTS); | ||
586 | createEReference(cftModelEClass, CFT_MODEL__COMPONENT_DEFINITIONS); | ||
587 | createEReference(cftModelEClass, CFT_MODEL__TRANSFORMATION_DEFINITIONS); | ||
588 | |||
589 | importDeclarationEClass = createEClass(IMPORT_DECLARATION); | ||
590 | createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORTED_NAMESPACE); | ||
591 | |||
592 | transformationDefinitionEClass = createEClass(TRANSFORMATION_DEFINITION); | ||
593 | createEAttribute(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__NAME); | ||
594 | createEReference(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS); | ||
595 | |||
596 | mappingDefinitionEClass = createEClass(MAPPING_DEFINITION); | ||
597 | createEAttribute(mappingDefinitionEClass, MAPPING_DEFINITION__TOP_LEVEL); | ||
598 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__PATTERN); | ||
599 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__PARAMETERS); | ||
600 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__COMPONENT_INSTANCE); | ||
601 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__LOOKUP_DEFINITIONS); | ||
602 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__ASSIGNMENTS); | ||
603 | |||
604 | mappingParameterEClass = createEClass(MAPPING_PARAMETER); | ||
605 | createEAttribute(mappingParameterEClass, MAPPING_PARAMETER__NAME); | ||
606 | |||
607 | lookupDefinitionEClass = createEClass(LOOKUP_DEFINITION); | ||
608 | createEReference(lookupDefinitionEClass, LOOKUP_DEFINITION__MAPPING); | ||
609 | createEReference(lookupDefinitionEClass, LOOKUP_DEFINITION__ARGUMENTS); | ||
610 | |||
611 | variableEClass = createEClass(VARIABLE); | ||
612 | createEAttribute(variableEClass, VARIABLE__NAME); | ||
613 | |||
614 | assignmentEClass = createEClass(ASSIGNMENT); | ||
615 | createEReference(assignmentEClass, ASSIGNMENT__INPUT); | ||
616 | createEAttribute(assignmentEClass, ASSIGNMENT__MULTIPLE); | ||
617 | createEReference(assignmentEClass, ASSIGNMENT__OUTPUT); | ||
618 | |||
619 | eventReferenceEClass = createEClass(EVENT_REFERENCE); | ||
620 | createEReference(eventReferenceEClass, EVENT_REFERENCE__COMPONENT); | ||
621 | createEReference(eventReferenceEClass, EVENT_REFERENCE__EVENT); | ||
622 | |||
623 | componentInstanceEClass = createEClass(COMPONENT_INSTANCE); | ||
624 | createEReference(componentInstanceEClass, COMPONENT_INSTANCE__COMPONENT_TYPE); | ||
625 | } | ||
626 | |||
627 | /** | ||
628 | * <!-- begin-user-doc --> | ||
629 | * <!-- end-user-doc --> | ||
630 | * @generated | ||
631 | */ | ||
632 | private boolean isInitialized = false; | ||
633 | |||
634 | /** | ||
635 | * Complete the initialization of the package and its meta-model. This | ||
636 | * method is guarded to have no affect on any invocation but its first. | ||
637 | * <!-- begin-user-doc --> | ||
638 | * <!-- end-user-doc --> | ||
639 | * @generated | ||
640 | */ | ||
641 | public void initializePackageContents() | ||
642 | { | ||
643 | if (isInitialized) return; | ||
644 | isInitialized = true; | ||
645 | |||
646 | // Initialize package | ||
647 | setName(eNAME); | ||
648 | setNsPrefix(eNS_PREFIX); | ||
649 | setNsURI(eNS_URI); | ||
650 | |||
651 | // Obtain other dependent packages | ||
652 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); | ||
653 | CftPackage theCftPackage = (CftPackage)EPackage.Registry.INSTANCE.getEPackage(CftPackage.eNS_URI); | ||
654 | PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); | ||
655 | |||
656 | // Create type parameters | ||
657 | |||
658 | // Set bounds for type parameters | ||
659 | |||
660 | // Add supertypes to classes | ||
661 | lookupDefinitionEClass.getESuperTypes().add(this.getVariable()); | ||
662 | componentInstanceEClass.getESuperTypes().add(this.getVariable()); | ||
663 | |||
664 | // Initialize classes and features; add operations and parameters | ||
665 | initEClass(cftModelEClass, CftModel.class, "CftModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
666 | initEAttribute(getCftModel_PackageName(), theEcorePackage.getEString(), "packageName", null, 0, 1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
667 | initEReference(getCftModel_Imports(), this.getImportDeclaration(), null, "imports", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
668 | initEReference(getCftModel_ComponentDefinitions(), theCftPackage.getComponentDefinition(), null, "componentDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
669 | initEReference(getCftModel_TransformationDefinitions(), this.getTransformationDefinition(), null, "transformationDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
670 | |||
671 | initEClass(importDeclarationEClass, ImportDeclaration.class, "ImportDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
672 | initEAttribute(getImportDeclaration_ImportedNamespace(), theEcorePackage.getEString(), "importedNamespace", null, 0, 1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
673 | |||
674 | initEClass(transformationDefinitionEClass, TransformationDefinition.class, "TransformationDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
675 | initEAttribute(getTransformationDefinition_Name(), theEcorePackage.getEString(), "name", null, 0, 1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
676 | initEReference(getTransformationDefinition_MappingDefinitions(), this.getMappingDefinition(), null, "mappingDefinitions", null, 0, -1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
677 | |||
678 | initEClass(mappingDefinitionEClass, MappingDefinition.class, "MappingDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
679 | initEAttribute(getMappingDefinition_TopLevel(), theEcorePackage.getEBoolean(), "topLevel", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
680 | initEReference(getMappingDefinition_Pattern(), thePatternLanguagePackage.getPattern(), null, "pattern", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
681 | initEReference(getMappingDefinition_Parameters(), this.getMappingParameter(), null, "parameters", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
682 | initEReference(getMappingDefinition_ComponentInstance(), this.getComponentInstance(), null, "componentInstance", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
683 | initEReference(getMappingDefinition_LookupDefinitions(), this.getLookupDefinition(), null, "lookupDefinitions", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
684 | initEReference(getMappingDefinition_Assignments(), this.getAssignment(), null, "assignments", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
685 | |||
686 | initEClass(mappingParameterEClass, MappingParameter.class, "MappingParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
687 | initEAttribute(getMappingParameter_Name(), theEcorePackage.getEString(), "name", null, 0, 1, MappingParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
688 | |||
689 | initEClass(lookupDefinitionEClass, LookupDefinition.class, "LookupDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
690 | initEReference(getLookupDefinition_Mapping(), this.getMappingDefinition(), null, "mapping", null, 0, 1, LookupDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
691 | initEReference(getLookupDefinition_Arguments(), this.getMappingParameter(), null, "arguments", null, 0, -1, LookupDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
692 | |||
693 | initEClass(variableEClass, Variable.class, "Variable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
694 | initEAttribute(getVariable_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
695 | |||
696 | initEClass(assignmentEClass, Assignment.class, "Assignment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
697 | initEReference(getAssignment_Input(), this.getEventReference(), null, "input", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
698 | initEAttribute(getAssignment_Multiple(), theEcorePackage.getEBoolean(), "multiple", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
699 | initEReference(getAssignment_Output(), this.getEventReference(), null, "output", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
700 | |||
701 | initEClass(eventReferenceEClass, EventReference.class, "EventReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
702 | initEReference(getEventReference_Component(), this.getVariable(), null, "component", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
703 | initEReference(getEventReference_Event(), theCftPackage.getEventDeclaration(), null, "event", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
704 | |||
705 | initEClass(componentInstanceEClass, ComponentInstance.class, "ComponentInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
706 | initEReference(getComponentInstance_ComponentType(), theCftPackage.getComponentDefinition(), null, "componentType", null, 0, 1, ComponentInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
707 | |||
708 | // Create resource | ||
709 | createResource(eNS_URI); | ||
710 | } | ||
711 | |||
712 | } //CftLanguagePackageImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java deleted file mode 100644 index 1a5a8c16..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java +++ /dev/null | |||
@@ -1,325 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
10 | |||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
12 | |||
13 | import java.util.Collection; | ||
14 | |||
15 | import org.eclipse.emf.common.notify.Notification; | ||
16 | import org.eclipse.emf.common.notify.NotificationChain; | ||
17 | |||
18 | import org.eclipse.emf.common.util.EList; | ||
19 | |||
20 | import org.eclipse.emf.ecore.EClass; | ||
21 | import org.eclipse.emf.ecore.InternalEObject; | ||
22 | |||
23 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
24 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
25 | |||
26 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
27 | import org.eclipse.emf.ecore.util.InternalEList; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model object '<em><b>Cft Model</b></em>'. | ||
32 | * <!-- end-user-doc --> | ||
33 | * <p> | ||
34 | * The following features are implemented: | ||
35 | * </p> | ||
36 | * <ul> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getPackageName <em>Package Name</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getImports <em>Imports</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getComponentDefinitions <em>Component Definitions</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getTransformationDefinitions <em>Transformation Definitions</em>}</li> | ||
41 | * </ul> | ||
42 | * | ||
43 | * @generated | ||
44 | */ | ||
45 | public class CftModelImpl extends MinimalEObjectImpl.Container implements CftModel | ||
46 | { | ||
47 | /** | ||
48 | * The default value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getPackageName() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final String PACKAGE_NAME_EDEFAULT = null; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getPackageName() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected String packageName = PACKAGE_NAME_EDEFAULT; | ||
66 | |||
67 | /** | ||
68 | * The cached value of the '{@link #getImports() <em>Imports</em>}' containment reference list. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getImports() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected EList<ImportDeclaration> imports; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #getComponentDefinitions() <em>Component Definitions</em>}' containment reference list. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #getComponentDefinitions() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected EList<ComponentDefinition> componentDefinitions; | ||
86 | |||
87 | /** | ||
88 | * The cached value of the '{@link #getTransformationDefinitions() <em>Transformation Definitions</em>}' containment reference list. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getTransformationDefinitions() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected EList<TransformationDefinition> transformationDefinitions; | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | protected CftModelImpl() | ||
103 | { | ||
104 | super(); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | protected EClass eStaticClass() | ||
114 | { | ||
115 | return CftLanguagePackage.Literals.CFT_MODEL; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public String getPackageName() | ||
125 | { | ||
126 | return packageName; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void setPackageName(String newPackageName) | ||
136 | { | ||
137 | String oldPackageName = packageName; | ||
138 | packageName = newPackageName; | ||
139 | if (eNotificationRequired()) | ||
140 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.CFT_MODEL__PACKAGE_NAME, oldPackageName, packageName)); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public EList<ImportDeclaration> getImports() | ||
150 | { | ||
151 | if (imports == null) | ||
152 | { | ||
153 | imports = new EObjectContainmentEList<ImportDeclaration>(ImportDeclaration.class, this, CftLanguagePackage.CFT_MODEL__IMPORTS); | ||
154 | } | ||
155 | return imports; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public EList<ComponentDefinition> getComponentDefinitions() | ||
165 | { | ||
166 | if (componentDefinitions == null) | ||
167 | { | ||
168 | componentDefinitions = new EObjectContainmentEList<ComponentDefinition>(ComponentDefinition.class, this, CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS); | ||
169 | } | ||
170 | return componentDefinitions; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public EList<TransformationDefinition> getTransformationDefinitions() | ||
180 | { | ||
181 | if (transformationDefinitions == null) | ||
182 | { | ||
183 | transformationDefinitions = new EObjectContainmentEList<TransformationDefinition>(TransformationDefinition.class, this, CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS); | ||
184 | } | ||
185 | return transformationDefinitions; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
195 | { | ||
196 | switch (featureID) | ||
197 | { | ||
198 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
199 | return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs); | ||
200 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
201 | return ((InternalEList<?>)getComponentDefinitions()).basicRemove(otherEnd, msgs); | ||
202 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
203 | return ((InternalEList<?>)getTransformationDefinitions()).basicRemove(otherEnd, msgs); | ||
204 | } | ||
205 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | */ | ||
213 | @Override | ||
214 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
215 | { | ||
216 | switch (featureID) | ||
217 | { | ||
218 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
219 | return getPackageName(); | ||
220 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
221 | return getImports(); | ||
222 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
223 | return getComponentDefinitions(); | ||
224 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
225 | return getTransformationDefinitions(); | ||
226 | } | ||
227 | return super.eGet(featureID, resolve, coreType); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @SuppressWarnings("unchecked") | ||
236 | @Override | ||
237 | public void eSet(int featureID, Object newValue) | ||
238 | { | ||
239 | switch (featureID) | ||
240 | { | ||
241 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
242 | setPackageName((String)newValue); | ||
243 | return; | ||
244 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
245 | getImports().clear(); | ||
246 | getImports().addAll((Collection<? extends ImportDeclaration>)newValue); | ||
247 | return; | ||
248 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
249 | getComponentDefinitions().clear(); | ||
250 | getComponentDefinitions().addAll((Collection<? extends ComponentDefinition>)newValue); | ||
251 | return; | ||
252 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
253 | getTransformationDefinitions().clear(); | ||
254 | getTransformationDefinitions().addAll((Collection<? extends TransformationDefinition>)newValue); | ||
255 | return; | ||
256 | } | ||
257 | super.eSet(featureID, newValue); | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public void eUnset(int featureID) | ||
267 | { | ||
268 | switch (featureID) | ||
269 | { | ||
270 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
271 | setPackageName(PACKAGE_NAME_EDEFAULT); | ||
272 | return; | ||
273 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
274 | getImports().clear(); | ||
275 | return; | ||
276 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
277 | getComponentDefinitions().clear(); | ||
278 | return; | ||
279 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
280 | getTransformationDefinitions().clear(); | ||
281 | return; | ||
282 | } | ||
283 | super.eUnset(featureID); | ||
284 | } | ||
285 | |||
286 | /** | ||
287 | * <!-- begin-user-doc --> | ||
288 | * <!-- end-user-doc --> | ||
289 | * @generated | ||
290 | */ | ||
291 | @Override | ||
292 | public boolean eIsSet(int featureID) | ||
293 | { | ||
294 | switch (featureID) | ||
295 | { | ||
296 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
297 | return PACKAGE_NAME_EDEFAULT == null ? packageName != null : !PACKAGE_NAME_EDEFAULT.equals(packageName); | ||
298 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
299 | return imports != null && !imports.isEmpty(); | ||
300 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
301 | return componentDefinitions != null && !componentDefinitions.isEmpty(); | ||
302 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
303 | return transformationDefinitions != null && !transformationDefinitions.isEmpty(); | ||
304 | } | ||
305 | return super.eIsSet(featureID); | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * <!-- begin-user-doc --> | ||
310 | * <!-- end-user-doc --> | ||
311 | * @generated | ||
312 | */ | ||
313 | @Override | ||
314 | public String toString() | ||
315 | { | ||
316 | if (eIsProxy()) return super.toString(); | ||
317 | |||
318 | StringBuilder result = new StringBuilder(super.toString()); | ||
319 | result.append(" (packageName: "); | ||
320 | result.append(packageName); | ||
321 | result.append(')'); | ||
322 | return result.toString(); | ||
323 | } | ||
324 | |||
325 | } //CftModelImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java deleted file mode 100644 index d1c22199..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java +++ /dev/null | |||
@@ -1,176 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
8 | |||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
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>Component Instance</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.components.cftLanguage.impl.ComponentInstanceImpl#getComponentType <em>Component Type</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class ComponentInstanceImpl extends VariableImpl implements ComponentInstance | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getComponentType() <em>Component Type</em>}' reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getComponentType() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected ComponentDefinition componentType; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected ComponentInstanceImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return CftLanguagePackage.Literals.COMPONENT_INSTANCE; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public ComponentDefinition getComponentType() | ||
71 | { | ||
72 | if (componentType != null && componentType.eIsProxy()) | ||
73 | { | ||
74 | InternalEObject oldComponentType = (InternalEObject)componentType; | ||
75 | componentType = (ComponentDefinition)eResolveProxy(oldComponentType); | ||
76 | if (componentType != oldComponentType) | ||
77 | { | ||
78 | if (eNotificationRequired()) | ||
79 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE, oldComponentType, componentType)); | ||
80 | } | ||
81 | } | ||
82 | return componentType; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public ComponentDefinition basicGetComponentType() | ||
91 | { | ||
92 | return componentType; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public void setComponentType(ComponentDefinition newComponentType) | ||
102 | { | ||
103 | ComponentDefinition oldComponentType = componentType; | ||
104 | componentType = newComponentType; | ||
105 | if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE, oldComponentType, componentType)); | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | @Override | ||
115 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
116 | { | ||
117 | switch (featureID) | ||
118 | { | ||
119 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
120 | if (resolve) return getComponentType(); | ||
121 | return basicGetComponentType(); | ||
122 | } | ||
123 | return super.eGet(featureID, resolve, coreType); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public void eSet(int featureID, Object newValue) | ||
133 | { | ||
134 | switch (featureID) | ||
135 | { | ||
136 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
137 | setComponentType((ComponentDefinition)newValue); | ||
138 | return; | ||
139 | } | ||
140 | super.eSet(featureID, newValue); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public void eUnset(int featureID) | ||
150 | { | ||
151 | switch (featureID) | ||
152 | { | ||
153 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
154 | setComponentType((ComponentDefinition)null); | ||
155 | return; | ||
156 | } | ||
157 | super.eUnset(featureID); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public boolean eIsSet(int featureID) | ||
167 | { | ||
168 | switch (featureID) | ||
169 | { | ||
170 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
171 | return componentType != null; | ||
172 | } | ||
173 | return super.eIsSet(featureID); | ||
174 | } | ||
175 | |||
176 | } //ComponentInstanceImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java deleted file mode 100644 index 2f4835a3..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java +++ /dev/null | |||
@@ -1,245 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
9 | |||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | |||
14 | import org.eclipse.emf.ecore.EClass; | ||
15 | import org.eclipse.emf.ecore.InternalEObject; | ||
16 | |||
17 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
18 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Event Reference</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl#getComponent <em>Component</em>}</li> | ||
29 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl#getEvent <em>Event</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class EventReferenceImpl extends MinimalEObjectImpl.Container implements EventReference | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getComponent() <em>Component</em>}' reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getComponent() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected Variable component; | ||
45 | |||
46 | /** | ||
47 | * The cached value of the '{@link #getEvent() <em>Event</em>}' reference. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getEvent() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected EventDeclaration event; | ||
55 | |||
56 | /** | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @generated | ||
60 | */ | ||
61 | protected EventReferenceImpl() | ||
62 | { | ||
63 | super(); | ||
64 | } | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | protected EClass eStaticClass() | ||
73 | { | ||
74 | return CftLanguagePackage.Literals.EVENT_REFERENCE; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public Variable getComponent() | ||
84 | { | ||
85 | if (component != null && component.eIsProxy()) | ||
86 | { | ||
87 | InternalEObject oldComponent = (InternalEObject)component; | ||
88 | component = (Variable)eResolveProxy(oldComponent); | ||
89 | if (component != oldComponent) | ||
90 | { | ||
91 | if (eNotificationRequired()) | ||
92 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.EVENT_REFERENCE__COMPONENT, oldComponent, component)); | ||
93 | } | ||
94 | } | ||
95 | return component; | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | public Variable basicGetComponent() | ||
104 | { | ||
105 | return component; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public void setComponent(Variable newComponent) | ||
115 | { | ||
116 | Variable oldComponent = component; | ||
117 | component = newComponent; | ||
118 | if (eNotificationRequired()) | ||
119 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_REFERENCE__COMPONENT, oldComponent, component)); | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public EventDeclaration getEvent() | ||
129 | { | ||
130 | if (event != null && event.eIsProxy()) | ||
131 | { | ||
132 | InternalEObject oldEvent = (InternalEObject)event; | ||
133 | event = (EventDeclaration)eResolveProxy(oldEvent); | ||
134 | if (event != oldEvent) | ||
135 | { | ||
136 | if (eNotificationRequired()) | ||
137 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.EVENT_REFERENCE__EVENT, oldEvent, event)); | ||
138 | } | ||
139 | } | ||
140 | return event; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | public EventDeclaration basicGetEvent() | ||
149 | { | ||
150 | return event; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setEvent(EventDeclaration newEvent) | ||
160 | { | ||
161 | EventDeclaration oldEvent = event; | ||
162 | event = newEvent; | ||
163 | if (eNotificationRequired()) | ||
164 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_REFERENCE__EVENT, oldEvent, event)); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
174 | { | ||
175 | switch (featureID) | ||
176 | { | ||
177 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
178 | if (resolve) return getComponent(); | ||
179 | return basicGetComponent(); | ||
180 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
181 | if (resolve) return getEvent(); | ||
182 | return basicGetEvent(); | ||
183 | } | ||
184 | return super.eGet(featureID, resolve, coreType); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public void eSet(int featureID, Object newValue) | ||
194 | { | ||
195 | switch (featureID) | ||
196 | { | ||
197 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
198 | setComponent((Variable)newValue); | ||
199 | return; | ||
200 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
201 | setEvent((EventDeclaration)newValue); | ||
202 | return; | ||
203 | } | ||
204 | super.eSet(featureID, newValue); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eUnset(int featureID) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
218 | setComponent((Variable)null); | ||
219 | return; | ||
220 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
221 | setEvent((EventDeclaration)null); | ||
222 | return; | ||
223 | } | ||
224 | super.eUnset(featureID); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public boolean eIsSet(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
238 | return component != null; | ||
239 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
240 | return event != null; | ||
241 | } | ||
242 | return super.eIsSet(featureID); | ||
243 | } | ||
244 | |||
245 | } //EventReferenceImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ImportDeclarationImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ImportDeclarationImpl.java deleted file mode 100644 index f4e45535..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ImportDeclarationImpl.java +++ /dev/null | |||
@@ -1,180 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Import Declaration</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl#getImportedNamespace <em>Imported Namespace</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class ImportDeclarationImpl extends MinimalEObjectImpl.Container implements ImportDeclaration | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getImportedNamespace() <em>Imported Namespace</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getImportedNamespace() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String IMPORTED_NAMESPACE_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getImportedNamespace() <em>Imported Namespace</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getImportedNamespace() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String importedNamespace = IMPORTED_NAMESPACE_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected ImportDeclarationImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.IMPORT_DECLARATION; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getImportedNamespace() | ||
79 | { | ||
80 | return importedNamespace; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setImportedNamespace(String newImportedNamespace) | ||
90 | { | ||
91 | String oldImportedNamespace = importedNamespace; | ||
92 | importedNamespace = newImportedNamespace; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE, oldImportedNamespace, importedNamespace)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
108 | return getImportedNamespace(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
124 | setImportedNamespace((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
141 | setImportedNamespace(IMPORTED_NAMESPACE_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
158 | return IMPORTED_NAMESPACE_EDEFAULT == null ? importedNamespace != null : !IMPORTED_NAMESPACE_EDEFAULT.equals(importedNamespace); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (importedNamespace: "); | ||
175 | result.append(importedNamespace); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //ImportDeclarationImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java deleted file mode 100644 index f4877855..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java +++ /dev/null | |||
@@ -1,220 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
10 | |||
11 | import java.util.Collection; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.Notification; | ||
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 | |||
22 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Lookup Definition</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl#getMapping <em>Mapping</em>}</li> | ||
33 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl#getArguments <em>Arguments</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public class LookupDefinitionImpl extends VariableImpl implements LookupDefinition | ||
39 | { | ||
40 | /** | ||
41 | * The cached value of the '{@link #getMapping() <em>Mapping</em>}' reference. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getMapping() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected MappingDefinition mapping; | ||
49 | |||
50 | /** | ||
51 | * The cached value of the '{@link #getArguments() <em>Arguments</em>}' reference list. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #getArguments() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected EList<MappingParameter> arguments; | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | protected LookupDefinitionImpl() | ||
66 | { | ||
67 | super(); | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | protected EClass eStaticClass() | ||
77 | { | ||
78 | return CftLanguagePackage.Literals.LOOKUP_DEFINITION; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | public MappingDefinition getMapping() | ||
88 | { | ||
89 | if (mapping != null && mapping.eIsProxy()) | ||
90 | { | ||
91 | InternalEObject oldMapping = (InternalEObject)mapping; | ||
92 | mapping = (MappingDefinition)eResolveProxy(oldMapping); | ||
93 | if (mapping != oldMapping) | ||
94 | { | ||
95 | if (eNotificationRequired()) | ||
96 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.LOOKUP_DEFINITION__MAPPING, oldMapping, mapping)); | ||
97 | } | ||
98 | } | ||
99 | return mapping; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public MappingDefinition basicGetMapping() | ||
108 | { | ||
109 | return mapping; | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void setMapping(MappingDefinition newMapping) | ||
119 | { | ||
120 | MappingDefinition oldMapping = mapping; | ||
121 | mapping = newMapping; | ||
122 | if (eNotificationRequired()) | ||
123 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.LOOKUP_DEFINITION__MAPPING, oldMapping, mapping)); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public EList<MappingParameter> getArguments() | ||
133 | { | ||
134 | if (arguments == null) | ||
135 | { | ||
136 | arguments = new EObjectResolvingEList<MappingParameter>(MappingParameter.class, this, CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS); | ||
137 | } | ||
138 | return arguments; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
148 | { | ||
149 | switch (featureID) | ||
150 | { | ||
151 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
152 | if (resolve) return getMapping(); | ||
153 | return basicGetMapping(); | ||
154 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
155 | return getArguments(); | ||
156 | } | ||
157 | return super.eGet(featureID, resolve, coreType); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @SuppressWarnings("unchecked") | ||
166 | @Override | ||
167 | public void eSet(int featureID, Object newValue) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
172 | setMapping((MappingDefinition)newValue); | ||
173 | return; | ||
174 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
175 | getArguments().clear(); | ||
176 | getArguments().addAll((Collection<? extends MappingParameter>)newValue); | ||
177 | return; | ||
178 | } | ||
179 | super.eSet(featureID, newValue); | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public void eUnset(int featureID) | ||
189 | { | ||
190 | switch (featureID) | ||
191 | { | ||
192 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
193 | setMapping((MappingDefinition)null); | ||
194 | return; | ||
195 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
196 | getArguments().clear(); | ||
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 | { | ||
210 | switch (featureID) | ||
211 | { | ||
212 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
213 | return mapping != null; | ||
214 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
215 | return arguments != null && !arguments.isEmpty(); | ||
216 | } | ||
217 | return super.eIsSet(featureID); | ||
218 | } | ||
219 | |||
220 | } //LookupDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java deleted file mode 100644 index d92dd935..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java +++ /dev/null | |||
@@ -1,467 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
12 | |||
13 | import java.util.Collection; | ||
14 | |||
15 | import org.eclipse.emf.common.notify.Notification; | ||
16 | import org.eclipse.emf.common.notify.NotificationChain; | ||
17 | |||
18 | import org.eclipse.emf.common.util.EList; | ||
19 | |||
20 | import org.eclipse.emf.ecore.EClass; | ||
21 | import org.eclipse.emf.ecore.InternalEObject; | ||
22 | |||
23 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
24 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
25 | |||
26 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
27 | import org.eclipse.emf.ecore.util.InternalEList; | ||
28 | |||
29 | import org.eclipse.viatra.query.patternlanguage.emf.vql.Pattern; | ||
30 | |||
31 | /** | ||
32 | * <!-- begin-user-doc --> | ||
33 | * An implementation of the model object '<em><b>Mapping Definition</b></em>'. | ||
34 | * <!-- end-user-doc --> | ||
35 | * <p> | ||
36 | * The following features are implemented: | ||
37 | * </p> | ||
38 | * <ul> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#isTopLevel <em>Top Level</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getPattern <em>Pattern</em>}</li> | ||
41 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getParameters <em>Parameters</em>}</li> | ||
42 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getComponentInstance <em>Component Instance</em>}</li> | ||
43 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getLookupDefinitions <em>Lookup Definitions</em>}</li> | ||
44 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getAssignments <em>Assignments</em>}</li> | ||
45 | * </ul> | ||
46 | * | ||
47 | * @generated | ||
48 | */ | ||
49 | public class MappingDefinitionImpl extends MinimalEObjectImpl.Container implements MappingDefinition | ||
50 | { | ||
51 | /** | ||
52 | * The default value of the '{@link #isTopLevel() <em>Top Level</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #isTopLevel() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected static final boolean TOP_LEVEL_EDEFAULT = false; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #isTopLevel() <em>Top Level</em>}' attribute. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #isTopLevel() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected boolean topLevel = TOP_LEVEL_EDEFAULT; | ||
70 | |||
71 | /** | ||
72 | * The cached value of the '{@link #getPattern() <em>Pattern</em>}' reference. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #getPattern() | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | protected Pattern pattern; | ||
80 | |||
81 | /** | ||
82 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #getParameters() | ||
86 | * @generated | ||
87 | * @ordered | ||
88 | */ | ||
89 | protected EList<MappingParameter> parameters; | ||
90 | |||
91 | /** | ||
92 | * The cached value of the '{@link #getComponentInstance() <em>Component Instance</em>}' containment reference. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @see #getComponentInstance() | ||
96 | * @generated | ||
97 | * @ordered | ||
98 | */ | ||
99 | protected ComponentInstance componentInstance; | ||
100 | |||
101 | /** | ||
102 | * The cached value of the '{@link #getLookupDefinitions() <em>Lookup Definitions</em>}' containment reference list. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @see #getLookupDefinitions() | ||
106 | * @generated | ||
107 | * @ordered | ||
108 | */ | ||
109 | protected EList<LookupDefinition> lookupDefinitions; | ||
110 | |||
111 | /** | ||
112 | * The cached value of the '{@link #getAssignments() <em>Assignments</em>}' containment reference list. | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @see #getAssignments() | ||
116 | * @generated | ||
117 | * @ordered | ||
118 | */ | ||
119 | protected EList<Assignment> assignments; | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | protected MappingDefinitionImpl() | ||
127 | { | ||
128 | super(); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | protected EClass eStaticClass() | ||
138 | { | ||
139 | return CftLanguagePackage.Literals.MAPPING_DEFINITION; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public boolean isTopLevel() | ||
149 | { | ||
150 | return topLevel; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setTopLevel(boolean newTopLevel) | ||
160 | { | ||
161 | boolean oldTopLevel = topLevel; | ||
162 | topLevel = newTopLevel; | ||
163 | if (eNotificationRequired()) | ||
164 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL, oldTopLevel, topLevel)); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Pattern getPattern() | ||
174 | { | ||
175 | if (pattern != null && pattern.eIsProxy()) | ||
176 | { | ||
177 | InternalEObject oldPattern = (InternalEObject)pattern; | ||
178 | pattern = (Pattern)eResolveProxy(oldPattern); | ||
179 | if (pattern != oldPattern) | ||
180 | { | ||
181 | if (eNotificationRequired()) | ||
182 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.MAPPING_DEFINITION__PATTERN, oldPattern, pattern)); | ||
183 | } | ||
184 | } | ||
185 | return pattern; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | public Pattern basicGetPattern() | ||
194 | { | ||
195 | return pattern; | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | @Override | ||
204 | public void setPattern(Pattern newPattern) | ||
205 | { | ||
206 | Pattern oldPattern = pattern; | ||
207 | pattern = newPattern; | ||
208 | if (eNotificationRequired()) | ||
209 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__PATTERN, oldPattern, pattern)); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public EList<MappingParameter> getParameters() | ||
219 | { | ||
220 | if (parameters == null) | ||
221 | { | ||
222 | parameters = new EObjectContainmentEList<MappingParameter>(MappingParameter.class, this, CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS); | ||
223 | } | ||
224 | return parameters; | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public ComponentInstance getComponentInstance() | ||
234 | { | ||
235 | return componentInstance; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | public NotificationChain basicSetComponentInstance(ComponentInstance newComponentInstance, NotificationChain msgs) | ||
244 | { | ||
245 | ComponentInstance oldComponentInstance = componentInstance; | ||
246 | componentInstance = newComponentInstance; | ||
247 | if (eNotificationRequired()) | ||
248 | { | ||
249 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, oldComponentInstance, newComponentInstance); | ||
250 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
251 | } | ||
252 | return msgs; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public void setComponentInstance(ComponentInstance newComponentInstance) | ||
262 | { | ||
263 | if (newComponentInstance != componentInstance) | ||
264 | { | ||
265 | NotificationChain msgs = null; | ||
266 | if (componentInstance != null) | ||
267 | msgs = ((InternalEObject)componentInstance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, null, msgs); | ||
268 | if (newComponentInstance != null) | ||
269 | msgs = ((InternalEObject)newComponentInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, null, msgs); | ||
270 | msgs = basicSetComponentInstance(newComponentInstance, msgs); | ||
271 | if (msgs != null) msgs.dispatch(); | ||
272 | } | ||
273 | else if (eNotificationRequired()) | ||
274 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, newComponentInstance, newComponentInstance)); | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | @Override | ||
283 | public EList<LookupDefinition> getLookupDefinitions() | ||
284 | { | ||
285 | if (lookupDefinitions == null) | ||
286 | { | ||
287 | lookupDefinitions = new EObjectContainmentEList<LookupDefinition>(LookupDefinition.class, this, CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS); | ||
288 | } | ||
289 | return lookupDefinitions; | ||
290 | } | ||
291 | |||
292 | /** | ||
293 | * <!-- begin-user-doc --> | ||
294 | * <!-- end-user-doc --> | ||
295 | * @generated | ||
296 | */ | ||
297 | @Override | ||
298 | public EList<Assignment> getAssignments() | ||
299 | { | ||
300 | if (assignments == null) | ||
301 | { | ||
302 | assignments = new EObjectContainmentEList<Assignment>(Assignment.class, this, CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS); | ||
303 | } | ||
304 | return assignments; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
314 | { | ||
315 | switch (featureID) | ||
316 | { | ||
317 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
318 | return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs); | ||
319 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
320 | return basicSetComponentInstance(null, msgs); | ||
321 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
322 | return ((InternalEList<?>)getLookupDefinitions()).basicRemove(otherEnd, msgs); | ||
323 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
324 | return ((InternalEList<?>)getAssignments()).basicRemove(otherEnd, msgs); | ||
325 | } | ||
326 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
327 | } | ||
328 | |||
329 | /** | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @generated | ||
333 | */ | ||
334 | @Override | ||
335 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
336 | { | ||
337 | switch (featureID) | ||
338 | { | ||
339 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
340 | return isTopLevel(); | ||
341 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
342 | if (resolve) return getPattern(); | ||
343 | return basicGetPattern(); | ||
344 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
345 | return getParameters(); | ||
346 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
347 | return getComponentInstance(); | ||
348 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
349 | return getLookupDefinitions(); | ||
350 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
351 | return getAssignments(); | ||
352 | } | ||
353 | return super.eGet(featureID, resolve, coreType); | ||
354 | } | ||
355 | |||
356 | /** | ||
357 | * <!-- begin-user-doc --> | ||
358 | * <!-- end-user-doc --> | ||
359 | * @generated | ||
360 | */ | ||
361 | @SuppressWarnings("unchecked") | ||
362 | @Override | ||
363 | public void eSet(int featureID, Object newValue) | ||
364 | { | ||
365 | switch (featureID) | ||
366 | { | ||
367 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
368 | setTopLevel((Boolean)newValue); | ||
369 | return; | ||
370 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
371 | setPattern((Pattern)newValue); | ||
372 | return; | ||
373 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
374 | getParameters().clear(); | ||
375 | getParameters().addAll((Collection<? extends MappingParameter>)newValue); | ||
376 | return; | ||
377 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
378 | setComponentInstance((ComponentInstance)newValue); | ||
379 | return; | ||
380 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
381 | getLookupDefinitions().clear(); | ||
382 | getLookupDefinitions().addAll((Collection<? extends LookupDefinition>)newValue); | ||
383 | return; | ||
384 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
385 | getAssignments().clear(); | ||
386 | getAssignments().addAll((Collection<? extends Assignment>)newValue); | ||
387 | return; | ||
388 | } | ||
389 | super.eSet(featureID, newValue); | ||
390 | } | ||
391 | |||
392 | /** | ||
393 | * <!-- begin-user-doc --> | ||
394 | * <!-- end-user-doc --> | ||
395 | * @generated | ||
396 | */ | ||
397 | @Override | ||
398 | public void eUnset(int featureID) | ||
399 | { | ||
400 | switch (featureID) | ||
401 | { | ||
402 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
403 | setTopLevel(TOP_LEVEL_EDEFAULT); | ||
404 | return; | ||
405 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
406 | setPattern((Pattern)null); | ||
407 | return; | ||
408 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
409 | getParameters().clear(); | ||
410 | return; | ||
411 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
412 | setComponentInstance((ComponentInstance)null); | ||
413 | return; | ||
414 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
415 | getLookupDefinitions().clear(); | ||
416 | return; | ||
417 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
418 | getAssignments().clear(); | ||
419 | return; | ||
420 | } | ||
421 | super.eUnset(featureID); | ||
422 | } | ||
423 | |||
424 | /** | ||
425 | * <!-- begin-user-doc --> | ||
426 | * <!-- end-user-doc --> | ||
427 | * @generated | ||
428 | */ | ||
429 | @Override | ||
430 | public boolean eIsSet(int featureID) | ||
431 | { | ||
432 | switch (featureID) | ||
433 | { | ||
434 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
435 | return topLevel != TOP_LEVEL_EDEFAULT; | ||
436 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
437 | return pattern != null; | ||
438 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
439 | return parameters != null && !parameters.isEmpty(); | ||
440 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
441 | return componentInstance != null; | ||
442 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
443 | return lookupDefinitions != null && !lookupDefinitions.isEmpty(); | ||
444 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
445 | return assignments != null && !assignments.isEmpty(); | ||
446 | } | ||
447 | return super.eIsSet(featureID); | ||
448 | } | ||
449 | |||
450 | /** | ||
451 | * <!-- begin-user-doc --> | ||
452 | * <!-- end-user-doc --> | ||
453 | * @generated | ||
454 | */ | ||
455 | @Override | ||
456 | public String toString() | ||
457 | { | ||
458 | if (eIsProxy()) return super.toString(); | ||
459 | |||
460 | StringBuilder result = new StringBuilder(super.toString()); | ||
461 | result.append(" (topLevel: "); | ||
462 | result.append(topLevel); | ||
463 | result.append(')'); | ||
464 | return result.toString(); | ||
465 | } | ||
466 | |||
467 | } //MappingDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingParameterImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingParameterImpl.java deleted file mode 100644 index 9d0ee701..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingParameterImpl.java +++ /dev/null | |||
@@ -1,180 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Mapping Parameter</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class MappingParameterImpl extends MinimalEObjectImpl.Container implements MappingParameter | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected MappingParameterImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.MAPPING_PARAMETER; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getName() | ||
79 | { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setName(String newName) | ||
90 | { | ||
91 | String oldName = name; | ||
92 | name = newName; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_PARAMETER__NAME, oldName, name)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
108 | return getName(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
124 | setName((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
141 | setName(NAME_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
158 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (name: "); | ||
175 | result.append(name); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //MappingParameterImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java deleted file mode 100644 index 89e89b0f..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java +++ /dev/null | |||
@@ -1,244 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
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>Transformation Definition</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.components.cftLanguage.impl.TransformationDefinitionImpl#getName <em>Name</em>}</li> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl#getMappingDefinitions <em>Mapping Definitions</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class TransformationDefinitionImpl extends MinimalEObjectImpl.Container implements TransformationDefinition | ||
41 | { | ||
42 | /** | ||
43 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getName() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected static final String NAME_EDEFAULT = null; | ||
51 | |||
52 | /** | ||
53 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getName() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected String name = NAME_EDEFAULT; | ||
61 | |||
62 | /** | ||
63 | * The cached value of the '{@link #getMappingDefinitions() <em>Mapping Definitions</em>}' containment reference list. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #getMappingDefinitions() | ||
67 | * @generated | ||
68 | * @ordered | ||
69 | */ | ||
70 | protected EList<MappingDefinition> mappingDefinitions; | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | protected TransformationDefinitionImpl() | ||
78 | { | ||
79 | super(); | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | protected EClass eStaticClass() | ||
89 | { | ||
90 | return CftLanguagePackage.Literals.TRANSFORMATION_DEFINITION; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public String getName() | ||
100 | { | ||
101 | return name; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void setName(String newName) | ||
111 | { | ||
112 | String oldName = name; | ||
113 | name = newName; | ||
114 | if (eNotificationRequired()) | ||
115 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME, oldName, name)); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public EList<MappingDefinition> getMappingDefinitions() | ||
125 | { | ||
126 | if (mappingDefinitions == null) | ||
127 | { | ||
128 | mappingDefinitions = new EObjectContainmentEList<MappingDefinition>(MappingDefinition.class, this, CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS); | ||
129 | } | ||
130 | return mappingDefinitions; | ||
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 | { | ||
141 | switch (featureID) | ||
142 | { | ||
143 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
144 | return ((InternalEList<?>)getMappingDefinitions()).basicRemove(otherEnd, msgs); | ||
145 | } | ||
146 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
156 | { | ||
157 | switch (featureID) | ||
158 | { | ||
159 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
160 | return getName(); | ||
161 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
162 | return getMappingDefinitions(); | ||
163 | } | ||
164 | return super.eGet(featureID, resolve, coreType); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @SuppressWarnings("unchecked") | ||
173 | @Override | ||
174 | public void eSet(int featureID, Object newValue) | ||
175 | { | ||
176 | switch (featureID) | ||
177 | { | ||
178 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
179 | setName((String)newValue); | ||
180 | return; | ||
181 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
182 | getMappingDefinitions().clear(); | ||
183 | getMappingDefinitions().addAll((Collection<? extends MappingDefinition>)newValue); | ||
184 | return; | ||
185 | } | ||
186 | super.eSet(featureID, newValue); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public void eUnset(int featureID) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
200 | setName(NAME_EDEFAULT); | ||
201 | return; | ||
202 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
203 | getMappingDefinitions().clear(); | ||
204 | return; | ||
205 | } | ||
206 | super.eUnset(featureID); | ||
207 | } | ||
208 | |||
209 | /** | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | */ | ||
214 | @Override | ||
215 | public boolean eIsSet(int featureID) | ||
216 | { | ||
217 | switch (featureID) | ||
218 | { | ||
219 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
220 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
221 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
222 | return mappingDefinitions != null && !mappingDefinitions.isEmpty(); | ||
223 | } | ||
224 | return super.eIsSet(featureID); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public String toString() | ||
234 | { | ||
235 | if (eIsProxy()) return super.toString(); | ||
236 | |||
237 | StringBuilder result = new StringBuilder(super.toString()); | ||
238 | result.append(" (name: "); | ||
239 | result.append(name); | ||
240 | result.append(')'); | ||
241 | return result.toString(); | ||
242 | } | ||
243 | |||
244 | } //TransformationDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/VariableImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/VariableImpl.java deleted file mode 100644 index 3c7d1ccb..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/VariableImpl.java +++ /dev/null | |||
@@ -1,180 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Variable</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class VariableImpl extends MinimalEObjectImpl.Container implements Variable | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected VariableImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.VARIABLE; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getName() | ||
79 | { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setName(String newName) | ||
90 | { | ||
91 | String oldName = name; | ||
92 | name = newName; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.VARIABLE__NAME, oldName, name)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.VARIABLE__NAME: | ||
108 | return getName(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.VARIABLE__NAME: | ||
124 | setName((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.VARIABLE__NAME: | ||
141 | setName(NAME_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.VARIABLE__NAME: | ||
158 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (name: "); | ||
175 | result.append(name); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //VariableImpl | ||