2021-08-06 12:28:20 -04:00
|
|
|
"""
|
|
|
|
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
|
2021-08-17 12:49:12 -04:00
|
|
|
Contributor Guille guille.gutierrezmorote@concordia.ca
|
2021-08-06 12:28:20 -04:00
|
|
|
"""
|
|
|
|
|
2021-08-17 12:49:12 -04:00
|
|
|
from city_model_structure.transport.traffic_node import TrafficNode
|
|
|
|
from city_model_structure.attributes.edge import Edge
|
|
|
|
from typing import List
|
2021-08-06 12:28:20 -04:00
|
|
|
|
|
|
|
|
2021-08-17 12:49:12 -04:00
|
|
|
class Roundabout(TrafficNode):
|
2021-08-06 12:28:20 -04:00
|
|
|
"""
|
|
|
|
Roundabout class
|
|
|
|
"""
|
|
|
|
|
2021-08-17 12:49:12 -04:00
|
|
|
def __init__(self, name, coordinates, edges=None):
|
|
|
|
super().__init__(name, coordinates, edges)
|
2021-08-06 12:28:20 -04:00
|
|
|
|
|
|
|
@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
|