- java.lang.Object
-
- model.user.User
-
- model.user.Student
-
- model.user.Committee
-
public class Committee extends Student
-
-
Field Summary
Fields Modifier and Type Field Description private int
campID
Identifier of the camp where the committee member is associated.private int
point
Points accrued by the committee member.-
Fields inherited from class model.user.Student
registeredCamps
-
-
Constructor Summary
Constructors Constructor Description Committee(java.lang.String name, java.lang.String password, java.lang.String userID, java.lang.String email, Schools faculty, boolean firstLogin, int campID)
Constructor of classCommittee
Committee(java.lang.String name, java.lang.String password, java.lang.String userID, java.lang.String email, Schools faculty, boolean firstLogin, int campID, int point)
Create an object of theCommittee
class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCampID()
Gets the identifier of the camp where the committee member is associated.int
getPoint()
Gets the points accrued by the committee member.void
setCampID(int campID)
Sets the identifier of the camp where the committee member is associated.void
setPoint(int point)
Sets the points accrued by the committee member.-
Methods inherited from class model.user.User
getEmail, getFaculty, getID, getName, getPassword, getType, isFirstLogin, removeDefault, setPassword, setType
-
-
-
-
Constructor Detail
-
Committee
public Committee(java.lang.String name, java.lang.String password, java.lang.String userID, java.lang.String email, Schools faculty, boolean firstLogin, int campID)
Constructor of classCommittee
- Parameters:
name
- Name of the committee member.password
- Password of the committee member.userID
- User ID of the committee member.email
- Email of the committee member.faculty
- Faculty to which the committee member belongs.firstLogin
- Flag indicating whether it's the committee member's first login.campID
- Identifier of the camp where the committee member is associated.
-
Committee
public Committee(java.lang.String name, java.lang.String password, java.lang.String userID, java.lang.String email, Schools faculty, boolean firstLogin, int campID, int point)
Create an object of theCommittee
class- Parameters:
name
- Name of the committee member.password
- Password of the committee member.userID
- User ID of the committee member.email
- Email of the committee member.faculty
- Faculty to which the committee member belongs.firstLogin
- Flag indicating whether it's the committee member's first login.campID
- Identifier of the camp where the committee member is associated.point
- Points accrued by the committee member.
-
-
Method Detail
-
getCampID
public int getCampID()
Gets the identifier of the camp where the committee member is associated.- Returns:
- The identifier of the camp where the committee member is associated.
-
setCampID
public void setCampID(int campID)
Sets the identifier of the camp where the committee member is associated.- Parameters:
campID
- The identifier to set for the camp where the committee member is associated.
-
getPoint
public int getPoint()
Gets the points accrued by the committee member.- Returns:
- The points accrued by the committee member.
-
setPoint
public void setPoint(int point)
Sets the points accrued by the committee member.- Parameters:
point
- The points to set for the committee member.
-
-