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/FOImpl.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/FOImpl.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/FOImpl.java | 129 |
1 files changed, 0 insertions, 129 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/FOImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/FOImpl.java index d03ee8bc..5ffe9463 100644 --- a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/FOImpl.java +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/FOImpl.java | |||
@@ -4,49 +4,17 @@ package Taxation.impl; | |||
4 | 4 | ||
5 | import Taxation.FO; | 5 | import Taxation.FO; |
6 | import Taxation.TaxationPackage; | 6 | import Taxation.TaxationPackage; |
7 | import Taxation.Type_of_Rate; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | 7 | import org.eclipse.emf.ecore.EClass; |
12 | 8 | ||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | 9 | /** |
16 | * <!-- begin-user-doc --> | 10 | * <!-- begin-user-doc --> |
17 | * An implementation of the model object '<em><b>FO</b></em>'. | 11 | * An implementation of the model object '<em><b>FO</b></em>'. |
18 | * <!-- end-user-doc --> | 12 | * <!-- end-user-doc --> |
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link Taxation.impl.FOImpl#getRate_type_for_FO <em>Rate type for FO</em>}</li> | ||
24 | * </ul> | ||
25 | * | 13 | * |
26 | * @generated | 14 | * @generated |
27 | */ | 15 | */ |
28 | public class FOImpl extends Professional_Expenses_DeductionImpl implements FO { | 16 | public class FOImpl extends Professional_Expenses_DeductionImpl implements FO { |
29 | /** | 17 | /** |
30 | * The default value of the '{@link #getRate_type_for_FO() <em>Rate type for FO</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getRate_type_for_FO() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final Type_of_Rate RATE_TYPE_FOR_FO_EDEFAULT = Type_of_Rate.REGULAR; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getRate_type_for_FO() <em>Rate type for FO</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getRate_type_for_FO() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected Type_of_Rate rate_type_for_FO = RATE_TYPE_FOR_FO_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | 18 | * <!-- begin-user-doc --> |
51 | * <!-- end-user-doc --> | 19 | * <!-- end-user-doc --> |
52 | * @generated | 20 | * @generated |
@@ -65,101 +33,4 @@ public class FOImpl extends Professional_Expenses_DeductionImpl implements FO { | |||
65 | return TaxationPackage.Literals.FO; | 33 | return TaxationPackage.Literals.FO; |
66 | } | 34 | } |
67 | 35 | ||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public Type_of_Rate getRate_type_for_FO() { | ||
75 | return rate_type_for_FO; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public void setRate_type_for_FO(Type_of_Rate newRate_type_for_FO) { | ||
85 | Type_of_Rate oldRate_type_for_FO = rate_type_for_FO; | ||
86 | rate_type_for_FO = newRate_type_for_FO == null ? RATE_TYPE_FOR_FO_EDEFAULT : newRate_type_for_FO; | ||
87 | if (eNotificationRequired()) | ||
88 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.FO__RATE_TYPE_FOR_FO, oldRate_type_for_FO, rate_type_for_FO)); | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
98 | switch (featureID) { | ||
99 | case TaxationPackage.FO__RATE_TYPE_FOR_FO: | ||
100 | return getRate_type_for_FO(); | ||
101 | } | ||
102 | return super.eGet(featureID, resolve, coreType); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public void eSet(int featureID, Object newValue) { | ||
112 | switch (featureID) { | ||
113 | case TaxationPackage.FO__RATE_TYPE_FOR_FO: | ||
114 | setRate_type_for_FO((Type_of_Rate)newValue); | ||
115 | return; | ||
116 | } | ||
117 | super.eSet(featureID, newValue); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public void eUnset(int featureID) { | ||
127 | switch (featureID) { | ||
128 | case TaxationPackage.FO__RATE_TYPE_FOR_FO: | ||
129 | setRate_type_for_FO(RATE_TYPE_FOR_FO_EDEFAULT); | ||
130 | return; | ||
131 | } | ||
132 | super.eUnset(featureID); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public boolean eIsSet(int featureID) { | ||
142 | switch (featureID) { | ||
143 | case TaxationPackage.FO__RATE_TYPE_FOR_FO: | ||
144 | return rate_type_for_FO != RATE_TYPE_FOR_FO_EDEFAULT; | ||
145 | } | ||
146 | return super.eIsSet(featureID); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public String toString() { | ||
156 | if (eIsProxy()) return super.toString(); | ||
157 | |||
158 | StringBuilder result = new StringBuilder(super.toString()); | ||
159 | result.append(" (rate_type_for_FO: "); | ||
160 | result.append(rate_type_for_FO); | ||
161 | result.append(')'); | ||
162 | return result.toString(); | ||
163 | } | ||
164 | |||
165 | } //FOImpl | 36 | } //FOImpl |