27 lines
696 B
Python
27 lines
696 B
Python
|
"""
|
||
|
Bus depot module
|
||
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||
|
Copyright © 2021 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
||
|
"""
|
||
|
|
||
|
from city_model_structure.transport.bus_node import BusNode
|
||
|
|
||
|
|
||
|
class BusDepot(BusNode):
|
||
|
"""
|
||
|
BusDepot class
|
||
|
"""
|
||
|
|
||
|
def __init__(self, name, coordinates, edges=None):
|
||
|
super().__init__(name, coordinates, edges=edges, node_type='BusDepot')
|
||
|
self._number_of_charging_poles = None
|
||
|
self._number_of_available_buses = None
|
||
|
|
||
|
@property
|
||
|
def number_of_charging_poles(self):
|
||
|
return self._number_of_charging_poles
|
||
|
|
||
|
@property
|
||
|
def number_of_available_buses(self):
|
||
|
return self._number_of_available_buses
|