gatelogue_aggregator.types.node.bus.BusCompany
- class gatelogue_aggregator.types.node.bus.BusCompany(*, i: ID = None, source: set[str] = <factory>, name: str, lines: list[Sourced[ID]] = <factory>, stops: list[Sourced[ID]] = <factory>, local: bool = False)
Bases:
BusCompany,Node- __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, *, name[, lines, stops, local])print_report(src, level, msg)process_code(s)ref(src)report(src)str_src(src)Attributes
The ID of the node
List of IDs of all
BusLines the company operatesWhether the company operates within the city, e.g. a city bus network.
Name of the bus company
All sources that prove the node's existence
List of all
BusStops the company's lines stop at- acceptable_list_node_types()
- acceptable_single_node_types()
- export(src: BusSource) BusCompany
- i: ID
The ID of the node
- classmethod new(src: BusSource, *, name: str, lines: Iterable[BusLine] | None = None, stops: Iterable[BusStop] | None = None, local: bool = False)
- static process_code(s: T) T
- sanitise_strings()