Delete comments
This commit is contained in:
parent
0b3518f5a3
commit
017a8ce6a7
|
@ -23,46 +23,37 @@ class Machine:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def id(self) -> int:
|
def id(self) -> int:
|
||||||
""":return: int"""
|
|
||||||
return self._machine_id
|
return self._machine_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
""":return: str"""
|
|
||||||
return self._name
|
return self._name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def work_efficiency(self):
|
def work_efficiency(self):
|
||||||
""":return: float"""
|
|
||||||
return self._work_efficiency_rate
|
return self._work_efficiency_rate
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def work_efficiency_unit(self):
|
def work_efficiency_unit(self):
|
||||||
""":return: str"""
|
|
||||||
return self._work_efficiency_unit
|
return self._work_efficiency_unit
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def energy_consumption_rate(self):
|
def energy_consumption_rate(self):
|
||||||
""":return: float"""
|
|
||||||
return self._energy_consumption_rate
|
return self._energy_consumption_rate
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def energy_consumption_unit(self):
|
def energy_consumption_unit(self):
|
||||||
""":return: str"""
|
|
||||||
return self._energy_consumption_unit
|
return self._energy_consumption_unit
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def emission_factor(self):
|
def emission_factor(self):
|
||||||
""":return: float"""
|
|
||||||
return self._emission_factor
|
return self._emission_factor
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def emission_unit(self):
|
def emission_unit(self):
|
||||||
""":return: str"""
|
|
||||||
return self._emission_unit
|
return self._emission_unit
|
||||||
|
|
||||||
def total_machine_emssion(self):
|
def total_machine_emssion(self):
|
||||||
""":return: float"""
|
|
||||||
return self._work_efficiency_rate * \
|
return self._work_efficiency_rate * \
|
||||||
self._energy_consumption_rate * \
|
self._energy_consumption_rate * \
|
||||||
self._emission_factor
|
self._emission_factor
|
||||||
|
|
Loading…
Reference in New Issue
Block a user