2020-10-16 01:25:22 -04:00
|
|
|
"""
|
|
|
|
Building module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
|
|
Copyright © 2020 Project Author Sanam Dabirian sanam.dabirian@mail.concordia.ca
|
|
|
|
"""
|
|
|
|
|
|
|
|
class domestic_hot_water:
|
|
|
|
"""
|
|
|
|
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
|
|
|
|
|
2020-10-16 12:27:24 -04:00
|
|
|
@property
|
2020-10-16 01:25:22 -04:00
|
|
|
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
|
|
|
|
"""
|
2020-10-19 12:47:04 -04:00
|
|
|
return self._water_storage_volume
|