system_assignation/city_model_structure/parts_consisting_building.py
2021-06-03 11:45:17 -04:00

27 lines
717 B
Python

"""
PartsConsistingBuilding 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_objects_cluster import CityObjectsCluster
class PartsConsistingBuilding(CityObjectsCluster):
"""
PartsConsistingBuilding(CityObjectsCluster) class
"""
def __init__(self, name, city_objects):
self._cluster_type = 'building_parts'
super().__init__(name, self._cluster_type, city_objects)
self._name = name
self._city_objects = city_objects
@property
def type(self):
return self._cluster_type
@property
def city_objects(self):
return self._city_objects