2020-10-20 11:28:21 -04:00
|
|
|
"""
|
|
|
|
Building module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
|
|
Copyright © 2020 Project Author Sanam Dabirian sanam.dabirian@mail.concordia.ca
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2020-10-21 01:12:36 -04:00
|
|
|
class ScheduleValue:
|
2020-10-20 11:28:21 -04:00
|
|
|
"""
|
|
|
|
Schedule Values class
|
|
|
|
"""
|
|
|
|
|
|
|
|
def __init__(self, hour, probability):
|
|
|
|
"""
|
|
|
|
Constructor
|
|
|
|
"""
|
|
|
|
self._hour = hour
|
|
|
|
self._probability = probability
|
|
|
|
|
2020-10-21 10:01:12 -04:00
|
|
|
@property
|
2020-10-20 11:28:21 -04:00
|
|
|
def hour(self):
|
|
|
|
"""
|
|
|
|
Get hours
|
|
|
|
:return: hour of a day
|
|
|
|
"""
|
|
|
|
return self._hour
|
|
|
|
|
|
|
|
@property
|
|
|
|
def probability(self):
|
|
|
|
"""
|
|
|
|
Get probabilities of occupants' presence
|
|
|
|
:return: occupants' presence probabilities
|
|
|
|
"""
|
|
|
|
return self._probability
|