diff options
author | Kristóf Marussy <kris7topher@gmail.com> | 2019-03-25 15:56:37 +0100 |
---|---|---|
committer | Kristóf Marussy <kris7topher@gmail.com> | 2019-03-25 15:56:37 +0100 |
commit | 478123d2febde02f39f6a673ffdbdf0c760aef3c (patch) | |
tree | 520b41e650bc666655016f2c5b5446e60bf1d3e4 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabilityObjectiveFunctionImpl.java | |
parent | Do not throw exception for empty package names in application configuration f... (diff) | |
download | VIATRA-Generator-478123d2febde02f39f6a673ffdbdf0c760aef3c.tar.gz VIATRA-Generator-478123d2febde02f39f6a673ffdbdf0c760aef3c.tar.zst VIATRA-Generator-478123d2febde02f39f6a673ffdbdf0c760aef3c.zip |
Add reliability probability and mtff objectives
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabilityObjectiveFunctionImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabilityObjectiveFunctionImpl.java | 244 |
1 files changed, 244 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabilityObjectiveFunctionImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabilityObjectiveFunctionImpl.java new file mode 100644 index 00000000..d0008224 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabilityObjectiveFunctionImpl.java | |||
@@ -0,0 +1,244 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ReliabilityObjectiveFunction; | ||
8 | |||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
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 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Reliability Objective Function</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.application.applicationConfiguration.impl.ReliabilityObjectiveFunctionImpl#getPackage <em>Package</em>}</li> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ReliabilityObjectiveFunctionImpl#getTransformation <em>Transformation</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class ReliabilityObjectiveFunctionImpl extends ObjectiveFunctionImpl implements ReliabilityObjectiveFunction | ||
34 | { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getPackage() <em>Package</em>}' reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getPackage() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected CftModel package_; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getTransformation() <em>Transformation</em>}' reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getTransformation() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected TransformationDefinition transformation; | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | protected ReliabilityObjectiveFunctionImpl() | ||
61 | { | ||
62 | super(); | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | protected EClass eStaticClass() | ||
72 | { | ||
73 | return ApplicationConfigurationPackage.Literals.RELIABILITY_OBJECTIVE_FUNCTION; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | public CftModel getPackage() | ||
83 | { | ||
84 | if (package_ != null && package_.eIsProxy()) | ||
85 | { | ||
86 | InternalEObject oldPackage = (InternalEObject)package_; | ||
87 | package_ = (CftModel)eResolveProxy(oldPackage); | ||
88 | if (package_ != oldPackage) | ||
89 | { | ||
90 | if (eNotificationRequired()) | ||
91 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__PACKAGE, oldPackage, package_)); | ||
92 | } | ||
93 | } | ||
94 | return package_; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public CftModel basicGetPackage() | ||
103 | { | ||
104 | return package_; | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | public void setPackage(CftModel newPackage) | ||
114 | { | ||
115 | CftModel oldPackage = package_; | ||
116 | package_ = newPackage; | ||
117 | if (eNotificationRequired()) | ||
118 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__PACKAGE, oldPackage, package_)); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public TransformationDefinition getTransformation() | ||
128 | { | ||
129 | if (transformation != null && transformation.eIsProxy()) | ||
130 | { | ||
131 | InternalEObject oldTransformation = (InternalEObject)transformation; | ||
132 | transformation = (TransformationDefinition)eResolveProxy(oldTransformation); | ||
133 | if (transformation != oldTransformation) | ||
134 | { | ||
135 | if (eNotificationRequired()) | ||
136 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__TRANSFORMATION, oldTransformation, transformation)); | ||
137 | } | ||
138 | } | ||
139 | return transformation; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | public TransformationDefinition basicGetTransformation() | ||
148 | { | ||
149 | return transformation; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | @Override | ||
158 | public void setTransformation(TransformationDefinition newTransformation) | ||
159 | { | ||
160 | TransformationDefinition oldTransformation = transformation; | ||
161 | transformation = newTransformation; | ||
162 | if (eNotificationRequired()) | ||
163 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__TRANSFORMATION, oldTransformation, transformation)); | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
173 | { | ||
174 | switch (featureID) | ||
175 | { | ||
176 | case ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__PACKAGE: | ||
177 | if (resolve) return getPackage(); | ||
178 | return basicGetPackage(); | ||
179 | case ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__TRANSFORMATION: | ||
180 | if (resolve) return getTransformation(); | ||
181 | return basicGetTransformation(); | ||
182 | } | ||
183 | return super.eGet(featureID, resolve, coreType); | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | @Override | ||
192 | public void eSet(int featureID, Object newValue) | ||
193 | { | ||
194 | switch (featureID) | ||
195 | { | ||
196 | case ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__PACKAGE: | ||
197 | setPackage((CftModel)newValue); | ||
198 | return; | ||
199 | case ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__TRANSFORMATION: | ||
200 | setTransformation((TransformationDefinition)newValue); | ||
201 | return; | ||
202 | } | ||
203 | super.eSet(featureID, newValue); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public void eUnset(int featureID) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__PACKAGE: | ||
217 | setPackage((CftModel)null); | ||
218 | return; | ||
219 | case ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__TRANSFORMATION: | ||
220 | setTransformation((TransformationDefinition)null); | ||
221 | return; | ||
222 | } | ||
223 | super.eUnset(featureID); | ||
224 | } | ||
225 | |||
226 | /** | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | */ | ||
231 | @Override | ||
232 | public boolean eIsSet(int featureID) | ||
233 | { | ||
234 | switch (featureID) | ||
235 | { | ||
236 | case ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__PACKAGE: | ||
237 | return package_ != null; | ||
238 | case ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION__TRANSFORMATION: | ||
239 | return transformation != null; | ||
240 | } | ||
241 | return super.eIsSet(featureID); | ||
242 | } | ||
243 | |||
244 | } //ReliabilityObjectiveFunctionImpl | ||