gatelogue_aggregator.types.node.rail.RailCompany
- class gatelogue_aggregator.types.node.rail.RailCompany(*, i: ID = None, source: set[str] = <factory>, name: str, lines: list[Sourced[ID]] = <factory>, stations: list[Sourced[ID]] = <factory>, local: bool = False)
Bases:
RailCompany,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, stations, 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
RailLines the company operatesWhether the company operates within the city, e.g. a metro system.
Name of the Rail company
All sources that prove the node's existence
List of all
RailStations the company's lines stop at- acceptable_list_node_types()
- acceptable_single_node_types()
- equivalent(src: RailSource, other: Self) bool
- export(src: RailSource) RailCompany
- i: ID
The ID of the node
- merge_attrs(src: RailSource, other: Self)
- merge_key(src: RailSource) str
- classmethod new(src: RailSource, *, name: str, lines: Iterable[RailLine] | None = None, stations: Iterable[RailStation] | None = None, local: bool = False)
- static process_code(s: T) T
- ref(src: RailSource) NodeRef[Self]
- report(src: RailSource)
- sanitise_strings()
- stations: list[Sourced[ID]]
List of all
RailStations the company’s lines stop at
- str_src(src: RailSource) str