2020-06-16 15:26:55 -04:00
|
|
|
"""
|
|
|
|
Composting plant module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
2020-11-26 09:26:55 -05:00
|
|
|
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
|
2020-06-16 15:26:55 -04:00
|
|
|
"""
|
|
|
|
from city_model_structure.city_object import CityObject
|
|
|
|
|
|
|
|
|
|
|
|
class CompostingPlant(CityObject):
|
|
|
|
"""
|
|
|
|
CompostingPlant(CityObject) class
|
|
|
|
"""
|
2020-06-16 16:19:14 -04:00
|
|
|
def __init__(self, lod, surfaces, name, waste_type, capacity):
|
|
|
|
super().__init__(lod, surfaces, name)
|
2020-06-16 15:26:55 -04:00
|
|
|
self._waste_type = waste_type
|
|
|
|
self._capacity = capacity
|
|
|
|
|
|
|
|
@property
|
|
|
|
def waste_type(self):
|
|
|
|
"""
|
|
|
|
Get waste_type treated in composting plant
|
|
|
|
:return: waste_type
|
|
|
|
"""
|
|
|
|
return self._waste_type
|
|
|
|
|
|
|
|
@property
|
|
|
|
def capacity(self):
|
|
|
|
"""
|
|
|
|
Get capacity of composting plant in kg
|
|
|
|
:return: capacity
|
|
|
|
"""
|
|
|
|
return self._capacity
|