Class Applicant

All Implemented Interfaces:
CSVEncodable
Direct Known Subclasses:
HDBOfficer

public class Applicant extends User
Represents an Applicant user.
  • Constructor Details

    • Applicant

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

    • getEligibleFlatTypes

      Set<FlatType> getEligibleFlatTypes()
      This method gives the eligible flat types available to the applicant
      Returns:
      Eligible Flat Types
    • 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.
      Specified by:
      getMenu in class User
      Returns:
      List of tasks that user can do using our BTO system.
    • 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.
      Returns:
      a CSVFileType, such as CSVFileType.MANAGER_LIST.
    • getReadableTypeName

      String getReadableTypeName()
      Description copied from class: User
      User-readable name for the type of user.
      Specified by:
      getReadableTypeName in class User
      Returns:
      the type of the user, such as "Applicant".
    • canApplyProject

      boolean canApplyProject()
      Description copied from class: User
      For checking on whether a user should be allowed to apply for a project, based on eligibility criteria.
      Specified by:
      canApplyProject in class User
      Returns:
      if user's eligibility criteria matches, returns true, otherwise false.