Interface ResidenceServiceable

All Known Implementing Classes:
Dormitory

public interface ResidenceServiceable
The interface which represents an instution which can be user for the renting dormitories or accommodations
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The method that allows to add an administrator for the specific residence
    void
    The method which provides the ability to add an existing or recently created place which is able to be rented to the specific residence
    void
    The method which allows to add the created rent to the specific residence
    void
    The method that allows to remove an existing the administrator from the specific residence
    void
    The method that allows to remove the place from an specific residence
    void
    The method which provides the ability to remove the rent from the specific residence
  • Method Details

    • addRent

      void addRent(Rentable rent)
      The method which allows to add the created rent to the specific residence
      Parameters:
      rent - - a renting offer created by the specific client
    • removeRent

      void removeRent(Rentable rent)
      The method which provides the ability to remove the rent from the specific residence
      Parameters:
      rent - - a renting offer that should be removed from the dormitory
    • addPlace

      void addPlace(Liveable place)
      The method which provides the ability to add an existing or recently created place which is able to be rented to the specific residence
      Parameters:
      place - - the place that will be added to an specific residence
    • removePlace

      void removePlace(Liveable place)
      The method that allows to remove the place from an specific residence
      Parameters:
      place - - the place which is about to be removed from the specific residence
    • addAdministrator

      void addAdministrator(Administrator admin)
      The method that allows to add an administrator for the specific residence
      Parameters:
      admin - - the administrator who will be in charge of the specific residence
    • removeAdministrator

      void removeAdministrator(Administrator admin)
      The method that allows to remove an existing the administrator from the specific residence
      Parameters:
      admin - - the administrator that should be removed from the specific residence