Page MenuHomec4science

comfort_data.py
No OneTemporary

File Metadata

Created
Thu, Jul 25, 12:25

comfort_data.py

__author__ = 'Olivier Van Cutsem'
from ems_config import *
class BuildingComfortData():
"""
TODO
"""
def __init__(self, type_quant, cons=None, init_val=None):
# Type of comfort quantity
self.__comfort_type = type_quant
# The current value of the comfort quantity
self.__current_value = init_val
# The constraints linked to this comfort quantity
self.__comfort_constraints = cons
# The sensor & actuator linked to this comfort
self.__linked_sensor = None
self.__linked_actuator = None
@property
def comfort_value(self):
return self.__current_value
@comfort_value.setter
def comfort_value(self, v):
self.__current_value = v
@property
def comfort_constraints(self):
return self.__comfort_constraints
@comfort_constraints.setter
def comfort_constraints(self, v):
self.__comfort_constraints = v
@property
def sensor(self):
return self.__linked_sensor
@sensor.setter
def sensor(self, s):
self.__linked_sensor = s
@property
def actuator(self):
return self.__linked_actuator
@actuator.setter
def actuator(self, a):
self.__linked_actuator = a

Event Timeline