change back city object name as readonly, add new property human_readable_name for building

This commit is contained in:
Guille Gutierrez 2022-04-11 14:53:22 -04:00
parent a273c38a45
commit d062c5654e
2 changed files with 9 additions and 8 deletions

View File

@ -33,6 +33,7 @@ class Building(CityObject):
self._roof_type = None self._roof_type = None
self._internal_zones = None self._internal_zones = None
self._shell = None self._shell = None
self._human_readable_name = None
self._type = 'building' self._type = 'building'
self._heating = dict() self._heating = dict()
self._cooling = dict() self._cooling = dict()
@ -322,3 +323,11 @@ class Building(CityObject):
if usage_zone.thermal_control is not None: if usage_zone.thermal_control is not None:
return True return True
return False return False
@property
def human_readable_name(self):
return self._human_readable_name
@human_readable_name.setter
def human_readable_name(self, value):
self._human_readable_name = value

View File

@ -45,14 +45,6 @@ class CityObject:
""" """
return self._name return self._name
@name.setter
def name(self, value):
"""
Set city object name
:return: str
"""
self._name = value
@property @property
def lod(self) -> int: def lod(self) -> int:
""" """