1 | public class DataPoint {↵ | | 1 | public class Student {↵
|
2 | private long id;↵ | | 2 | private long ↵
|
3 | private BigDecimal x;↵ | | |
|
4 | private BigDecimal y;↵ | | |
|
5 | private String description;↵ | | |
|
6 | /**↵ | | |
|
7 | * @return Returns the description.↵ | | |
|
8 | */↵ | | 3 | studentNumber;↵
|
| | | 4 | private String name;↵
|
| | | 5 | private Course preferredCourse;↵
|
| | | 6 | private Set enrolments = new HashSet();↵
|
|
9 | public String getDescription() {↵ | | 7 | public String getName() {↵
|
10 | return description;↵ | | 8 | return ↵
|
11 | }↵ | | |
|
12 | /**↵ | | |
|
13 | * @param description The description to set.↵ | | |
|
14 | */↵ | | |
|
15 | public void setDescription(String description) {↵ | | |
|
16 | this.description = description;↵ | | |
|
17 | }↵ | | |
|
18 | /**↵ | | |
|
19 | * @return Returns the id.↵ | | |
|
20 | */↵ | | 9 | name;↵
|
| | | 10 | }↵
|
|
| | | 11 | public void setName(String name) {↵
|
| | | 12 | this.name = name;↵
|
| | | 13 | }↵
|
|
21 | public long getId() {↵ | | 14 | public long getStudentNumber() {↵
|
22 | return id;↵ | | 15 | return ↵
|
23 | }↵ | | |
|
24 | /**↵ | | |
|
25 | * @param id The id to set.↵ | | |
|
26 | */↵ | | 16 | studentNumber;↵
|
| | | 17 | }↵
|
|
27 | public void setId(long id) {↵ | | 18 | public void set↵
|
28 | this.id = id;↵ | | |
|
29 | }↵ | | |
|
30 | /**↵ | | |
|
31 | * @return Returns the x.↵ | | |
|
32 | */↵ | | |
|
33 | public BigDecimal getX() {↵ | | |
|
34 | return x;↵ | | |
|
35 | }↵ | | |
|
36 | /**↵ | | |
|
37 | * @param x The x to set.↵ | | |
|
38 | */↵ | | |
|
39 | public void setX(BigDecimal x) {↵ | | |
|
40 | this.x = x;↵ | | |
|
41 | }↵ | | |
|
42 | /**↵ | | |
|
43 | * @return Returns the y.↵ | | |
|
44 | */↵ | | |
|
45 | public BigDecimal getY() {↵ | | |
|
46 | return y;↵ | | |
|
47 | }↵ | | |
|
48 | /**↵ | | |
|
49 | * @param y The y to set.↵ | | |
|
50 | */↵ | | |
|
51 | public void setY(BigDecimal y) {↵ | | |
|
52 | this.y = y | | 19 | StudentNumber(long studentNumber) {↵
|
| | | 20 | this.studentNumber = studentNumber;↵
|
| | | 21 | }↵
|
|
| | | 22 | public Course getPreferredCourse() {↵
|
| | | 23 | return preferredCourse;↵
|
| | | 24 | }↵
|
|
| | | 25 | public void setPreferredCourse(Course preferredCourse) {↵
|
| | | 26 | this.preferredCourse = preferredCourse;↵
|
| | | 27 | }↵
|
|
| | | 28 | public Set getEnrolments() {↵
|
| | | 29 | return enrolments;↵
|
| | | 30 | }↵
|
|
| | | 31 | public void setEnrolments(Set employments) {↵
|
| | | 32 | this.enrolments = employments
|