54 lines
1.2 KiB
Python
54 lines
1.2 KiB
Python
"""
|
|
Building module
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
Copyright © 2020 Project Author Sanam Dabirian sanam.dabirian@mail.concordia.ca
|
|
"""
|
|
|
|
|
|
class DomesticHotWaterFacility:
|
|
"""
|
|
Domestic Hot Water facilities class
|
|
"""
|
|
|
|
def __init__(self, number_of_baths, number_of_showers, number_of_basin, water_storage_volume):
|
|
"""
|
|
Constructor
|
|
"""
|
|
|
|
self._number_of_baths = number_of_baths
|
|
self._number_of_showers = number_of_showers
|
|
self._number_of_basin = number_of_basin
|
|
self._water_storage_volume = water_storage_volume
|
|
|
|
@property
|
|
def number_of_baths(self):
|
|
"""
|
|
Get number of baths of a building unit
|
|
:return: number of baths
|
|
"""
|
|
return self._number_of_baths
|
|
|
|
@property
|
|
def number_of_showers(self):
|
|
"""
|
|
Get number of showers of a building unit
|
|
:return: number of showers
|
|
"""
|
|
return self._number_of_showers
|
|
|
|
@property
|
|
def number_of_basin(self):
|
|
"""
|
|
Get number of wash basins of a building unit
|
|
:return: number of wash basins
|
|
"""
|
|
return self._number_of_basin
|
|
|
|
@property
|
|
def water_storage_volume(self):
|
|
"""
|
|
Get the volume of water storage
|
|
:return: volume of water storage
|
|
"""
|
|
return self._water_storage_volume
|