Modified building.py to add monthly demand values
This commit is contained in:
parent
fe33bd4480
commit
ef0d503b48
|
@ -37,6 +37,8 @@ class Building(CityObject):
|
||||||
self._foot_print = None
|
self._foot_print = None
|
||||||
self._usage_zones = []
|
self._usage_zones = []
|
||||||
self._type = 'building'
|
self._type = 'building'
|
||||||
|
self._monthly_heating = []
|
||||||
|
self._monthly_cooling = []
|
||||||
|
|
||||||
# ToDo: Check this for LOD4
|
# ToDo: Check this for LOD4
|
||||||
self._thermal_zones = []
|
self._thermal_zones = []
|
||||||
|
@ -268,3 +270,37 @@ class Building(CityObject):
|
||||||
:return: List of building units
|
:return: List of building units
|
||||||
"""
|
"""
|
||||||
self._building_units = value
|
self._building_units = value
|
||||||
|
|
||||||
|
@property
|
||||||
|
def monthly_heating(self) -> [float]:
|
||||||
|
"""
|
||||||
|
building monthly heating values in Watts-hour
|
||||||
|
:return: List of float (12 values)
|
||||||
|
"""
|
||||||
|
return self._monthly_heating
|
||||||
|
|
||||||
|
@monthly_heating.setter
|
||||||
|
def monthly_heating(self, value):
|
||||||
|
"""
|
||||||
|
building monthly heating values in Watts-hour
|
||||||
|
:param value: [heating demand]
|
||||||
|
:return: List of float (12 values)
|
||||||
|
"""
|
||||||
|
self._monthly_heating = value
|
||||||
|
|
||||||
|
@property
|
||||||
|
def monthly_cooling(self) -> [float]:
|
||||||
|
"""
|
||||||
|
building monthly cooling values in Watts-hour
|
||||||
|
:return: List of float (12 values)
|
||||||
|
"""
|
||||||
|
return self._monthly_cooling
|
||||||
|
|
||||||
|
@monthly_cooling.setter
|
||||||
|
def monthly_cooling(self, value):
|
||||||
|
"""
|
||||||
|
building monthly cooling values in Watts-hour
|
||||||
|
:param value: [heating demand]
|
||||||
|
:return: List of float (12 values)
|
||||||
|
"""
|
||||||
|
self._monthly_cooling = value
|
||||||
|
|
Loading…
Reference in New Issue
Block a user