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