2021-08-26 13:27:43 -04:00
|
|
|
"""
|
|
|
|
Constant module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
|
|
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2021-06-10 10:48:30 -04:00
|
|
|
# universal constants
|
2021-05-25 13:34:57 -04:00
|
|
|
KELVIN = 273.15
|
2021-06-10 10:48:30 -04:00
|
|
|
|
|
|
|
# time
|
2021-09-01 12:14:48 -04:00
|
|
|
SECOND = 'second'
|
2021-05-25 13:34:57 -04:00
|
|
|
MINUTE = 'minute'
|
|
|
|
HOUR = 'hour'
|
|
|
|
DAY = 'day'
|
|
|
|
WEEK = 'week'
|
|
|
|
MONTH = 'month'
|
|
|
|
YEAR = 'year'
|
2021-06-10 10:48:30 -04:00
|
|
|
|
2021-09-01 12:14:48 -04:00
|
|
|
# day types
|
|
|
|
MONDAY = 'monday'
|
|
|
|
TUESDAY = 'tuesday'
|
|
|
|
WEDNESDAY = 'wednesday'
|
|
|
|
THURSDAY = 'thursday'
|
|
|
|
FRIDAY = 'friday'
|
|
|
|
SATURDAY = 'saturday'
|
|
|
|
SUNDAY = 'sunday'
|
|
|
|
HOLIDAY = 'holiday'
|
|
|
|
WINTER_DESIGN_DAY = 'winter_design_day'
|
|
|
|
SUMMER_DESIGN_DAY = 'summer_design_day'
|
|
|
|
|
|
|
|
# data types
|
|
|
|
ANY_NUMBER = 'any_number'
|
|
|
|
FRACTION = 'fraction'
|
|
|
|
ON_OFF = 'on_off'
|
|
|
|
TEMPERATURE = 'temperature'
|
|
|
|
HUMIDITY = 'humidity'
|
|
|
|
CONTROL_TYPE = 'control_type'
|
|
|
|
|
2021-06-10 10:48:30 -04:00
|
|
|
# todo: modify code to use global constants instead of hard-coded values
|
|
|
|
# surface types
|
|
|
|
WALL = 'Wall'
|
|
|
|
GROUND_WALL = 'Ground wall'
|
|
|
|
GROUND = 'Ground'
|
|
|
|
ATTIC_FLOOR = 'Attic floor'
|
|
|
|
ROOF = 'Roof'
|
|
|
|
INTERIOR_SLAB = 'Interior slab'
|
|
|
|
INTERIOR_WALL = 'Interior wall'
|
2021-06-23 09:53:33 -04:00
|
|
|
VIRTUAL_INTERNAL = 'Virtual internal'
|
2021-06-10 10:48:30 -04:00
|
|
|
WINDOW = 'Window'
|
|
|
|
DOOR = 'Door'
|
|
|
|
SKYLIGHT = 'Skylight'
|
|
|
|
|
|
|
|
# todo: homogenize function and usage!!
|
|
|
|
# function
|
|
|
|
RESIDENTIAL = 'residential'
|
|
|
|
SFH = 'single family house'
|
|
|
|
MFH = 'multifamily house'
|
|
|
|
HOTEL = 'hotel'
|
|
|
|
HOSPITAL = 'hospital'
|
|
|
|
OUTPATIENT = 'outpatient'
|
|
|
|
COMMERCIAL = 'commercial'
|
|
|
|
STRIP_MALL = 'strip mall'
|
|
|
|
WAREHOUSE = 'warehouse'
|
|
|
|
PRIMARY_SCHOOL = 'primary school'
|
|
|
|
SECONDARY_SCHOOL = 'secondary school'
|
|
|
|
OFFICE = 'office'
|
|
|
|
LARGE_OFFICE = 'large office'
|
2021-08-11 12:13:16 -04:00
|
|
|
OFFICE_WORKSHOP = 'office/workshop'
|
2021-06-10 10:48:30 -04:00
|
|
|
|
|
|
|
# usage
|
|
|
|
INDUSTRY = 'industry'
|
|
|
|
OFFICE_ADMINISTRATION = 'office and administration'
|
|
|
|
HEALTH_CARE = 'health care'
|
|
|
|
RETAIL = 'retail'
|
|
|
|
HALL = 'hall'
|
|
|
|
RESTAURANT = 'restaurant'
|
|
|
|
EDUCATION = 'education'
|