Class Student

java.lang.Object
app.entity.user.User
app.entity.user.Student
All Implemented Interfaces:
ITaggedItem

public class Student extends User
The Student class represents a student user with information about attended camps, committees, points, enquiries, and suggestions. It extends the User class.
  • Field Details

    • points

      protected int points
      The number of points accumulated by the student.
  • Constructor Details

    • Student

      public Student(String ID, String name, String faculty)
      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

      public void addCommitteeCamp(Camp camp)
      Adds a camp to the list of camps where the student participated as a committee member.
      Parameters:
      camp - The camp to be added.
    • addAttendedCamp

      public void addAttendedCamp(Camp camp)
      Adds a camp to the list of camps attended by the student.
      Parameters:
      camp - The camp to be added.
    • removeCommitteeCamp

      public void removeCommitteeCamp(Camp camp)
      Removes a camp from the list of camps where the student participated as a committee member.
      Parameters:
      camp - The camp to be removed.
    • removeAttendedCamp

      public void removeAttendedCamp(Camp camp)
      Removes a camp from the list of camps attended by the student.
      Parameters:
      camp - The camp to be removed.
    • getAttendedCampList

      public ArrayList<Camp> getAttendedCampList()
      Gets the list of camps attended by the student.
      Returns:
      An ArrayList representing the attended camps.
    • getCommitteeCampList

      public ArrayList<Camp> getCommitteeCampList()
      Gets the list of camps where the student participated as a committee member.
      Returns:
      An ArrayList representing the committee camps.
    • addEnquiry

      public void addEnquiry(Enquiry enquiry)
      Adds an enquiry to the list of enquiries submitted by the student.
      Parameters:
      enquiry - The enquiry to be added.
    • removeEnquiry

      public void removeEnquiry(Enquiry enquiry)
      Removes an enquiry from the list of enquiries submitted by the student.
      Parameters:
      enquiry - The enquiry to be removed.
    • getEnquiryList

      public ArrayList<Enquiry> getEnquiryList()
      Gets the list of enquiries submitted by the student.
      Returns:
      An ArrayList representing the enquiries.
    • addSuggestion

      public void addSuggestion(Suggestion suggestion)
      Adds a suggestion to the list of suggestions submitted by the student.
      Parameters:
      suggestion - The suggestion to be added.
    • removeSuggestion

      public void removeSuggestion(Suggestion suggestion)
      Removes a suggestion from the list of suggestions submitted by the student.
      Parameters:
      suggestion - The suggestion to be removed.
    • getSuggestionList

      public ArrayList<Suggestion> getSuggestionList()
      Gets the list of suggestions submitted by the student.
      Returns:
      An ArrayList representing the suggestions.