2022-11-24 08:30:37 +01:00
|
|
|
"""Functions which helps the locomotive engineer to keep track of the train."""
|
|
|
|
|
|
2022-11-27 20:47:00 +01:00
|
|
|
|
|
|
|
|
def get_list_of_wagons():
|
|
|
|
|
"""Return a list of wagons.
|
|
|
|
|
|
|
|
|
|
:param: arbitrary number of wagons.
|
|
|
|
|
:return: list - list of wagons.
|
|
|
|
|
"""
|
|
|
|
|
pass
|
2022-11-24 08:30:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def fix_list_of_wagons(each_wagons_id, missing_wagons):
|
|
|
|
|
"""Fix the list of wagons.
|
|
|
|
|
|
2023-12-27 06:02:10 -08:00
|
|
|
:param each_wagons_id: list - the list of wagons.
|
|
|
|
|
:param missing_wagons: list - the list of missing wagons.
|
2022-11-24 08:30:37 +01:00
|
|
|
:return: list - list of wagons.
|
|
|
|
|
"""
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2022-11-27 20:47:00 +01:00
|
|
|
def add_missing_stops():
|
|
|
|
|
"""Add missing stops to route dict.
|
|
|
|
|
|
|
|
|
|
:param route: dict - the dict of routing information.
|
|
|
|
|
:param: arbitrary number of stops.
|
|
|
|
|
:return: dict - updated route dictionary.
|
|
|
|
|
"""
|
|
|
|
|
pass
|
2022-11-24 08:30:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def extend_route_information(route, more_route_information):
|
2022-11-27 20:47:00 +01:00
|
|
|
"""Extend route information with more_route_information.
|
2022-11-24 08:30:37 +01:00
|
|
|
|
|
|
|
|
:param route: dict - the route information.
|
|
|
|
|
:param more_route_information: dict - extra route information.
|
|
|
|
|
:return: dict - extended route information.
|
|
|
|
|
"""
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def fix_wagon_depot(wagons_rows):
|
|
|
|
|
"""Fix the list of rows of wagons.
|
|
|
|
|
|
2022-11-29 22:17:55 +01:00
|
|
|
:param wagons_rows: list[list[tuple]] - the list of rows of wagons.
|
|
|
|
|
:return: list[list[tuple]] - list of rows of wagons.
|
2022-11-24 08:30:37 +01:00
|
|
|
"""
|
|
|
|
|
pass
|