added one more class in transport

This commit is contained in:
Pilar 2021-08-09 11:29:18 -04:00
parent 77d1c01755
commit 70c020ee77

View File

@ -14,6 +14,7 @@ from city_model_structure.transport.join_exclude import JoinExclude
from city_model_structure.transport.edge import Edge from city_model_structure.transport.edge import Edge
from city_model_structure.transport.roundabout import Roundabout from city_model_structure.transport.roundabout import Roundabout
from city_model_structure.transport.connection import Connection from city_model_structure.transport.connection import Connection
from city_model_structure.transport.prohibition import Prohibition
from city_model_structure.transport.crossing import Crossing from city_model_structure.transport.crossing import Crossing
from city_model_structure.transport.walking_area import WalkingArea from city_model_structure.transport.walking_area import WalkingArea
from city_model_structure.transport.traffic_light_logic import TrafficLightLogic from city_model_structure.transport.traffic_light_logic import TrafficLightLogic
@ -114,6 +115,17 @@ class TrafficNetwork(CityObject):
""" """
self._connections = value self._connections = value
@property
def prohibitions(self) -> List[Prohibition]:
return self._prohibitions
@prohibitions.setter
def prohibitions(self, value):
"""
:param value: [Prohibition]
"""
self._prohibitions = value
@property @property
def crossings(self) -> List[Crossing]: def crossings(self) -> List[Crossing]:
return self._crossings return self._crossings