27 lines
654 B
Python
27 lines
654 B
Python
"""
|
|
Traffic network 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.network import Network
|
|
|
|
|
|
class TrafficNetwork(Network):
|
|
"""
|
|
TrafficNetwork(CityObject) class
|
|
"""
|
|
def __init__(self, name, edges=None, nodes=None):
|
|
super().__init__(name, edges, nodes)
|
|
self._type = "TrafficNetwork"
|
|
|
|
@property
|
|
def type(self):
|
|
"""
|
|
Get network type
|
|
:return: str
|
|
"""
|
|
return self._type
|