""" Model representation of a city object SPDX - License - Identifier: LGPL - 3.0 - or -later Copyright © 2022 Concordia CERC group Project Coder Guille Gutierrez Guillermo.GutierrezMorote@concordia.ca """ class CityObject: def __init__(self, building): self.city_id = building['city_id'] self.name = building['name'] self.aliases = building['alias'] self.type = 'building' self.year_of_construction = building['year_of_construction'] self.function = building['function'] self.usage = building['usage'] self.volume = building['volume'] self.area = building['area'] self.roof_area = building['roof_area'] self.total_pv_area = building['total_pv_area'] self.total_heating_area = building['total_heating_area'] self.wall_area = building['wall_area'] self.windows_area = building['windows_area'] self.system_name = building['system_name']