Develop the Machine attribute getters property

This commit is contained in:
Alireza Adli 2024-06-26 14:45:35 -04:00
parent e474541201
commit b5d8053deb
6 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,11 @@
"""
lca_embodied_carbon module
SPDX - License - Identifier: LGPL - 3.0
Copyright © 2022 Concordia CERC group
Project Developers: Alireza Adli alireza.adli@concordia.ca
Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca
"""
class Embodied:
pass

View File

@ -0,0 +1,11 @@
"""
lca_end_of_life_carbon module
SPDX - License - Identifier: LGPL - 3.0
Copyright © 2024 Concordia CERC group
Project Developers: Alireza Adli alireza.adli@concordia.ca
Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca
"""
class EndOfLife:
pass

View File

@ -0,0 +1,11 @@
"""
lca_operational_carbon module
SPDX - License - Identifier: LGPL - 3.0
Copyright © 2024 Concordia CERC group
Project Developers: Alireza Adli alireza.adli@concordia.ca
Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca
"""
class Operational:
pass

View File

@ -0,0 +1,67 @@
"""
Machine module
SPDX - License - Identifier: LGPL - 3.0
Copyright © 2024 Concordia CERC group
Project Developers: Alireza Adli alireza.adli@concordia.ca
Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca
"""
class Machine:
"""
Machine class
"""
def __init__(self, machine_id, name, work_efficiency_rate,
work_efficiency_unit, energy_consumption_rate,
energy_consumption_unit, emission_factor,
emission_unit):
self._machine_id = machine_id
self._name = name
self._work_efficiency_rate = work_efficiency_rate
self._work_efficiency_unit = work_efficiency_unit
self._energy_consumption_rate = energy_consumption_rate
self._energy_consumption_unit = energy_consumption_unit
self._emission_factor = emission_factor
self._emission_unit = emission_unit
@property
def id(self) -> int:
""":return: int"""
return self._machine_id
@property
def name(self):
""":return: str"""
return self._name
@property
def work_efficiency(self):
""":return: float"""
return self._work_efficiency_rate
@property
def work_efficiency_unit(self):
""":return: str"""
return self._work_efficiency_unit
@property
def energy_consumption_rate(self):
""":return: float"""
return self._energy_consumption_rate
@property
def energy_consumption_unit(self):
""":return: str"""
return self._energy_consumption_unit
@property
def emission_factor(self):
""":return: float"""
return self._emission_factor
@property
def emission_unit(self):
""":return: str"""
return self._emission_unit

View File

@ -0,0 +1,11 @@
"""
Vehicle module
SPDX - License - Identifier: LGPL - 3.0
Copyright © 2024 Concordia CERC group
Project Developers: Alireza Adli alireza.adli@concordia.ca
Mohammad Reza Seyedabadi mohammad.seyedabadi@mail.concordia.ca
"""
class Vehicle:
pass