added Schedule class. Modified schedules attribute in usage_zone.py according to this new class. Modified comnet import and its test. Other imports and exports related to schedules will be broken.
This commit is contained in:
parent
7bb775f92a
commit
83b0716f0f
|
@ -10,6 +10,7 @@ from typing import List, TypeVar
|
|||
InternalGains = TypeVar('InternalGains')
|
||||
Occupants = TypeVar('Occupants')
|
||||
Polyhedron = TypeVar('Polyhedron')
|
||||
Schedule = TypeVar('Schedule')
|
||||
|
||||
|
||||
class UsageZone:
|
||||
|
@ -23,7 +24,6 @@ class UsageZone:
|
|||
self._heating_setpoint = None
|
||||
self._heating_setback = None
|
||||
self._cooling_setpoint = None
|
||||
self._occupancy_density = None
|
||||
self._hours_day = None
|
||||
self._days_year = None
|
||||
self._dhw_average_volume_pers_day = None
|
||||
|
@ -31,9 +31,6 @@ class UsageZone:
|
|||
self._electrical_app_average_consumption_sqm_year = None
|
||||
self._mechanical_air_change = None
|
||||
self._occupants = None
|
||||
self._heating_schedule = None
|
||||
self._cooling_schedule = None
|
||||
self._ventilation_schedule = None
|
||||
self._schedules = None
|
||||
self._volume = None
|
||||
self._volume_geometry = None
|
||||
|
@ -195,85 +192,21 @@ class UsageZone:
|
|||
self._occupants = values
|
||||
|
||||
@property
|
||||
def heating_schedule(self) -> dict:
|
||||
def schedules(self) -> List[Schedule]:
|
||||
"""
|
||||
Get heating schedules: list of 0, 1 that define whether the heating system should be OFF or ON
|
||||
:return: dict{DataFrame(int)}
|
||||
"""
|
||||
return self._heating_schedule
|
||||
|
||||
@heating_schedule.setter
|
||||
def heating_schedule(self, values):
|
||||
"""
|
||||
Set heating schedules
|
||||
:param values: dict{DataFrame(int)}
|
||||
"""
|
||||
self._heating_schedule = values
|
||||
|
||||
@property
|
||||
def cooling_schedule(self) -> dict:
|
||||
"""
|
||||
Get cooling schedules: list of 0, 1 that define whether the cooling system should be OFF or ON
|
||||
:return: dict{DataFrame(int)}
|
||||
"""
|
||||
return self._cooling_schedule
|
||||
|
||||
@cooling_schedule.setter
|
||||
def cooling_schedule(self, values):
|
||||
"""
|
||||
Set cooling schedules
|
||||
:param values: dict{DataFrame(int)}
|
||||
"""
|
||||
self._cooling_schedule = values
|
||||
|
||||
@property
|
||||
def ventilation_schedule(self) -> dict:
|
||||
"""
|
||||
Get ventilation schedules: list of 0, 1 that define whether the ventilation system should be OFF or ON
|
||||
:return: dict{DataFrame(int)}
|
||||
"""
|
||||
return self._ventilation_schedule
|
||||
|
||||
@ventilation_schedule.setter
|
||||
def ventilation_schedule(self, values):
|
||||
"""
|
||||
Set ventilation_schedule schedules
|
||||
:param values: dict{DataFrame(int)}
|
||||
"""
|
||||
self._ventilation_schedule = values
|
||||
|
||||
@property
|
||||
def schedules(self) -> dict:
|
||||
"""
|
||||
Get schedules of diverse issues in a dictionary
|
||||
:return: dict()
|
||||
Get usage zone schedules
|
||||
:return: List[Schedule]
|
||||
"""
|
||||
return self._schedules
|
||||
|
||||
@schedules.setter
|
||||
def schedules(self, values):
|
||||
"""
|
||||
Set schedules of diverse issues in a dictionary
|
||||
:param values: dict()
|
||||
Set usage zone schedules
|
||||
:param values: List[Schedule]
|
||||
"""
|
||||
self._schedules = values
|
||||
|
||||
@property
|
||||
def occupancy_density(self):
|
||||
"""
|
||||
Get schedules density in persons per square meter
|
||||
:return: float
|
||||
"""
|
||||
return self._occupancy_density
|
||||
|
||||
@occupancy_density.setter
|
||||
def occupancy_density(self, values):
|
||||
"""
|
||||
Set schedules density in persons per square meter
|
||||
:param values: float
|
||||
"""
|
||||
self._occupancy_density = values
|
||||
|
||||
@property
|
||||
def dhw_average_volume_pers_day(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user