34 lines
655 B
Python
34 lines
655 B
Python
|
"""
|
||
|
Greenery catalog content
|
||
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||
|
Copyright © 2022 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
||
|
"""
|
||
|
|
||
|
class GreeneryContent:
|
||
|
def __init__(self, vegetations, plants, soils):
|
||
|
self._vegetations = vegetations
|
||
|
self._plants = plants
|
||
|
self._soils = soils
|
||
|
|
||
|
@property
|
||
|
def vegetations(self):
|
||
|
"""
|
||
|
All vegetation in the catalog
|
||
|
"""
|
||
|
return self._vegetations
|
||
|
|
||
|
@property
|
||
|
def plants(self):
|
||
|
"""
|
||
|
All plants in the catalog
|
||
|
"""
|
||
|
return self._plants
|
||
|
|
||
|
@property
|
||
|
def soils(self):
|
||
|
"""
|
||
|
All soils in the catalog
|
||
|
"""
|
||
|
return self._soils
|
||
|
|