Class HDBOfficer

All Implemented Interfaces:
CSVEncodable

public class HDBOfficer extends Applicant
This represents a user that is of HDB Officer role.
  • Constructor Details

    • HDBOfficer

      public HDBOfficer(List<CSVCell> cells)
      Constructor for CSVParser class This constructor constructs values based on CSV encoded rows representing this object.
      Parameters:
      cells -
  • Method Details

    • isOfficerForProject

      public boolean isOfficerForProject(BTOProject project)
      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: User
      User-readable name for the type of user.
      Overrides:
      getReadableTypeName in class Applicant
      Returns:
      the type of the user, such as "Applicant".
    • sourceFileType

      public CSVFileTypes sourceFileType()
      Description copied from interface: CSVEncodable
      Override 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:
      sourceFileType in interface CSVEncodable
      Overrides:
      sourceFileType in class Applicant
      Returns:
      a CSVFileType, such as CSVFileType.MANAGER_LIST.
    • getMenu

      ArrayList<String> getMenu()
      Description copied from class: User
      This 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.
      Overrides:
      getMenu in class Applicant
      Returns:
      List of tasks that user can do using our BTO system.