system_assignation/city_model_structure/transport/roundabout.py

37 lines
893 B
Python
Raw Normal View History

"""
Roundabout module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
Contributor Milad milad.aghamohamadnia@concordia.ca
Contributor Guille guille.gutierrezmorote@concordia.ca
"""
from city_model_structure.transport.traffic_node import TrafficNode
from city_model_structure.attributes.edge import Edge
from typing import List
class Roundabout(TrafficNode):
"""
Roundabout class
"""
def __init__(self, name, coordinates, edges=None):
super().__init__(name, coordinates, edges)
@property
def edges(self) -> List[Edge]:
"""
Edges that conform the roundabout
:return: [Edge]
"""
return self._edges
@edges.setter
def edges(self, value):
"""
Edges that conform the roundabout setter
:param value: [Edge]
"""
self._edges = value