Merge remote-tracking branch 'origin/master'

This commit is contained in:
pilar 2020-10-19 12:46:54 -04:00
commit 799313cea1
6 changed files with 155 additions and 13 deletions

View File

@ -0,0 +1,26 @@
"""
Building module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Sanam Dabirian sanam.dabirian@mail.concordia.ca
"""
class appliances_facilities:
"""
Electric appliance facilities class
"""
def __init__(self, appliance_electric_power):
"""
Constructor
"""
self._appliance_electric_power = appliance_electric_power
@property
def appliance_electric_power(self):
"""
Get appliances electric power
:return: appliances electric power
"""
return self._appliance_electric_power

View File

@ -10,14 +10,18 @@ class facilities:
facilities class
"""
def __init__(self, operation_schedules, heat_dissipation, lighting_facilities_electric_power):
def __init__(self, operation_schedules, convective_fraction, latent_fraction,
radiant_fraction, total_value_of_heat_dissipation):
"""
Constructor
"""
self._operation_schedules = operation_schedules
self._heat_dissipation = heat_dissipation
self._lighting_facilities_electric_power = lighting_facilities_electric_power
self._convective_fraction = convective_fraction
self._latent_fraction = latent_fraction
self._radiant_fraction = radiant_fraction
self._total_value_of_heat_dissipation = total_value_of_heat_dissipation
@property
@ -29,18 +33,33 @@ class facilities:
return self._operation_schedules
@property
def heat_dissipation(self):
def convective_fraction(self):
"""
Get heat dissipation
:return: heat dissipation
Get convective fraction value
:return: convective fraction
"""
return self._heat_dissipation
return self._convective_fraction
@property
def lighting_facilities_electric_power(self):
def latent_fraction(self):
"""
Get electric power of the lightings
:return: lighting electric power
Get latent fraction value
:return: latent fraction
"""
return self._lighting_facilities_electric_power
return self._latent_fraction
@property
def radiant_fraction(self):
"""
Get radiant fraction value
:return: radiant fraction
"""
return self._radiant_fraction
@property
def total_value_of_heat_dissipation(self):
"""
Get heat dissipation value
:return: heat dissipation
"""
return self._total_value_of_heat_dissipation

View File

@ -0,0 +1,36 @@
"""
Building module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Sanam Dabirian sanam.dabirian@mail.concordia.ca
"""
class household:
"""
Household class
"""
def __init__(self, resident_type, household_type):
"""
Constructor
"""
self._resident_type = resident_type
self._household_type = household_type
@property
def resident_type(self):
"""
Get resident type
:return: resident type
"""
return self._resident_type
@property
def household_type(self):
"""
Get household type
:return: household type
"""
return self._household_type

View File

@ -0,0 +1,36 @@
"""
Building module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Sanam Dabirian sanam.dabirian@mail.concordia.ca
"""
class hvac_facilities:
"""
HVAC facilities class
"""
def __init__(self, temperature_setpoints, hvac_schedules):
"""
Constructor
"""
self._temperature_setpoints = temperature_setpoints
self._hvac_schedules = hvac_schedules
@property
def temperature_setpoints(self):
"""
Get temperature setpoints
:return: temperature setpoints
"""
return self._temperature_setpoints
@property
def hvac_schedules(self):
"""
Get HVAC schedules
:return: HVAC schedules
"""
return self._hvac_schedules

View File

@ -0,0 +1,26 @@
"""
Building module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Sanam Dabirian sanam.dabirian@mail.concordia.ca
"""
class lighting_facilities:
"""
Lighting facilities class
"""
def __init__(self, electric_power):
"""
Constructor
"""
self._electric_power = electric_power
@property
def electric_power(self):
"""
Get lighting electric power
:return: lighting electric power
"""
return self._electric_power

View File

@ -34,11 +34,10 @@ class TestGeometryFactory(TestCase):
Test subway parsing
:return:
"""
city = self._get_citygml()
file_path = (self._example_path / 'subway.osm').resolve()
subway_entrances = self._features = GeometryFactory('osm_subway', file_path).features
self.assertIsNotNone(subway_entrances, 'subway entrances is none')
self.assertEquals(len(subway_entrances), 20, 'Wrong number of subway entrances')
self.assertEqual(len(subway_entrances), 20, 'Wrong number of subway entrances')
def test_citygml_city(self):
"""