Package sc2002.FCS1.grp2
Class HDBOfficer
- All Implemented Interfaces:
CSVEncodable
This represents a user that is of HDB Officer role.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumPossible menu options for a HDB Manager role Each option listed here are options that only a HDB Manager can interact with. -
Constructor Summary
ConstructorsConstructorDescriptionHDBOfficer(List<CSVCell> cells) Constructor forCSVParserclass This constructor constructs values based on CSV encoded rows representing this object. -
Method Summary
Modifier and TypeMethodDescriptiongetMenu()This method will prepare the list of tasks of which a user can perform.(package private) StringUser-readable name for the type of user.booleanisOfficerForProject(BTOProject project) Check if this officer is involved in given project.Override this to provide which file type the encodable class should be represented as.Methods inherited from class Applicant
canApplyProject, getEligibleFlatTypesMethods inherited from class User
checkPassword, encode, equals, getAge, getCommonMenuOptions, getEnquiriesSystem, getListingFilter, getListingSort, getMaritalStatus, getMenuWithScopedOptions, getName, getNric, nameEquals, print, setEnquiriesSystem, setListingFilter, setListingSort, setPassword, toString
-
Constructor Details
-
HDBOfficer
Constructor forCSVParserclass This constructor constructs values based on CSV encoded rows representing this object.- Parameters:
cells-
-
-
Method Details
-
isOfficerForProject
Check if this officer is involved in given project.- Parameters:
project- The project to check against.- Returns:
- true if officer is involved in project, false otherwise.
-
getReadableTypeName
String getReadableTypeName()Description copied from class:UserUser-readable name for the type of user.- Overrides:
getReadableTypeNamein classApplicant- Returns:
- the type of the user, such as "Applicant".
-
sourceFileType
Description copied from interface:CSVEncodableOverride this to provide which file type the encodable class should be represented as. This ensures that the right data is written in the right file, depending on the class type.- Specified by:
sourceFileTypein interfaceCSVEncodable- Overrides:
sourceFileTypein classApplicant- Returns:
- a CSVFileType, such as
CSVFileType.MANAGER_LIST.
-
getMenu
Description copied from class:UserThis method will prepare the list of tasks of which a user can perform. It can be expected that the contents of the list will be presented to the user to let them know what they can do. Subclasses must add on to the list by the superclass, rather than creating a new list.
-