Package main.Models
Class Supervisor
java.lang.Object
main.Models.User
main.Models.Supervisor
- All Implemented Interfaces:
IinitialiseProject
,IinitialiseRequest
- Direct Known Subclasses:
Coordinator
The Supervisor class
- Since:
- 2023-4-13
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
to keep track of how many students the supervisor is supervising -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProjectbyID
(String projectID) Gets supervisor's project according to project's IDGets list of projects created by supervisorgetRequestbyID
(String requestID) Method to get a request in the request list by reuqest IDGetter to get supervisor's request arraylistint
Gets number of students supervisingvoid
initialise 1 projectvoid
initialises request to be madevoid
prints out the list of projects that can be viewed and selected by studentvoid
updates the list of projects created by supervisor and creates a new projectvoid
Updates request list of supervisor
-
Field Details
-
countSupervising
protected int countSupervisingto keep track of how many students the supervisor is supervising
-
-
Constructor Details
-
Supervisor
constructor of supervisor- Parameters:
name
- supervisor's nameemail
- supervisor's email
-
-
Method Details
-
getSupCount
public int getSupCount()Gets number of students supervising- Returns:
- numer of students supervising
-
getProjectbyID
Gets supervisor's project according to project's ID- Parameters:
projectID
- ID of project- Returns:
- project of that projectID
-
getProjects
Gets list of projects created by supervisor- Returns:
- projects
-
initialiseProject
public void initialiseProject()initialise 1 project- Specified by:
initialiseProject
in interfaceIinitialiseProject
-
updateProject
public void updateProject()updates the list of projects created by supervisor and creates a new project- Specified by:
updateProject
in interfaceIinitialiseProject
-
initialiseRequest
public void initialiseRequest()initialises request to be made- Specified by:
initialiseRequest
in interfaceIinitialiseRequest
-
updateRequest
public void updateRequest()Updates request list of supervisor- Specified by:
updateRequest
in interfaceIinitialiseRequest
-
getRequests
Getter to get supervisor's request arraylist- Returns:
- supervisor's request arraylist
-
getRequestbyID
Method to get a request in the request list by reuqest ID- Parameters:
requestID
- target request ID- Returns:
- target request
-
printProjects
public void printProjects()prints out the list of projects that can be viewed and selected by student
-