forked from s_ranjbar/city_retrofit
34 lines
820 B
Python
34 lines
820 B
Python
"""
|
|
Composting plant module
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
|
"""
|
|
from city_model_structure.city_object import CityObject
|
|
|
|
|
|
class CompostingPlant(CityObject):
|
|
"""
|
|
CompostingPlant(CityObject) class
|
|
"""
|
|
def __init__(self, lod, surfaces, name, waste_type, capacity):
|
|
super().__init__(lod, surfaces, name, [])
|
|
self._waste_type = waste_type
|
|
self._capacity = capacity
|
|
self._type = 'composting_plant'
|
|
|
|
@property
|
|
def waste_type(self):
|
|
"""
|
|
Get waste type treated in composting plant
|
|
:return: str
|
|
"""
|
|
return self._waste_type
|
|
|
|
@property
|
|
def capacity(self):
|
|
"""
|
|
Get capacity of composting plant in kg
|
|
:return: float
|
|
"""
|
|
return self._capacity
|