Compare commits

...

10 Commits

Author SHA1 Message Date
ae784765d3 Merge remote-tracking branch 'origin/main' into Stochastic_occupancy_model
# Conflicts:
#	.gitignore
2023-11-30 13:26:05 +01:00
sanam
72e14799fe Cluster class defined 2023-09-29 14:53:37 -04:00
286e5c190c modifying sanam catalog model 2023-09-28 10:35:11 -04:00
sanam
12d20f2d7a Stochastic schedule folder created 2023-09-22 09:42:10 -04:00
sanam
bf004f9e18 Stochastic schedule folder created 2023-09-21 14:33:13 -04:00
sanam
482c06e4c2 new class created 2023-09-20 11:30:41 -04:00
a3028221e3 added .gitignore to always ignore .idea 2023-08-11 10:17:02 -04:00
sanam
e1ca39950f new directory created 2023-08-10 11:25:40 -04:00
sanam
02a03b8239 new directory created 2023-08-10 11:23:23 -04:00
sanam
9094c286c4 new branch created 2023-08-10 10:07:14 -04:00
3 changed files with 109 additions and 1 deletions

View File

@ -0,0 +1,76 @@
"""
Stochastic_occupancy catalog Archetype
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2022 Concordia CERC group
Project Coder Sanam Dabirian sanam.dabirian@mail.concordia.ca
"""
class Archetype:
"""
Archetype class
"""
def __init__(self, archetype_id,
name,
building_type,
building_subtype,
climate_zone
):
self._id = archetype_id
self._name = name
self._building_type = building_type
self._building_subtype = building_subtype
self._climate_zone = climate_zone
self._clusters = clusters
@property
def id(self):
"""
Get archetype id
:return: str
"""
return self._id
@property
def name(self):
"""
Get archetype name
:return: str
"""
return self._name
@property
def building_type(self):
"""
Get archetype type
:return: str
"""
return self._building_type
@property
def building_subtype(self):
"""
Get archetype type
:return: str
"""
return self._building_subtype
@property
def climate_zone(self):
"""
Get archetype climate zone
:return: str
"""
return self._climate_zone
def to_dictionary(self):
"""Class content to dictionary"""
_stochastic_schedule = []
content = {'Archetype': {'id': self.id,
'name': self.name,
'building_type': self.building_type,
'building_subtype': self.building_subtype,
'climate zone': self.climate_zone
}
}
return content

View File

@ -0,0 +1,32 @@
"""
Stochastic_occupancy catalog Clusters
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2022 Concordia CERC group
Project Coder Sanam Dabirian sanam.dabirian@mail.concordia.ca
"""
from hub.catalog_factories.data_models.usages.schedule import Schedule
class Cluster:
"""
Clusters class
"""
def __init__(self, day_type,
schedules
):
self._day_type = day_type
self._schedules = schedules
@property
def day_type(self):
"""
Get type of day (Weekday or Weekend)
:return: str
"""
return self._day_type
@property
def schedules(self) -> [Schedule]:
return self._schedules

View File

@ -54,7 +54,7 @@ class Lighting:
return self._latent_fraction return self._latent_fraction
@property @property
def schedules(self) -> Union[None, List[Schedule]]: def schedules(self) -> Union[None, List[Schedule], List[Stochastic_Schedule]]:
""" """
Get schedules Get schedules
dataType = fraction dataType = fraction