aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Income.java
blob: 3e68e1ac275da62f3c1e80b324870936e5eeb30c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
/**
 */
package Taxation;

import java.util.Date;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Income</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * </p>
 * <ul>
 *   <li>{@link Taxation.Income#getIncome_amount <em>Income amount</em>}</li>
 *   <li>{@link Taxation.Income#getIncome_type <em>Income type</em>}</li>
 *   <li>{@link Taxation.Income#getStart_date_within_taxation_year <em>Start date within taxation year</em>}</li>
 *   <li>{@link Taxation.Income#getStart_date_of_contract <em>Start date of contract</em>}</li>
 *   <li>{@link Taxation.Income#getEnd_date_within_taxation_year <em>End date within taxation year</em>}</li>
 *   <li>{@link Taxation.Income#getTax_card <em>Tax card</em>}</li>
 *   <li>{@link Taxation.Income#getTax_liability <em>Tax liability</em>}</li>
 *   <li>{@link Taxation.Income#getTaxPayer <em>Tax Payer</em>}</li>
 *   <li>{@link Taxation.Income#getDetails <em>Details</em>}</li>
 *   <li>{@link Taxation.Income#getNum <em>Num</em>}</li>
 *   <li>{@link Taxation.Income#getExpenses <em>Expenses</em>}</li>
 * </ul>
 *
 * @see Taxation.TaxationPackage#getIncome()
 * @model abstract="true"
 * @generated
 */
public interface Income extends EObject {
	/**
	 * Returns the value of the '<em><b>Income amount</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Income amount</em>' attribute.
	 * @see #setIncome_amount(double)
	 * @see Taxation.TaxationPackage#getIncome_Income_amount()
	 * @model unique="false" required="true" ordered="false"
	 *        annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot derivation='let non_null_amounts:OrderedSet(Income_Detail)=self.details-&gt;select(det:Income_Detail|det.amount&gt;0)-&gt;asOrderedSet() in\nnon_null_amounts-&gt;collect(amount)-&gt;min()'"
	 * @generated
	 */
	double getIncome_amount();

	/**
	 * Sets the value of the '{@link Taxation.Income#getIncome_amount <em>Income amount</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Income amount</em>' attribute.
	 * @see #getIncome_amount()
	 * @generated
	 */
	void setIncome_amount(double value);

	/**
	 * Returns the value of the '<em><b>Income type</b></em>' containment reference.
	 * It is bidirectional and its opposite is '{@link Taxation.Income_Type#getIncome <em>Income</em>}'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Income type</em>' containment reference.
	 * @see #setIncome_type(Income_Type)
	 * @see Taxation.TaxationPackage#getIncome_Income_type()
	 * @see Taxation.Income_Type#getIncome
	 * @model opposite="income" containment="true" required="true"
	 * @generated
	 */
	Income_Type getIncome_type();

	/**
	 * Sets the value of the '{@link Taxation.Income#getIncome_type <em>Income type</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Income type</em>' containment reference.
	 * @see #getIncome_type()
	 * @generated
	 */
	void setIncome_type(Income_Type value);

	/**
	 * Returns the value of the '<em><b>Start date within taxation year</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Start date within taxation year</em>' attribute.
	 * @see #setStart_date_within_taxation_year(Date)
	 * @see Taxation.TaxationPackage#getIncome_Start_date_within_taxation_year()
	 * @model unique="false" required="true" ordered="false"
	 * @generated
	 */
	Date getStart_date_within_taxation_year();

	/**
	 * Sets the value of the '{@link Taxation.Income#getStart_date_within_taxation_year <em>Start date within taxation year</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Start date within taxation year</em>' attribute.
	 * @see #getStart_date_within_taxation_year()
	 * @generated
	 */
	void setStart_date_within_taxation_year(Date value);

	/**
	 * Returns the value of the '<em><b>Start date of contract</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Start date of contract</em>' attribute.
	 * @see #setStart_date_of_contract(Date)
	 * @see Taxation.TaxationPackage#getIncome_Start_date_of_contract()
	 * @model unique="false" required="true" ordered="false"
	 * @generated
	 */
	Date getStart_date_of_contract();

	/**
	 * Sets the value of the '{@link Taxation.Income#getStart_date_of_contract <em>Start date of contract</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Start date of contract</em>' attribute.
	 * @see #getStart_date_of_contract()
	 * @generated
	 */
	void setStart_date_of_contract(Date value);

	/**
	 * Returns the value of the '<em><b>End date within taxation year</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>End date within taxation year</em>' attribute.
	 * @see #setEnd_date_within_taxation_year(Date)
	 * @see Taxation.TaxationPackage#getIncome_End_date_within_taxation_year()
	 * @model unique="false" required="true" ordered="false"
	 * @generated
	 */
	Date getEnd_date_within_taxation_year();

	/**
	 * Sets the value of the '{@link Taxation.Income#getEnd_date_within_taxation_year <em>End date within taxation year</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>End date within taxation year</em>' attribute.
	 * @see #getEnd_date_within_taxation_year()
	 * @generated
	 */
	void setEnd_date_within_taxation_year(Date value);

	/**
	 * Returns the value of the '<em><b>Tax card</b></em>' containment reference.
	 * It is bidirectional and its opposite is '{@link Taxation.Tax_Card#getIncome <em>Income</em>}'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Tax card</em>' containment reference.
	 * @see #setTax_card(Tax_Card)
	 * @see Taxation.TaxationPackage#getIncome_Tax_card()
	 * @see Taxation.Tax_Card#getIncome
	 * @model opposite="income" containment="true"
	 * @generated
	 */
	Tax_Card getTax_card();

	/**
	 * Sets the value of the '{@link Taxation.Income#getTax_card <em>Tax card</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Tax card</em>' containment reference.
	 * @see #getTax_card()
	 * @generated
	 */
	void setTax_card(Tax_Card value);

	/**
	 * Returns the value of the '<em><b>Tax liability</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Tax liability</em>' attribute.
	 * @see #setTax_liability(double)
	 * @see Taxation.TaxationPackage#getIncome_Tax_liability()
	 * @model required="true"
	 * @generated
	 */
	double getTax_liability();

	/**
	 * Sets the value of the '{@link Taxation.Income#getTax_liability <em>Tax liability</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Tax liability</em>' attribute.
	 * @see #getTax_liability()
	 * @generated
	 */
	void setTax_liability(double value);

	/**
	 * Returns the value of the '<em><b>Tax Payer</b></em>' container reference.
	 * It is bidirectional and its opposite is '{@link Taxation.Tax_Payer#getIncomes <em>Incomes</em>}'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Tax Payer</em>' container reference.
	 * @see #setTaxPayer(Tax_Payer)
	 * @see Taxation.TaxationPackage#getIncome_TaxPayer()
	 * @see Taxation.Tax_Payer#getIncomes
	 * @model opposite="incomes" required="true" transient="false" ordered="false"
	 * @generated
	 */
	Tax_Payer getTaxPayer();

	/**
	 * Sets the value of the '{@link Taxation.Income#getTaxPayer <em>Tax Payer</em>}' container reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Tax Payer</em>' container reference.
	 * @see #getTaxPayer()
	 * @generated
	 */
	void setTaxPayer(Tax_Payer value);

	/**
	 * Returns the value of the '<em><b>Details</b></em>' containment reference list.
	 * The list contents are of type {@link Taxation.Income_Detail}.
	 * It is bidirectional and its opposite is '{@link Taxation.Income_Detail#getIncome <em>Income</em>}'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Details</em>' containment reference list.
	 * @see Taxation.TaxationPackage#getIncome_Details()
	 * @see Taxation.Income_Detail#getIncome
	 * @model opposite="income" containment="true" lower="12" upper="12"
	 * @generated
	 */
	EList<Income_Detail> getDetails();

	/**
	 * Returns the value of the '<em><b>Num</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Num</em>' attribute.
	 * @see #setNum(int)
	 * @see Taxation.TaxationPackage#getIncome_Num()
	 * @model id="true" required="true" ordered="false"
	 * @generated
	 */
	int getNum();

	/**
	 * Sets the value of the '{@link Taxation.Income#getNum <em>Num</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Num</em>' attribute.
	 * @see #getNum()
	 * @generated
	 */
	void setNum(int value);

	/**
	 * Returns the value of the '<em><b>Expenses</b></em>' containment reference list.
	 * The list contents are of type {@link Taxation.Expense}.
	 * It is bidirectional and its opposite is '{@link Taxation.Expense#getIncome <em>Income</em>}'.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Expenses</em>' containment reference list.
	 * @see Taxation.TaxationPackage#getIncome_Expenses()
	 * @see Taxation.Expense#getIncome
	 * @model opposite="income" containment="true" ordered="false"
	 * @generated
	 */
	EList<Expense> getExpenses();

} // Income