/Users/johnr/Desktop/IA Submissions/IA Final Submission 000307-0045 - Neil/Product/HousePointProgram_Neil/src/housepointprogram/Student.java |
1
2
3
4
5
6 package housepointprogram;
7
8
9
10
11 @author
12
13 public class Student {
14
15
16 private String studentName;
17 private int studentID;
18 private int studentContribution;
19 private String event;
20 private boolean category;
21 private String house;
22 private boolean rajasi = false;
23 private boolean hongsa = false;
24 private boolean yaksha = false;
25 private boolean makara = false;
26
27 public Student() {
28
29 }
30
31 Student(String text, String text0) {
32 throw new UnsupportedOperationException("Not supported yet.");
33 }
34
35 public void setName(String newStudentName) {
36 studentName = newStudentName;
37 }
38
39 public void setEvent(int newEvent) {
40 studentID = newEvent;
41 }
42
43 public void setID(int newID) {
44 studentID = newID;
45 }
46
47 public void setRajasi(boolean rajasiSelected) {
48 rajasi = rajasiSelected;
49 }
50
51 public void setHongsa(boolean hongsaSelected) {
52 hongsa = hongsaSelected;
53 }
54
55 public void setMakara(boolean makaraSelected) {
56 makara = makaraSelected;
57 }
58
59 public void setyaksha(boolean yakshaSelected) {
60 yaksha = yakshaSelected;
61 }
62
63
64
65 public void setCategory(boolean participationButton) {
66 category = participationButton;
67 }
68
69 public void setContribution(int updatedContribution) {
70 studentContribution = updatedContribution;
71 }
72
73 public Student(String name,int newID, boolean rajasiSelected, boolean hongsaSelected,
74 boolean yakshaSelected, boolean makaraSelected, String newEvent, boolean participationButton) {
75
76 this.studentName = name;
77 this.studentID = newID;
78 this.rajasi = rajasiSelected;
79 this.hongsa = hongsaSelected;
80 this.yaksha = yakshaSelected;
81 this.makara = makaraSelected;
82 this.event = newEvent;
83 this.category = participationButton;
84 }
85
86 public String getName() {
87 return studentName;
88
89 }
90
91 public int getID() {
92 return studentID;
93 }
94
95 public int getStudentContribution() {
96 return studentContribution;
97 }
98
99 public String getEvent() {
100 return event;
101 }
102
103 public boolean getCategory() {
104 return category;
105 }
106
107 public boolean getRajasi() {
108 return rajasi;
109 }
110 public boolean getMakara() {
111 return makara;
112 }
113 public boolean getHongsa() {
114 return hongsa;
115 }
116 public boolean getYaksha() {
117 return yaksha;
118 }
119
120
121
122
123
124
125
126
127
128
129
130 }
131