/Users/johnr/Desktop/IA Submissions/IA Final Submission 000307-0045 - Neil/Product/HousePointProgram_Neil/src/housepointprogram/Student.java
  1 /*
  2  * To change this license header, choose License Headers in Project Properties.
  3  * To change this template file, choose Tools | Templates
  4  * and open the template in the editor.
  5  */
  6 package housepointprogram;
  7 
  8 
  9 /**
 10  *
 11  * @author 18513
 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."); //To change body of generated methods, choose Tools | Templates.
 33     }
 34 
 35     public void setName(String newStudentName) { // method that sets the student name
 36         studentName = newStudentName;
 37     }
 38 
 39     public void setEvent(int newEvent) {//method that sets student id
 40         studentID = newEvent;
 41     }
 42 
 43     public void setID(int newID) {//method that sets student id
 44         studentID = newID;
 45     }
 46 
 47     public void setRajasi(boolean rajasiSelected) {// since there were only 4 houses it mad sense to have a set method for each house i realize that if that there were more it wouldnt make sense
 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) {//method that sets student ID
 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() {// method that gets student name
 87         return studentName;
 88 
 89     }
 90 
 91     public int getID() {// method that gets student name
 92         return studentID;
 93     }
 94 
 95     public int getStudentContribution() {// method that gets student contribution
 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     /* Student(String text, int parseInt) {
124         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
125     }
126 
127     Student() {
128         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
129     }*/
130 }
131