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>)

Bases: RailLine, NodeNS

__init__()

Methods

NS()

__init__()

Attributes

code

Unique code identifying the Rail line

colour

Colour of the line (on a map)

company

ID of the RailCompany that operates the line

i

The ID of the node

mode

Type of rail or rail technology used on the line

name

Name of the line

source

All sources that prove the node's existence

stations

List of all RailStation s the line stops at

classmethod NS()
code: str

Unique code identifying the Rail line

colour: str | None

Colour of the line (on a map)

company: ID

ID of the RailCompany that operates the line

i: ID

The ID of the node

mode: RailMode | None

Type of rail or rail technology used on the line

name: str | None

Name of the line

source: set[str]

All sources that prove the node’s existence

stations: list[ID]

List of all RailStation s the line stops at