added bixi_feature.py, tree.py and composting_plant.py
This commit is contained in:
parent
f03317e4b5
commit
fecf40247a
32
city_model_structure/bixi_feature.py
Normal file
32
city_model_structure/bixi_feature.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
"""
|
||||
bixi_feature module
|
||||
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
||||
"""
|
||||
from city_model_structure.city_object import CityObject
|
||||
|
||||
|
||||
class BixiFeature(CityObject):
|
||||
"""
|
||||
BixiFeature(CityObject) class
|
||||
"""
|
||||
def __init__(self, lod, feature_type, length):
|
||||
super().__init__(lod)
|
||||
self._feature_type = feature_type
|
||||
self._length = length
|
||||
|
||||
@property
|
||||
def feature_type(self):
|
||||
"""
|
||||
Get type of bixi feature
|
||||
:return: feature_type
|
||||
"""
|
||||
return self._feature_type
|
||||
|
||||
@property
|
||||
def length(self):
|
||||
"""
|
||||
Get length of bixi feature in meters
|
||||
:return: length
|
||||
"""
|
||||
return self._length
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
CityObject module
|
||||
Building module
|
||||
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
||||
"""
|
||||
|
@ -22,7 +22,7 @@ from city_model_structure.city_object import CityObject
|
|||
|
||||
class Building(CityObject):
|
||||
"""
|
||||
CityObject class
|
||||
Building(CityObject) class
|
||||
"""
|
||||
def __init__(self, name, lod, surfaces, terrains, year_of_construction, function, lower_corner, attic_heated=0,
|
||||
basement_heated=0):
|
||||
|
|
32
city_model_structure/composting_plant.py
Normal file
32
city_model_structure/composting_plant.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
"""
|
||||
Composting plant module
|
||||
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
||||
"""
|
||||
from city_model_structure.city_object import CityObject
|
||||
|
||||
|
||||
class CompostingPlant(CityObject):
|
||||
"""
|
||||
CompostingPlant(CityObject) class
|
||||
"""
|
||||
def __init__(self, lod, waste_type, capacity):
|
||||
super().__init__(lod)
|
||||
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
|
|
@ -1,26 +1,28 @@
|
|||
"""
|
||||
Tree module
|
||||
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
||||
"""
|
||||
from city_model_structure.city_object import CityObject
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Tree(CityObject):
|
||||
"""
|
||||
Tree(CityObject) class
|
||||
"""
|
||||
def __init__(self, lod, height, canopy):
|
||||
super().__init__(lod)
|
||||
self._height = height
|
||||
self._canopy = canopy
|
||||
|
||||
@property
|
||||
def height(self):
|
||||
"""
|
||||
Get height of tree
|
||||
Get height of tree in meters
|
||||
:return: height
|
||||
"""
|
||||
return self._height
|
||||
|
||||
|
||||
@property
|
||||
def canopy(self):
|
||||
"""
|
||||
|
@ -28,4 +30,3 @@
|
|||
:return: canopy
|
||||
"""
|
||||
return self._canopy
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user