system_assignation/city_model_structure/machine.py

79 lines
1.8 KiB
Python
Raw Normal View History

"""
LifeCycleAssessment retrieve the specific Life Cycle Assessment module for the given region
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Atiya
"""
class Machine:
"""
Machine class
"""
def __init__(self, machine_id, name, work_efficiency, work_efficiency_unit, energy_consumption_rate, energy_consumption_unit,
carbon_emission_factor, carbon_emission_unit):
self._machine_id = machine_id
self._name = name
self._work_efficiency = work_efficiency
self._work_efficiency_unit = work_efficiency_unit
self._energy_consumption_rate = energy_consumption_rate
self._energy_consumption_unit = energy_consumption_unit
self._carbon_emission_factor = carbon_emission_factor
self._carbon_emission_unit = carbon_emission_unit
@property
def id(self):
"""
Get machine id
"""
return self._machine_id
@property
def name(self):
"""
Get machine name
"""
return self._name
@property
def work_efficiency(self):
"""
Get machine work efficiency
"""
return self._work_efficiency
@property
def work_efficiency_unit(self):
"""
Get machine work efficiency unit
"""
return self._work_efficiency_unit
@property
def energy_consumption_rate(self):
"""
Get energy consumption rate
"""
return self._energy_consumption_rate
@property
def energy_consumption_unit(self):
"""
Get energy consumption unit
"""
return self._energy_consumption_unit
@property
def carbon_emission_factor(self):
"""
Get carbon emission factor
"""
return self._carbon_emission_factor
@property
def carbon_emission_unit(self):
"""
Get carbon emission unit
"""
return self._carbon_emission_unit