2020-06-09 14:07:47 -04:00
|
|
|
"""
|
|
|
|
UsageZone module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
|
|
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
from typing import List
|
2020-06-11 15:45:11 -04:00
|
|
|
from city_model_structure.internal_gains import InternalGains
|
2020-05-18 13:25:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
class UsageZone:
|
2020-06-11 08:06:57 -04:00
|
|
|
"""
|
|
|
|
UsageZone class
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
def __init__(self):
|
|
|
|
self._usage = None
|
|
|
|
self._internal_gains = None
|
|
|
|
self._heating_setpoint = None
|
|
|
|
self._heating_setback = None
|
|
|
|
self._cooling_setpoint = None
|
|
|
|
self._hours_day = None
|
|
|
|
self._days_year = None
|
|
|
|
self._mechanical_air_change = None
|
|
|
|
|
|
|
|
@property
|
|
|
|
def internal_gains(self) -> List[InternalGains]:
|
2020-06-11 08:06:57 -04:00
|
|
|
"""
|
|
|
|
Get usage zone internal gains
|
|
|
|
:return: [InternalGains]
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
return self._internal_gains
|
|
|
|
|
|
|
|
@internal_gains.setter
|
|
|
|
def internal_gains(self, value):
|
2020-06-11 08:06:57 -04:00
|
|
|
"""
|
|
|
|
Set usage zone internal gains
|
|
|
|
:param value: [InternalGains]
|
|
|
|
:return: None
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
self._internal_gains = value
|
|
|
|
|
|
|
|
@property
|
|
|
|
def heating_setpoint(self):
|
2020-06-11 08:06:57 -04:00
|
|
|
"""
|
2020-06-11 15:45:11 -04:00
|
|
|
Get usage zone heating set point in celsius grads
|
|
|
|
:return: float
|
2020-06-11 08:06:57 -04:00
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
return self._heating_setpoint
|
|
|
|
|
|
|
|
@heating_setpoint.setter
|
|
|
|
def heating_setpoint(self, value):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Set usage zone heating set point in celsius grads
|
|
|
|
:param value: float
|
|
|
|
:return: None
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
self._heating_setpoint = value
|
|
|
|
|
|
|
|
@property
|
|
|
|
def heating_setback(self):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Get usage zone heating setback in celsius grads
|
|
|
|
:return: float
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
return self._heating_setback
|
|
|
|
|
|
|
|
@heating_setback.setter
|
|
|
|
def heating_setback(self, value):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Set usage zone heating setback in celsius grads
|
|
|
|
:param value: float
|
|
|
|
:return: None
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
self._heating_setback = value
|
|
|
|
|
|
|
|
@property
|
|
|
|
def cooling_setpoint(self):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Get usage zone cooling setpoint in celsius grads
|
|
|
|
:return: float
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
return self._cooling_setpoint
|
|
|
|
|
|
|
|
@cooling_setpoint.setter
|
|
|
|
def cooling_setpoint(self, value):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Set usage zone cooling setpoint in celsius grads
|
|
|
|
:param value: float
|
|
|
|
:return: None
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
self._cooling_setpoint = value
|
|
|
|
|
|
|
|
@property
|
|
|
|
def hours_day(self):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Get usage zone usage hours per day
|
|
|
|
:return: float
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
return self._hours_day
|
|
|
|
|
|
|
|
@hours_day.setter
|
|
|
|
def hours_day(self, value):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Set usage zone usage hours per day
|
|
|
|
:param value: float
|
|
|
|
:return: float
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
self._hours_day = value
|
|
|
|
|
|
|
|
@property
|
|
|
|
def days_year(self):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Get usage zone usage days per year
|
|
|
|
:return: float
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
return self._days_year
|
|
|
|
|
|
|
|
@days_year.setter
|
|
|
|
def days_year(self, value):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Set usage zone usage days per year
|
|
|
|
:param value: float
|
|
|
|
:return: None
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
self._days_year = value
|
|
|
|
|
|
|
|
@property
|
|
|
|
def mechanical_air_change(self):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Set usage zone mechanical air change in air change per hour
|
|
|
|
:return: float
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
return self._mechanical_air_change
|
|
|
|
|
|
|
|
@mechanical_air_change.setter
|
|
|
|
def mechanical_air_change(self, value):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Get usage zone mechanical air change in air change per hour
|
|
|
|
:param value: float
|
|
|
|
:return: None
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
self._mechanical_air_change = value
|
|
|
|
|
|
|
|
@property
|
|
|
|
def usage(self):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Get usage zone usage
|
|
|
|
:return: str
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
return self._usage
|
|
|
|
|
|
|
|
@usage.setter
|
|
|
|
def usage(self, value):
|
2020-06-11 15:45:11 -04:00
|
|
|
"""
|
|
|
|
Get usage zone usage
|
|
|
|
:param value: str
|
|
|
|
:return: None
|
|
|
|
"""
|
2020-05-18 13:25:08 -04:00
|
|
|
self._usage = value
|