system_assignation/city_model_structure/material.py

119 lines
2.6 KiB
Python
Raw Normal View History

2021-11-15 08:24:03 -05:00
"""
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 Material:
"""
LCA Material class
"""
def __init__(self, material_name, material_id, type, density, density_unit, embodied_carbon, embodied_carbon_unit, recycling_ratio,
onsite_recycling_ratio, company_recycling_ratio, landfilling_ratio, cost, cost_unit):
self._material_name = material_name
self._material_id = material_id
self._type = type
self._density = density
self._density_unit = density_unit
self._embodied_carbon = embodied_carbon
self._embodied_carbon_unit = embodied_carbon_unit
self._recycling_ratio = recycling_ratio
self._onsite_recycling_ratio = onsite_recycling_ratio
self._company_recycling_ratio = company_recycling_ratio
self._landfilling_ratio = landfilling_ratio
self._cost = cost
self._cost_unit = cost_unit
@property
2021-11-15 10:35:31 -05:00
def material_name(self) -> str:
2021-11-15 08:24:03 -05:00
"""
Get material name
"""
return self._material_name
@property
2021-11-15 10:35:31 -05:00
def id(self) -> int:
2021-11-15 08:24:03 -05:00
"""
Get material id
"""
return self._material_id
@property
2021-11-15 10:35:31 -05:00
def type(self) -> str:
2021-11-15 08:24:03 -05:00
"""
Get material type
"""
return self._type
@property
2021-11-15 10:35:31 -05:00
def density(self) -> float:
2021-11-15 08:24:03 -05:00
"""
Get material density
"""
return self._density
@property
2021-11-15 10:35:31 -05:00
def density_unit(self) -> str:
2021-11-15 08:24:03 -05:00
"""
Get material density unit
"""
return self._density_unit
@property
2021-11-15 10:35:31 -05:00
def embodied_carbon(self) -> float:
2021-11-15 08:24:03 -05:00
"""
Get material embodied carbon
"""
return self._embodied_carbon
@property
2021-11-15 10:35:31 -05:00
def embodied_carbon_unit(self) -> str:
2021-11-15 08:24:03 -05:00
"""
Get material embodied carbon unit
"""
return self._embodied_carbon_unit
@property
2021-11-15 10:35:31 -05:00
def recycling_ratio(self) -> float:
2021-11-15 08:24:03 -05:00
"""
Get material recycling ratio
"""
return self._recycling_ratio
@property
2021-11-15 10:35:31 -05:00
def onsite_recycling_ratio(self) -> float:
2021-11-15 08:24:03 -05:00
"""
Get material onsite recycling ratio
"""
return self._onsite_recycling_ratio
@property
2021-11-15 10:35:31 -05:00
def company_recycling_ratio(self) -> float:
2021-11-15 08:24:03 -05:00
"""
Get material company recycling ratio
"""
return self._company_recycling_ratio
@property
2021-11-15 10:35:31 -05:00
def landfilling_ratio(self) -> float:
2021-11-15 08:24:03 -05:00
"""
Get material landfilling ratio
"""
return self._landfilling_ratio
@property
2021-11-15 10:35:31 -05:00
def cost(self) -> float:
2021-11-15 08:24:03 -05:00
"""
Get material cost
"""
return self._cost
@property
2021-11-15 10:35:31 -05:00
def cost_unit(self) -> str:
2021-11-15 08:24:03 -05:00
"""
Get material cost unit
"""
return self._cost_unit