gatelogue_aggregator.types.node.bus.BusLine
- class gatelogue_aggregator.types.node.bus.BusLine(*, i: ID = None, source: set[str] = <factory>, code: str, name: Sourced[str] | None = None, colour: Sourced[str] | None = None, company: Sourced[ID] = None, stops: list[Sourced[ID]] = <factory>)
-
- __init__()
Methods
__init__()connect(src, node[, value, source])connect_one(src, node[, value, source])disconnect(src, node)equivalent(src, other)export(src)get_all(src, ty[, conn_ty])get_all_id(src, ty[, conn_ty])get_edge(src, node[, ty])get_edges(src, node[, ty])get_one(src, ty[, conn_ty])get_one_id(src, ty[, conn_ty])merge(src, other)merge_attrs(src, other)merge_if_equivalent(src, other)merge_key(src)merge_lists(src, self, other)new(src, *, code, company[, name, colour])print_report(src, level, msg)process_code(s)ref(src)report(src)str_src(src)Attributes
Unique code identifying the bus line
Colour of the line (on a map)
ID of the
BusCompanythat operates the lineThe ID of the node
Name of the line
All sources that prove the node's existence
List of all
BusStops the line stops at- acceptable_list_node_types()
- acceptable_single_node_types()
- company: Sourced[ID]
ID of the
BusCompanythat operates the line
- i: ID
The ID of the node
- classmethod new(src: BusSource, *, code: str, company: BusCompany, name: str | None = None, colour: str | None = None)
- static process_code(s: T) T
- sanitise_strings()