gatelogue_types.RailLine
- class gatelogue_types.RailLine(*, i: ID = None, source: set[str] = <factory>, code: str, name: ~gatelogue_types.Sourced[str] | None = None, colour: ~gatelogue_types.Sourced[str] | None = None, mode: ~gatelogue_types.Sourced[RailMode] | None = None, company: ~gatelogue_types.Sourced[ID] = None, stations: list[~gatelogue_types.Sourced[ID]] = <factory>)
Bases:
Node
- __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 lineType of rail or rail technology used on the line
Name of the line
List of all
RailStation
s the line stops atThe ID of the node
All sources that prove the node's existence
- classmethod NS()
- company: Sourced[ID]
ID of the
RailCompany
that operates the line
- i: ID
The ID of the node
- stations: list[Sourced[ID]]
List of all
RailStation
s the line stops at