2021-10-18 11:37:20 -04:00
|
|
|
"""
|
|
|
|
EnergySystem module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
2021-10-22 13:13:12 -04:00
|
|
|
Copyright © 2021 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
2021-11-16 07:37:27 -05:00
|
|
|
Contributor Peter Yefi peteryefi@gmail.com
|
2021-10-18 11:37:20 -04:00
|
|
|
"""
|
|
|
|
|
|
|
|
from city_model_structure.city_object import CityObject
|
|
|
|
from city_model_structure.energy_systems.heat_pump import HeatPump
|
|
|
|
|
|
|
|
|
|
|
|
class EnergySystem(CityObject):
|
2021-10-20 10:24:01 -04:00
|
|
|
"""
|
2021-10-18 11:37:20 -04:00
|
|
|
EnergySystem(CityObject) class
|
|
|
|
"""
|
2021-10-20 10:24:01 -04:00
|
|
|
def __init__(self, name, lod, surfaces, city_lower_corner):
|
|
|
|
super().__init__(name, lod, surfaces, city_lower_corner)
|
|
|
|
self._heat_pump = None
|
2021-11-16 07:37:27 -05:00
|
|
|
self._type = 'energy_system'
|
2021-10-18 11:37:20 -04:00
|
|
|
|
2021-10-20 10:24:01 -04:00
|
|
|
@property
|
|
|
|
def heat_pump(self) -> HeatPump:
|
|
|
|
return self._heat_pump
|
2021-10-21 09:50:02 -04:00
|
|
|
|
2021-11-16 07:37:27 -05:00
|
|
|
@heat_pump.setter
|
|
|
|
def heat_pump(self, value):
|
|
|
|
"""
|
|
|
|
Set heat pump for energy system
|
|
|
|
:param value: HeatPump
|
|
|
|
"""
|
|
|
|
if self._heat_pump is None:
|
|
|
|
self._heat_pump = value
|
|
|
|
|
|
|
|
@property
|
|
|
|
def type(self) -> str:
|
|
|
|
"""
|
|
|
|
Type of city object
|
|
|
|
:return: str
|
|
|
|
"""
|
|
|
|
return self._type
|