171 lines
3.2 KiB
Python
171 lines
3.2 KiB
Python
"""
|
|
Properties module to be used by mockup building
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
Copyright © 2023 Concordia CERC group
|
|
Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
|
"""
|
|
|
|
|
|
class EnergySystem:
|
|
"""
|
|
EnergySystem class
|
|
"""
|
|
def __init__(self):
|
|
self._generation_system = None
|
|
self._demand_types = None
|
|
|
|
@property
|
|
def generation_system(self):
|
|
return self._generation_system
|
|
|
|
@generation_system.setter
|
|
def generation_system(self, value):
|
|
self._generation_system = value
|
|
|
|
@property
|
|
def demand_types(self):
|
|
return self._demand_types
|
|
|
|
@demand_types.setter
|
|
def demand_types(self, value):
|
|
self._demand_types = value
|
|
|
|
|
|
class GenerationSystem:
|
|
"""
|
|
GenerationSystem class
|
|
"""
|
|
|
|
def __init__(self):
|
|
self._generic_generation_system = None
|
|
|
|
@property
|
|
def generic_generation_system(self):
|
|
return self._generic_generation_system
|
|
|
|
@generic_generation_system.setter
|
|
def generic_generation_system(self, value):
|
|
self._generic_generation_system = value
|
|
|
|
|
|
class GenericGenerationSystem:
|
|
"""
|
|
GenericGenerationSystem class
|
|
"""
|
|
|
|
def __init__(self):
|
|
self._fuel_type = None
|
|
|
|
@property
|
|
def fuel_type(self):
|
|
return self._fuel_type
|
|
|
|
@fuel_type.setter
|
|
def fuel_type(self, value):
|
|
self._fuel_type = value
|
|
|
|
|
|
class ThermalZone:
|
|
"""
|
|
ThermalZone class
|
|
"""
|
|
|
|
def __init__(self):
|
|
self._thermal_boundaries = None
|
|
self._total_floor_area = None
|
|
|
|
@property
|
|
def thermal_boundaries(self):
|
|
return self._thermal_boundaries
|
|
|
|
@thermal_boundaries.setter
|
|
def thermal_boundaries(self, value):
|
|
self._thermal_boundaries = value
|
|
|
|
@property
|
|
def total_floor_area(self):
|
|
return self._total_floor_area
|
|
|
|
@total_floor_area.setter
|
|
def total_floor_area(self, value):
|
|
self._total_floor_area = value
|
|
|
|
|
|
class ThermalBoundary:
|
|
"""
|
|
ThermalBoundary class
|
|
"""
|
|
|
|
def __init__(self):
|
|
self._type = None
|
|
self._opaque_area = None
|
|
self._window_ratio = None
|
|
|
|
@property
|
|
def type(self):
|
|
return self._type
|
|
|
|
@type.setter
|
|
def type(self, value):
|
|
self._type = value
|
|
|
|
@property
|
|
def opaque_area(self):
|
|
return self._opaque_area
|
|
|
|
@opaque_area.setter
|
|
def opaque_area(self, value):
|
|
self._opaque_area = value
|
|
|
|
@property
|
|
def window_ratio(self):
|
|
return self._window_ratio
|
|
|
|
@window_ratio.setter
|
|
def window_ratio(self, value):
|
|
self._window_ratio = value
|
|
|
|
|
|
class Roof:
|
|
"""
|
|
Roof class
|
|
"""
|
|
|
|
def __init__(self):
|
|
self._solid_polygon = None
|
|
self._solar_collectors_area_reduction_factor = None
|
|
|
|
@property
|
|
def solid_polygon(self):
|
|
return self._solid_polygon
|
|
|
|
@solid_polygon.setter
|
|
def solid_polygon(self, value):
|
|
self._solid_polygon = value
|
|
|
|
@property
|
|
def solar_collectors_area_reduction_factor(self):
|
|
return self._solar_collectors_area_reduction_factor
|
|
|
|
@solar_collectors_area_reduction_factor.setter
|
|
def solar_collectors_area_reduction_factor(self, value):
|
|
self._solar_collectors_area_reduction_factor = value
|
|
|
|
|
|
class Polygon:
|
|
"""
|
|
Polygon class
|
|
"""
|
|
|
|
def __init__(self):
|
|
self._area = None
|
|
|
|
@property
|
|
def area(self):
|
|
return self._area
|
|
|
|
@area.setter
|
|
def area(self, value):
|
|
self._area = value
|
|
|