gatelogue_types.RailLineNS
- class gatelogue_types.RailLineNS(*, i: ID = None, source: set[str] = <factory>, code: str, name: str | None = None, colour: str | None = None, mode: RailMode | None = None, company: ID = None, stations: list[ID] = <factory>)
-
- __init__()
Methods
NS
()__init__
()Attributes
Unique code identifying the Rail line
Colour of the line (on a map)
ID of the
RailCompany
that 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
RailStation
s the line stops at- classmethod NS()
- company: ID
ID of the
RailCompany
that operates the line
- i: ID
The ID of the node
- stations: list[ID]
List of all
RailStation
s the line stops at