Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73960473
comfort_data.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 25, 12:25
Size
1 KB
Mime Type
text/x-python
Expires
Sat, Jul 27, 12:25 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19305999
Attached To
R3852 EMS for Smart-Building
comfort_data.py
View Options
__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
Log In to Comment