Call parent constructor into the children

This commit is contained in:
Guille 2020-12-15 10:04:51 -05:00
parent 33c773286c
commit 229f942734
4 changed files with 16 additions and 4 deletions

View File

@ -11,7 +11,10 @@ class DomesticHotWater(Facility):
Domestic Hot Water facilities class
"""
def __init__(self, number_of_baths, number_of_showers, number_of_basin, water_storage_volume):
def __init__(self, number_of_baths, number_of_showers, number_of_basin, water_storage_volume, operation_schedules,
convective_fraction, latent_fraction, radiant_fraction, total_value_of_heat_dissipation):
super().__init__(operation_schedules, convective_fraction, latent_fraction, radiant_fraction,
total_value_of_heat_dissipation)
self._number_of_baths = number_of_baths
self._number_of_showers = number_of_showers
self._number_of_basin = number_of_basin

View File

@ -11,7 +11,10 @@ class ElectricAppliances(Facility):
Electric appliance facilities class
"""
def __init__(self, appliance_electric_power):
def __init__(self, appliance_electric_power, operation_schedules, convective_fraction, latent_fraction,
radiant_fraction, total_value_of_heat_dissipation):
super().__init__(operation_schedules, convective_fraction, latent_fraction, radiant_fraction,
total_value_of_heat_dissipation)
self._appliance_electric_power = appliance_electric_power
@property

View File

@ -11,7 +11,10 @@ class Hvac(Facility):
HVAC facilities class
"""
def __init__(self, temperature_setpoints, hvac_schedules):
def __init__(self, temperature_setpoints, hvac_schedules, operation_schedules, convective_fraction, latent_fraction,
radiant_fraction, total_value_of_heat_dissipation):
super().__init__(operation_schedules, convective_fraction, latent_fraction, radiant_fraction,
total_value_of_heat_dissipation)
self._temperature_setpoints = temperature_setpoints
self._hvac_schedules = hvac_schedules

View File

@ -11,7 +11,10 @@ class Lighting(Facility):
Lighting facilities class
"""
def __init__(self, electric_power):
def __init__(self, electric_power, operation_schedules, convective_fraction, latent_fraction, radiant_fraction,
total_value_of_heat_dissipation):
super().__init__(operation_schedules, convective_fraction, latent_fraction, radiant_fraction,
total_value_of_heat_dissipation)
"""
Constructor
"""