gatelogue_aggregator.types.node.rail.RailLine
- class gatelogue_aggregator.types.node.rail.RailLine(*, i: ID = None, source: set[str] = <factory>, code: str, name: Sourced[str] | None = None, colour: Sourced[str] | None = None, mode: Sourced[RailMode] | None = None, company: Sourced[ID] = None, stations: 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, mode])print_report(src, level, msg)process_code(s)ref(src)report(src)str_src(src)Attributes
Unique code identifying the Rail line
Colour of the line (on a map)
ID of the
RailCompanythat operates the lineThe ID of the node
Type of rail or rail technology used on the line
Name of the line
All sources that prove the node's existence
List of all
RailStations the line stops at- acceptable_list_node_types()
- acceptable_single_node_types()
- company: Sourced[ID]
ID of the
RailCompanythat operates the line
- equivalent(src: RailSource, other: Self) bool
- export(src: RailSource) RailLine
- i: ID
The ID of the node
- merge_attrs(src: RailSource, other: Self)
- merge_key(src: RailSource) str
- classmethod new(src: RailSource, *, code: str, company: RailCompany, name: str | None = None, colour: str | None = None, mode: RailMode | None = None)
- 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 line stops at
- str_src(src: RailSource) str