diff options
author | ArenBabikian <aren.babikian@mail.mcgill.ca> | 2020-05-11 10:06:57 -0400 |
---|---|---|
committer | ArenBabikian <aren.babikian@mail.mcgill.ca> | 2020-05-11 10:06:57 -0400 |
commit | 750b37401bc3eb3e9deb7126d90f871973ba477b (patch) | |
tree | abe90e700f79ae1e126586039bf15d2a51dbb60c /Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java | |
parent | Allow real numbers to be in the solution (diff) | |
download | VIATRA-Generator-750b37401bc3eb3e9deb7126d90f871973ba477b.tar.gz VIATRA-Generator-750b37401bc3eb3e9deb7126d90f871973ba477b.tar.zst VIATRA-Generator-750b37401bc3eb3e9deb7126d90f871973ba477b.zip |
Remove derived features from the PLEDGE MM
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java index e631901a..2ea09206 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java | |||
@@ -20,7 +20,6 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; | |||
20 | * </p> | 20 | * </p> |
21 | * <ul> | 21 | * <ul> |
22 | * <li>{@link Taxation.impl.DonationImpl#getBeneficiary1 <em>Beneficiary1</em>}</li> | 22 | * <li>{@link Taxation.impl.DonationImpl#getBeneficiary1 <em>Beneficiary1</em>}</li> |
23 | * <li>{@link Taxation.impl.DonationImpl#isIs_beneficiary_eligible <em>Is beneficiary eligible</em>}</li> | ||
24 | * <li>{@link Taxation.impl.DonationImpl#isIs_donation_reported <em>Is donation reported</em>}</li> | 23 | * <li>{@link Taxation.impl.DonationImpl#isIs_donation_reported <em>Is donation reported</em>}</li> |
25 | * </ul> | 24 | * </ul> |
26 | * | 25 | * |
@@ -48,26 +47,6 @@ public class DonationImpl extends Special_Expense_DSImpl implements Donation { | |||
48 | protected String beneficiary1 = BENEFICIARY1_EDEFAULT; | 47 | protected String beneficiary1 = BENEFICIARY1_EDEFAULT; |
49 | 48 | ||
50 | /** | 49 | /** |
51 | * The default value of the '{@link #isIs_beneficiary_eligible() <em>Is beneficiary eligible</em>}' attribute. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #isIs_beneficiary_eligible() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected static final boolean IS_BENEFICIARY_ELIGIBLE_EDEFAULT = false; | ||
59 | |||
60 | /** | ||
61 | * The cached value of the '{@link #isIs_beneficiary_eligible() <em>Is beneficiary eligible</em>}' attribute. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see #isIs_beneficiary_eligible() | ||
65 | * @generated | ||
66 | * @ordered | ||
67 | */ | ||
68 | protected boolean is_beneficiary_eligible = IS_BENEFICIARY_ELIGIBLE_EDEFAULT; | ||
69 | |||
70 | /** | ||
71 | * The default value of the '{@link #isIs_donation_reported() <em>Is donation reported</em>}' attribute. | 50 | * The default value of the '{@link #isIs_donation_reported() <em>Is donation reported</em>}' attribute. |
72 | * <!-- begin-user-doc --> | 51 | * <!-- begin-user-doc --> |
73 | * <!-- end-user-doc --> | 52 | * <!-- end-user-doc --> |
@@ -135,29 +114,6 @@ public class DonationImpl extends Special_Expense_DSImpl implements Donation { | |||
135 | * @generated | 114 | * @generated |
136 | */ | 115 | */ |
137 | @Override | 116 | @Override |
138 | public boolean isIs_beneficiary_eligible() { | ||
139 | return is_beneficiary_eligible; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void setIs_beneficiary_eligible(boolean newIs_beneficiary_eligible) { | ||
149 | boolean oldIs_beneficiary_eligible = is_beneficiary_eligible; | ||
150 | is_beneficiary_eligible = newIs_beneficiary_eligible; | ||
151 | if (eNotificationRequired()) | ||
152 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DONATION__IS_BENEFICIARY_ELIGIBLE, oldIs_beneficiary_eligible, is_beneficiary_eligible)); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public boolean isIs_donation_reported() { | 117 | public boolean isIs_donation_reported() { |
162 | return is_donation_reported; | 118 | return is_donation_reported; |
163 | } | 119 | } |
@@ -185,8 +141,6 @@ public class DonationImpl extends Special_Expense_DSImpl implements Donation { | |||
185 | switch (featureID) { | 141 | switch (featureID) { |
186 | case TaxationPackage.DONATION__BENEFICIARY1: | 142 | case TaxationPackage.DONATION__BENEFICIARY1: |
187 | return getBeneficiary1(); | 143 | return getBeneficiary1(); |
188 | case TaxationPackage.DONATION__IS_BENEFICIARY_ELIGIBLE: | ||
189 | return isIs_beneficiary_eligible(); | ||
190 | case TaxationPackage.DONATION__IS_DONATION_REPORTED: | 144 | case TaxationPackage.DONATION__IS_DONATION_REPORTED: |
191 | return isIs_donation_reported(); | 145 | return isIs_donation_reported(); |
192 | } | 146 | } |
@@ -204,9 +158,6 @@ public class DonationImpl extends Special_Expense_DSImpl implements Donation { | |||
204 | case TaxationPackage.DONATION__BENEFICIARY1: | 158 | case TaxationPackage.DONATION__BENEFICIARY1: |
205 | setBeneficiary1((String)newValue); | 159 | setBeneficiary1((String)newValue); |
206 | return; | 160 | return; |
207 | case TaxationPackage.DONATION__IS_BENEFICIARY_ELIGIBLE: | ||
208 | setIs_beneficiary_eligible((Boolean)newValue); | ||
209 | return; | ||
210 | case TaxationPackage.DONATION__IS_DONATION_REPORTED: | 161 | case TaxationPackage.DONATION__IS_DONATION_REPORTED: |
211 | setIs_donation_reported((Boolean)newValue); | 162 | setIs_donation_reported((Boolean)newValue); |
212 | return; | 163 | return; |
@@ -225,9 +176,6 @@ public class DonationImpl extends Special_Expense_DSImpl implements Donation { | |||
225 | case TaxationPackage.DONATION__BENEFICIARY1: | 176 | case TaxationPackage.DONATION__BENEFICIARY1: |
226 | setBeneficiary1(BENEFICIARY1_EDEFAULT); | 177 | setBeneficiary1(BENEFICIARY1_EDEFAULT); |
227 | return; | 178 | return; |
228 | case TaxationPackage.DONATION__IS_BENEFICIARY_ELIGIBLE: | ||
229 | setIs_beneficiary_eligible(IS_BENEFICIARY_ELIGIBLE_EDEFAULT); | ||
230 | return; | ||
231 | case TaxationPackage.DONATION__IS_DONATION_REPORTED: | 179 | case TaxationPackage.DONATION__IS_DONATION_REPORTED: |
232 | setIs_donation_reported(IS_DONATION_REPORTED_EDEFAULT); | 180 | setIs_donation_reported(IS_DONATION_REPORTED_EDEFAULT); |
233 | return; | 181 | return; |
@@ -245,8 +193,6 @@ public class DonationImpl extends Special_Expense_DSImpl implements Donation { | |||
245 | switch (featureID) { | 193 | switch (featureID) { |
246 | case TaxationPackage.DONATION__BENEFICIARY1: | 194 | case TaxationPackage.DONATION__BENEFICIARY1: |
247 | return BENEFICIARY1_EDEFAULT == null ? beneficiary1 != null : !BENEFICIARY1_EDEFAULT.equals(beneficiary1); | 195 | return BENEFICIARY1_EDEFAULT == null ? beneficiary1 != null : !BENEFICIARY1_EDEFAULT.equals(beneficiary1); |
248 | case TaxationPackage.DONATION__IS_BENEFICIARY_ELIGIBLE: | ||
249 | return is_beneficiary_eligible != IS_BENEFICIARY_ELIGIBLE_EDEFAULT; | ||
250 | case TaxationPackage.DONATION__IS_DONATION_REPORTED: | 196 | case TaxationPackage.DONATION__IS_DONATION_REPORTED: |
251 | return is_donation_reported != IS_DONATION_REPORTED_EDEFAULT; | 197 | return is_donation_reported != IS_DONATION_REPORTED_EDEFAULT; |
252 | } | 198 | } |
@@ -265,8 +211,6 @@ public class DonationImpl extends Special_Expense_DSImpl implements Donation { | |||
265 | StringBuilder result = new StringBuilder(super.toString()); | 211 | StringBuilder result = new StringBuilder(super.toString()); |
266 | result.append(" (beneficiary1: "); | 212 | result.append(" (beneficiary1: "); |
267 | result.append(beneficiary1); | 213 | result.append(beneficiary1); |
268 | result.append(", is_beneficiary_eligible: "); | ||
269 | result.append(is_beneficiary_eligible); | ||
270 | result.append(", is_donation_reported: "); | 214 | result.append(", is_donation_reported: "); |
271 | result.append(is_donation_reported); | 215 | result.append(is_donation_reported); |
272 | result.append(')'); | 216 | result.append(')'); |