2d71136d33
Reorganized classes inside "attributes" into different folders by topic.
36 lines
681 B
Python
36 lines
681 B
Python
"""
|
|
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
|
|
"""
|
|
|
|
from typing import List, TypeVar
|
|
|
|
Edge = TypeVar['Edge']
|
|
|
|
|
|
class Roundabout:
|
|
"""
|
|
Roundabout class
|
|
"""
|
|
|
|
def __init__(self):
|
|
self._edges = None
|
|
|
|
@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
|