Renamed variables, changed indentation to 2 spaces
This commit is contained in:
parent
e0924cf45f
commit
ca191ab480
|
@ -9,139 +9,139 @@ from typing import List
|
||||||
|
|
||||||
|
|
||||||
class HeatPump:
|
class HeatPump:
|
||||||
"""
|
"""
|
||||||
HeatPump class
|
HeatPump class
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._model = None
|
self._model = None
|
||||||
self._cooling_pf = None
|
self._cooling_capacity = None
|
||||||
self._cooling_pa = None
|
self._cooling_comp_power = None
|
||||||
self._cooling_qw = None
|
self._cooling_water_flow = None
|
||||||
self._heating_pf = None
|
self._heating_capacity = None
|
||||||
self._heating_pa = None
|
self._heating_comp_power = None
|
||||||
self._heating_qw = None
|
self._heating_water_flow = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def model(self) -> str:
|
def model(self) -> str:
|
||||||
"""
|
"""
|
||||||
Get model name
|
Get model name
|
||||||
:return: str
|
:return: str
|
||||||
"""
|
"""
|
||||||
return self._model
|
return self._model
|
||||||
|
|
||||||
@model.setter
|
@model.setter
|
||||||
def model(self, value):
|
def model(self, value):
|
||||||
"""
|
"""
|
||||||
Set model (name, indicated in capacity)
|
Set model (name, indicated in capacity)
|
||||||
:param value: str
|
:param value: str
|
||||||
"""
|
"""
|
||||||
if self._model is None:
|
if self._model is None:
|
||||||
self._model = value
|
self._model = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def cooling_pf(self) -> List[float]:
|
def cooling_capacity(self) -> List[float]:
|
||||||
"""
|
"""
|
||||||
Get cooling capacity in kW
|
Get cooling capacity in kW
|
||||||
:return: [[float]]
|
:return: [[float]]
|
||||||
"""
|
"""
|
||||||
return self._cooling_pf
|
return self._cooling_capacity
|
||||||
|
|
||||||
@cooling_pf.setter
|
@cooling_capacity.setter
|
||||||
def cooling_pf(self, value):
|
def cooling_capacity(self, value):
|
||||||
"""
|
"""
|
||||||
Set cooling capacity in kW
|
Set cooling capacity in kW
|
||||||
:param value: [[float]]
|
:param value: [[float]]
|
||||||
"""
|
"""
|
||||||
if self._cooling_pf is None:
|
if self._cooling_capacity is None:
|
||||||
self._cooling_pf = value
|
self._cooling_capacity = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def cooling_pa(self) -> List[float]:
|
def cooling_comp_power(self) -> List[float]:
|
||||||
"""
|
"""
|
||||||
Get cooling compressor power input in kW
|
Get cooling compressor power input in kW
|
||||||
:return: [[float]]
|
:return: [[float]]
|
||||||
"""
|
"""
|
||||||
return self._cooling_pa
|
return self._cooling_comp_power
|
||||||
|
|
||||||
@cooling_pa.setter
|
@cooling_comp_power.setter
|
||||||
def cooling_pa(self, value):
|
def cooling_comp_power(self, value):
|
||||||
"""
|
"""
|
||||||
Set the cooling compressor in kW
|
Set the cooling compressor in kW
|
||||||
:param value: [[float]]
|
:param value: [[float]]
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
if self._cooling_pa is None:
|
if self._cooling_comp_power is None:
|
||||||
self._cooling_pa = value
|
self._cooling_comp_power = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def cooling_qw(self) -> List[float]:
|
def cooling_water_flow(self) -> List[float]:
|
||||||
"""
|
"""
|
||||||
Get Water flow in m3/h
|
Get Water flow in m3/h
|
||||||
:return: [[float]]
|
:return: [[float]]
|
||||||
"""
|
"""
|
||||||
return self._cooling_qw
|
return self._cooling_water_flow
|
||||||
|
|
||||||
@cooling_qw.setter
|
@cooling_water_flow.setter
|
||||||
def cooling_qw(self, value):
|
def cooling_water_flow(self, value):
|
||||||
"""
|
"""
|
||||||
Set water flow in m3/h
|
Set water flow in m3/h
|
||||||
:param value: [[float]]
|
:param value: [[float]]
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
if self._cooling_qw is None:
|
if self._cooling_water_flow is None:
|
||||||
self._cooling_qw = value
|
self._cooling_water_flow = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def heating_pf(self) -> List[float]:
|
def heating_capacity(self) -> List[float]:
|
||||||
"""
|
"""
|
||||||
Get heating capacity kW
|
Get heating capacity kW
|
||||||
:return: [[float]]
|
:return: [[float]]
|
||||||
"""
|
"""
|
||||||
return self._heating_pf
|
return self._heating_capacity
|
||||||
|
|
||||||
@heating_pf.setter
|
@heating_capacity.setter
|
||||||
def heating_pf(self, value):
|
def heating_capacity(self, value):
|
||||||
"""
|
"""
|
||||||
Set the heating capacity in kW
|
Set the heating capacity in kW
|
||||||
:param value: [[float]]
|
:param value: [[float]]
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
if self._heating_pf is None:
|
if self._heating_capacity is None:
|
||||||
self._heating_pf = value
|
self._heating_capacity = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def heating_pa(self) -> List[float]:
|
def heating_comp_power(self) -> List[float]:
|
||||||
"""
|
"""
|
||||||
Get heating compressor power kW
|
Get heating compressor power kW
|
||||||
:return: [[float]]
|
:return: [[float]]
|
||||||
"""
|
"""
|
||||||
return self._heating_pa
|
return self._heating_comp_power
|
||||||
|
|
||||||
@heating_pa.setter
|
@heating_comp_power.setter
|
||||||
def heating_pa(self, value):
|
def heating_comp_power(self, value):
|
||||||
"""
|
"""
|
||||||
Set the heating compressor power in kW
|
Set the heating compressor power in kW
|
||||||
:param value: [[float]]
|
:param value: [[float]]
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
if self._heating_pa is None:
|
if self._heating_comp_power is None:
|
||||||
self._heating_pa = value
|
self._heating_comp_power = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def heating_qw(self) -> List[float]:
|
def heating_water_flow(self) -> List[float]:
|
||||||
"""
|
"""
|
||||||
Get heating water flow in m3/h
|
Get heating water flow in m3/h
|
||||||
:return: [[float]]
|
:return: [[float]]
|
||||||
"""
|
"""
|
||||||
return self._heating_qw
|
return self._heating_water_flow
|
||||||
|
|
||||||
@heating_qw.setter
|
@heating_water_flow.setter
|
||||||
def heating_qw(self, value):
|
def heating_water_flow(self, value):
|
||||||
"""
|
"""
|
||||||
Set the heating water flow in m3/h
|
Set the heating water flow in m3/h
|
||||||
:param value: [[float]]
|
:param value: [[float]]
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
if self._heating_qw is None:
|
if self._heating_water_flow is None:
|
||||||
self._heating_qw = value
|
self._heating_water_flow = value
|
||||||
|
|
Loading…
Reference in New Issue
Block a user