Package app.entity.user
Class Student
java.lang.Object
app.entity.user.User
app.entity.user.Student
- All Implemented Interfaces:
ITaggedItem
The
Student class represents a student user with information about attended camps, committees, points, enquiries, and suggestions.
It extends the User class.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe number of points accumulated by the student. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttendedCamp(Camp camp) Adds a camp to the list of camps attended by the student.voidaddCommitteeCamp(Camp camp) Adds a camp to the list of camps where the student participated as a committee member.voidaddEnquiry(Enquiry enquiry) Adds an enquiry to the list of enquiries submitted by the student.voidaddPoints(int points) Adds points to the total points accumulated by the student.voidaddSuggestion(Suggestion suggestion) Adds a suggestion to the list of suggestions submitted by the student.Gets the list of camps attended by the student.Gets the list of camps where the student participated as a committee member.Gets the list of enquiries submitted by the student.intGets the number of points accumulated by the student.Gets the list of suggestions submitted by the student.voidremoveAttendedCamp(Camp camp) Removes a camp from the list of camps attended by the student.voidremoveCommitteeCamp(Camp camp) Removes a camp from the list of camps where the student participated as a committee member.voidremoveEnquiry(Enquiry enquiry) Removes an enquiry from the list of enquiries submitted by the student.voidremoveSuggestion(Suggestion suggestion) Removes a suggestion from the list of suggestions submitted by the student.voidsetPoints(int points) Sets the total points accumulated by the student.Methods inherited from class app.entity.user.User
getEmail, getID, getName, getPassword, getSchool, setID, setName, setPassword, setSchool
-
Field Details
-
points
protected int pointsThe number of points accumulated by the student.
-
-
Constructor Details
-
Student
Constructs a Student object with the specified ID, name, and faculty.- Parameters:
ID- The ID of the student.name- The name of the student.faculty- The faculty of the student.
-
Student
public Student()Constructs a Student object with default values.
-
-
Method Details
-
getPoints
public int getPoints()Gets the number of points accumulated by the student.- Returns:
- The number of points.
-
addPoints
public void addPoints(int points) Adds points to the total points accumulated by the student.- Parameters:
points- The points to be added.
-
setPoints
public void setPoints(int points) Sets the total points accumulated by the student.- Parameters:
points- The total points to be set.
-
addCommitteeCamp
Adds a camp to the list of camps where the student participated as a committee member.- Parameters:
camp- The camp to be added.
-
addAttendedCamp
Adds a camp to the list of camps attended by the student.- Parameters:
camp- The camp to be added.
-
removeCommitteeCamp
Removes a camp from the list of camps where the student participated as a committee member.- Parameters:
camp- The camp to be removed.
-
removeAttendedCamp
Removes a camp from the list of camps attended by the student.- Parameters:
camp- The camp to be removed.
-
getAttendedCampList
Gets the list of camps attended by the student.- Returns:
- An
ArrayListrepresenting the attended camps.
-
getCommitteeCampList
Gets the list of camps where the student participated as a committee member.- Returns:
- An
ArrayListrepresenting the committee camps.
-
addEnquiry
Adds an enquiry to the list of enquiries submitted by the student.- Parameters:
enquiry- The enquiry to be added.
-
removeEnquiry
Removes an enquiry from the list of enquiries submitted by the student.- Parameters:
enquiry- The enquiry to be removed.
-
getEnquiryList
Gets the list of enquiries submitted by the student.- Returns:
- An
ArrayListrepresenting the enquiries.
-
addSuggestion
Adds a suggestion to the list of suggestions submitted by the student.- Parameters:
suggestion- The suggestion to be added.
-
removeSuggestion
Removes a suggestion from the list of suggestions submitted by the student.- Parameters:
suggestion- The suggestion to be removed.
-
getSuggestionList
Gets the list of suggestions submitted by the student.- Returns:
- An
ArrayListrepresenting the suggestions.
-