Develop the Machine attribute getters property
This commit is contained in:
parent
e474541201
commit
b5d8053deb
|
@ -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
|
|
@ -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
|
|
@ -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
|
67
hub/city_model_structure/life_cycle_assessment/machine.py
Normal file
67
hub/city_model_structure/life_cycle_assessment/machine.py
Normal 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
|
||||||
|
|
11
hub/city_model_structure/life_cycle_assessment/vehicle.py
Normal file
11
hub/city_model_structure/life_cycle_assessment/vehicle.py
Normal 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
|
Loading…
Reference in New Issue
Block a user