new system classes added
This commit is contained in:
parent
e9559a8485
commit
686b04cb6c
|
@ -4,7 +4,8 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||||
Copyright © 2022 Concordia CERC group
|
Copyright © 2022 Concordia CERC group
|
||||||
Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
||||||
"""
|
"""
|
||||||
from typing import Union
|
from typing import Union, List
|
||||||
|
from city_model_structure.building_demand.thermal_zone import ThermalZone
|
||||||
|
|
||||||
|
|
||||||
class HvacSystem:
|
class HvacSystem:
|
||||||
|
@ -13,11 +14,12 @@ class HvacSystem:
|
||||||
"""
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._type = None
|
self._type = None
|
||||||
|
self._thermal_zones = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def type(self) -> Union[None, str]:
|
def type(self) -> Union[None, str]:
|
||||||
"""
|
"""
|
||||||
Get hvac system type a thermal zone
|
Get hvac system type
|
||||||
:return: None or str
|
:return: None or str
|
||||||
"""
|
"""
|
||||||
return self._type
|
return self._type
|
||||||
|
@ -25,9 +27,24 @@ class HvacSystem:
|
||||||
@type.setter
|
@type.setter
|
||||||
def type(self, value):
|
def type(self, value):
|
||||||
"""
|
"""
|
||||||
Set heating set point defined for a thermal zone
|
Set hvac system type
|
||||||
:param value: str
|
:param value: str
|
||||||
"""
|
"""
|
||||||
if value is not None:
|
if value is not None:
|
||||||
self._type = str(value)
|
self._type = str(value)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def thermal_zones(self) -> Union[None, List[ThermalZone]]:
|
||||||
|
"""
|
||||||
|
Get list of zones that this unit serves
|
||||||
|
:return: None or [ThermalZone]
|
||||||
|
"""
|
||||||
|
return self._thermal_zones
|
||||||
|
|
||||||
|
@thermal_zones.setter
|
||||||
|
def thermal_zones(self, value):
|
||||||
|
"""
|
||||||
|
Set list of zones that this unit serves
|
||||||
|
:param value: [ThermalZone]
|
||||||
|
"""
|
||||||
|
self._thermal_zones = value
|
||||||
|
|
33
city_model_structure/energy_systems/hvac_terminal_unit.py
Normal file
33
city_model_structure/energy_systems/hvac_terminal_unit.py
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
"""
|
||||||
|
HvacTerminalUnit module
|
||||||
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||||
|
Copyright © 2022 Concordia CERC group
|
||||||
|
Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
||||||
|
"""
|
||||||
|
from typing import Union
|
||||||
|
|
||||||
|
|
||||||
|
class HvacTerminalUnit:
|
||||||
|
"""
|
||||||
|
HvacTerminalUnit class
|
||||||
|
"""
|
||||||
|
def __init__(self):
|
||||||
|
self._type = None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def type(self) -> Union[None, str]:
|
||||||
|
"""
|
||||||
|
Get type of hvac terminal unit defined for a thermal zone
|
||||||
|
:return: None or str
|
||||||
|
"""
|
||||||
|
return self._type
|
||||||
|
|
||||||
|
@type.setter
|
||||||
|
def type(self, value):
|
||||||
|
"""
|
||||||
|
Set type of hvac terminal unit defined for a thermal zone
|
||||||
|
:param value: str
|
||||||
|
"""
|
||||||
|
if value is not None:
|
||||||
|
self._type = str(value)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user