system_assignation/hub/city_model_structure/subway_entrance.py

46 lines
988 B
Python
Raw Normal View History

2020-11-26 09:26:55 -05:00
"""
Subway entrance module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2022 Concordia CERC group
Project Coder Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
2020-11-26 09:26:55 -05:00
"""
2023-01-24 10:51:50 -05:00
from hub.city_model_structure.city_object import CityObject
2020-06-30 18:06:27 -04:00
class SubwayEntrance(CityObject):
2020-11-26 09:26:55 -05:00
"""
SubwayEntrance(CityObject) class
"""
2020-06-30 18:06:27 -04:00
def __init__(self, name, latitude, longitude):
super().__init__(name, 0)
2020-06-30 18:06:27 -04:00
self._name = name
self._latitude = latitude
self._longitude = longitude
self._type = 'subway_entrance'
2020-06-30 18:06:27 -04:00
@property
def latitude(self):
2020-11-26 09:26:55 -05:00
# todo: to be defined the spacial point and the units
"""
Get latitude
:return: float
"""
2020-06-30 18:06:27 -04:00
return self._latitude
@property
def longitude(self):
2020-11-26 09:26:55 -05:00
# todo: to be defined the spacial point and the units
"""
Get longitude
:return: float
"""
2020-06-30 18:06:27 -04:00
return self._longitude
@property
def name(self):
2020-11-26 09:26:55 -05:00
"""
Get name
:return: str
2020-11-26 09:26:55 -05:00
"""
2020-06-30 18:06:27 -04:00
return self._name