diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java | 240 |
1 files changed, 240 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java new file mode 100644 index 00000000..4e968236 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java | |||
@@ -0,0 +1,240 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.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.ComparisonOperator; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ThresholdEntry; | ||
9 | |||
10 | import java.math.BigDecimal; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | |||
14 | import org.eclipse.emf.ecore.EClass; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Threshold Entry</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.application.applicationConfiguration.impl.ThresholdEntryImpl#getOperator <em>Operator</em>}</li> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ThresholdEntryImpl#getThreshold <em>Threshold</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class ThresholdEntryImpl extends ObjectiveEntryImpl implements ThresholdEntry | ||
33 | { | ||
34 | /** | ||
35 | * The default value of the '{@link #getOperator() <em>Operator</em>}' attribute. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getOperator() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected static final ComparisonOperator OPERATOR_EDEFAULT = ComparisonOperator.LESS; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getOperator() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected ComparisonOperator operator = OPERATOR_EDEFAULT; | ||
53 | |||
54 | /** | ||
55 | * The default value of the '{@link #getThreshold() <em>Threshold</em>}' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #getThreshold() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected static final BigDecimal THRESHOLD_EDEFAULT = null; | ||
63 | |||
64 | /** | ||
65 | * The cached value of the '{@link #getThreshold() <em>Threshold</em>}' attribute. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #getThreshold() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected BigDecimal threshold = THRESHOLD_EDEFAULT; | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | protected ThresholdEntryImpl() | ||
80 | { | ||
81 | super(); | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | protected EClass eStaticClass() | ||
91 | { | ||
92 | return ApplicationConfigurationPackage.Literals.THRESHOLD_ENTRY; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public ComparisonOperator getOperator() | ||
102 | { | ||
103 | return operator; | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public void setOperator(ComparisonOperator newOperator) | ||
113 | { | ||
114 | ComparisonOperator oldOperator = operator; | ||
115 | operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator; | ||
116 | if (eNotificationRequired()) | ||
117 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR, oldOperator, operator)); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public BigDecimal getThreshold() | ||
127 | { | ||
128 | return threshold; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public void setThreshold(BigDecimal newThreshold) | ||
138 | { | ||
139 | BigDecimal oldThreshold = threshold; | ||
140 | threshold = newThreshold; | ||
141 | if (eNotificationRequired()) | ||
142 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD, oldThreshold, threshold)); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
152 | { | ||
153 | switch (featureID) | ||
154 | { | ||
155 | case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: | ||
156 | return getOperator(); | ||
157 | case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: | ||
158 | return getThreshold(); | ||
159 | } | ||
160 | return super.eGet(featureID, resolve, coreType); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void eSet(int featureID, Object newValue) | ||
170 | { | ||
171 | switch (featureID) | ||
172 | { | ||
173 | case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: | ||
174 | setOperator((ComparisonOperator)newValue); | ||
175 | return; | ||
176 | case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: | ||
177 | setThreshold((BigDecimal)newValue); | ||
178 | return; | ||
179 | } | ||
180 | super.eSet(featureID, newValue); | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | @Override | ||
189 | public void eUnset(int featureID) | ||
190 | { | ||
191 | switch (featureID) | ||
192 | { | ||
193 | case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: | ||
194 | setOperator(OPERATOR_EDEFAULT); | ||
195 | return; | ||
196 | case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: | ||
197 | setThreshold(THRESHOLD_EDEFAULT); | ||
198 | return; | ||
199 | } | ||
200 | super.eUnset(featureID); | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public boolean eIsSet(int featureID) | ||
210 | { | ||
211 | switch (featureID) | ||
212 | { | ||
213 | case ApplicationConfigurationPackage.THRESHOLD_ENTRY__OPERATOR: | ||
214 | return operator != OPERATOR_EDEFAULT; | ||
215 | case ApplicationConfigurationPackage.THRESHOLD_ENTRY__THRESHOLD: | ||
216 | return THRESHOLD_EDEFAULT == null ? threshold != null : !THRESHOLD_EDEFAULT.equals(threshold); | ||
217 | } | ||
218 | return super.eIsSet(featureID); | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | */ | ||
226 | @Override | ||
227 | public String toString() | ||
228 | { | ||
229 | if (eIsProxy()) return super.toString(); | ||
230 | |||
231 | StringBuilder result = new StringBuilder(super.toString()); | ||
232 | result.append(" (operator: "); | ||
233 | result.append(operator); | ||
234 | result.append(", threshold: "); | ||
235 | result.append(threshold); | ||
236 | result.append(')'); | ||
237 | return result.toString(); | ||
238 | } | ||
239 | |||
240 | } //ThresholdEntryImpl | ||