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 intto 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 arraylistintGets number of students supervisingvoidinitialise 1 projectvoidinitialises request to be madevoidprints out the list of projects that can be viewed and selected by studentvoidupdates the list of projects created by supervisor and creates a new projectvoidUpdates 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:
initialiseProjectin interfaceIinitialiseProject
-
updateProject
public void updateProject()updates the list of projects created by supervisor and creates a new project- Specified by:
updateProjectin interfaceIinitialiseProject
-
initialiseRequest
public void initialiseRequest()initialises request to be made- Specified by:
initialiseRequestin interfaceIinitialiseRequest
-
updateRequest
public void updateRequest()Updates request list of supervisor- Specified by:
updateRequestin 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
-