1 | public class Student {↵ | | 1 | public class SubMulti extends Multi {↵
|
2 | private long studentNumber;↵ | | 2 | private flo↵
|
3 | private String name;↵ | | |
|
4 | private Course preferredCourse;↵ | | |
|
5 | private Set enrolments = new HashSet();↵ | | |
|
| | | 3 | at amount;↵
|
| | | 4 | private SubMulti parent;↵
|
| | | 5 | private List children;↵
|
| | | 6 | private List moreChildren;↵
|
| | | 7 | /**↵
|
| | | 8 | * Returns the amount.↵
|
| | | 9 | * @return float↵
|
| | | 10 | */↵
|
6 | public String getName() {↵ | | 11 | public float getAmount() {↵
|
7 | return name;↵ | | 12 | return amount;↵
|
8 | }↵ | | 13 | }↵
|
|
9 | public void setName(String name↵ | | 14 | ↵
|
| | | 15 | /**↵
|
| | | 16 | * Sets the amount.↵
|
| | | 17 | * @param amount The amount to set↵
|
| | | 18 | */↵
|
10 | ) {↵ | | 19 | public void setAmount(float amount) {↵
|
11 | this.name = name;↵ | | 20 | this.amount = amount;↵
|
12 | }↵ | | 21 | }↵
|
|
13 | public long getStudentNumber() {↵ | | |
|
14 | return studentNumber;↵ | | |
|
15 | }↵ | | |
|
|
16 | public void setStudentNumber(long studentNumber) {↵ | | |
|
17 | this.studentNumber = studentNumber;↵ | | |
|
18 | }↵ | | |
|
|
19 | public Course getPreferredCourse() {↵ | | |
|
20 | return preferredCour↵ | | 22 | ↵
|
| | | 23 | /**↵
|
| | | 24 | * Returns the childen.↵
|
| | | 25 | * @return List↵
|
| | | 26 | */↵
|
| | | 27 | public List getChildren() {↵
|
| | | 28 | return children;↵
|
| | | 29 | }↵
|
| | | 30 | ↵
|
| | | 31 | /**↵
|
| | | 32 | * Returns the parent.↵
|
| | | 33 | * @return SubMulti↵
|
| | | 34 | */↵
|
| | | 35 | public SubMulti getParent() {↵
|
| | | 36 | return parent;↵
|
| | | 37 | }↵
|
| | | 38 | ↵
|
| | | 39 | /**↵
|
| | | 40 | * Sets the childen.↵
|
| | | 41 | * @param childen The childen to set↵
|
| | | 42 | */↵
|
| | | 43 | public void setChildren(List children) {↵
|
| | | 44 | this.children = children;↵
|
| | | 45 | }↵
|
| | | 46 | ↵
|
| | | 47 | /**↵
|
| | | 48 | * Sets the parent.↵
|
21 | se;↵ | | 49 | * @param parent The parent to set↵
|
22 | }↵ | | 50 | ↵
|
| | | 51 | */↵
|
23 | public void setPreferredCourse(Course preferredCourse) {↵ | | 52 | public void setParent(SubMulti parent) {↵
|
24 | this.preferredCourse = preferredCourse;↵ | | 53 | this.pare↵
|
25 | }↵ | | |
|
| | | 54 | nt = parent;↵
|
| | | 55 | }↵
|
| | | 56 | ↵
|
| | | 57 | /**↵
|
| | | 58 | * Returns the moreChildren.↵
|
| | | 59 | * @return List↵
|
| | | 60 | */↵
|
26 | public Set getEnrolments() {↵ | | 61 | public List getMoreChildren() {↵
|
27 | return enrolments;↵ | | 62 | return ↵
|
28 | }↵ | | |
|
| | | 63 | moreChildren;↵
|
| | | 64 | }↵
|
|
| | | 65 | /**↵
|
| | | 66 | * Sets the moreChildren.↵
|
| | | 67 | * @param moreChildren The moreChildren to set↵
|
| | | 68 | */↵
|
29 | public void setEnrolments(Set employments) {↵ | | 69 | public void set↵
|
30 | this.enrolments = employments↵ | | 70 | MoreChildren(List moreChildren) {↵
|
31 | ;↵ | | 71 | this.moreChildren = moreChildren;↵
|
32 | | | 72 |
|