2020-10-28 13:42:58 -04:00
|
|
|
"""
|
|
|
|
Building module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
|
|
Copyright © 2020 Project Author Sanam Dabirian sanam.dabirian@mail.concordia.ca
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
class ScheduleValue:
|
|
|
|
"""
|
|
|
|
Schedule Values class
|
|
|
|
"""
|
|
|
|
|
|
|
|
def __init__(self, hour, probability):
|
|
|
|
self._hour = hour
|
|
|
|
self._probability = probability
|
|
|
|
|
|
|
|
@property
|
|
|
|
def hour(self):
|
|
|
|
"""
|
|
|
|
Get hours
|
2021-08-30 14:39:24 -04:00
|
|
|
:return: str
|
2020-10-28 13:42:58 -04:00
|
|
|
"""
|
|
|
|
return self._hour
|
|
|
|
|
|
|
|
@property
|
|
|
|
def probability(self):
|
2021-08-26 09:19:38 -04:00
|
|
|
"""
|
|
|
|
Get probabilities of occupants' presence
|
2021-08-30 14:39:24 -04:00
|
|
|
:return: float
|
2021-08-26 09:19:38 -04:00
|
|
|
"""
|
|
|
|
return self._probability
|