26 lines
785 B
Python
26 lines
785 B
Python
|
"""
|
||
|
CustomizedImportsFactory is used to import any information using user customized formats
|
||
|
This factory can only be called after calling the construction factory.
|
||
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||
|
Copyright © 2022 Concordia CERC group
|
||
|
Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
||
|
"""
|
||
|
|
||
|
|
||
|
class CustomizedImportsFactory:
|
||
|
"""
|
||
|
CustomizedImportsFactory class
|
||
|
"""
|
||
|
def __init__(self, importer_class, city, base_path):
|
||
|
self._importer_class = importer_class
|
||
|
self._city = city
|
||
|
self._base_path = base_path
|
||
|
|
||
|
def enrich(self):
|
||
|
"""
|
||
|
Returns the class that will enrich the city given
|
||
|
:return: Class
|
||
|
"""
|
||
|
importer = self._importer_class(self._city, self._base_path)
|
||
|
return importer.enrich_buildings()
|