diff options
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/ModelResultImpl.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/ModelResultImpl.java | 216 |
1 files changed, 216 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/ModelResultImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/ModelResultImpl.java new file mode 100644 index 00000000..63a15a81 --- /dev/null +++ b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logicresult/impl/ModelResultImpl.java | |||
@@ -0,0 +1,216 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicresultPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.ModelResult; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Model Result</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl.ModelResultImpl#getMaxInteger <em>Max Integer</em>}</li> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl.ModelResultImpl#getMinInteger <em>Min Integer</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class ModelResultImpl extends LogicResultImpl implements ModelResult { | ||
29 | /** | ||
30 | * The default value of the '{@link #getMaxInteger() <em>Max Integer</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getMaxInteger() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final int MAX_INTEGER_EDEFAULT = 0; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getMaxInteger() <em>Max Integer</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getMaxInteger() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected int maxInteger = MAX_INTEGER_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * The default value of the '{@link #getMinInteger() <em>Min Integer</em>}' attribute. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #getMinInteger() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected static final int MIN_INTEGER_EDEFAULT = 0; | ||
58 | |||
59 | /** | ||
60 | * The cached value of the '{@link #getMinInteger() <em>Min Integer</em>}' attribute. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see #getMinInteger() | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | protected int minInteger = MIN_INTEGER_EDEFAULT; | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | protected ModelResultImpl() { | ||
75 | super(); | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | protected EClass eStaticClass() { | ||
85 | return LogicresultPackage.Literals.MODEL_RESULT; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | public int getMaxInteger() { | ||
94 | return maxInteger; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public void setMaxInteger(int newMaxInteger) { | ||
103 | int oldMaxInteger = maxInteger; | ||
104 | maxInteger = newMaxInteger; | ||
105 | if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.SET, LogicresultPackage.MODEL_RESULT__MAX_INTEGER, oldMaxInteger, maxInteger)); | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | public int getMinInteger() { | ||
115 | return minInteger; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | public void setMinInteger(int newMinInteger) { | ||
124 | int oldMinInteger = minInteger; | ||
125 | minInteger = newMinInteger; | ||
126 | if (eNotificationRequired()) | ||
127 | eNotify(new ENotificationImpl(this, Notification.SET, LogicresultPackage.MODEL_RESULT__MIN_INTEGER, oldMinInteger, minInteger)); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
137 | switch (featureID) { | ||
138 | case LogicresultPackage.MODEL_RESULT__MAX_INTEGER: | ||
139 | return getMaxInteger(); | ||
140 | case LogicresultPackage.MODEL_RESULT__MIN_INTEGER: | ||
141 | return getMinInteger(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public void eSet(int featureID, Object newValue) { | ||
153 | switch (featureID) { | ||
154 | case LogicresultPackage.MODEL_RESULT__MAX_INTEGER: | ||
155 | setMaxInteger((Integer)newValue); | ||
156 | return; | ||
157 | case LogicresultPackage.MODEL_RESULT__MIN_INTEGER: | ||
158 | setMinInteger((Integer)newValue); | ||
159 | return; | ||
160 | } | ||
161 | super.eSet(featureID, newValue); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public void eUnset(int featureID) { | ||
171 | switch (featureID) { | ||
172 | case LogicresultPackage.MODEL_RESULT__MAX_INTEGER: | ||
173 | setMaxInteger(MAX_INTEGER_EDEFAULT); | ||
174 | return; | ||
175 | case LogicresultPackage.MODEL_RESULT__MIN_INTEGER: | ||
176 | setMinInteger(MIN_INTEGER_EDEFAULT); | ||
177 | return; | ||
178 | } | ||
179 | super.eUnset(featureID); | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public boolean eIsSet(int featureID) { | ||
189 | switch (featureID) { | ||
190 | case LogicresultPackage.MODEL_RESULT__MAX_INTEGER: | ||
191 | return maxInteger != MAX_INTEGER_EDEFAULT; | ||
192 | case LogicresultPackage.MODEL_RESULT__MIN_INTEGER: | ||
193 | return minInteger != MIN_INTEGER_EDEFAULT; | ||
194 | } | ||
195 | return super.eIsSet(featureID); | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | @Override | ||
204 | public String toString() { | ||
205 | if (eIsProxy()) return super.toString(); | ||
206 | |||
207 | StringBuffer result = new StringBuffer(super.toString()); | ||
208 | result.append(" (maxInteger: "); | ||
209 | result.append(maxInteger); | ||
210 | result.append(", minInteger: "); | ||
211 | result.append(minInteger); | ||
212 | result.append(')'); | ||
213 | return result.toString(); | ||
214 | } | ||
215 | |||
216 | } //ModelResultImpl | ||