gatelogue_types.RailCompany

class gatelogue_types.RailCompany(*, i: ID = None, source: set[str] = <factory>, name: str, lines: list[Sourced[ID]] = <factory>, stations: list[Sourced[ID]] = <factory>, local: bool = False)

Bases: Node, _RailCompany

__init__()

Methods

__init__()

Attributes

i

The ID of the node

lines

List of IDs of all RailLine s the company operates

local

Whether the company operates within the city, e.g. a metro system.

name

Name of the Rail company

source

All sources that prove the node's existence

stations

List of all RailStation s the company's lines stop at

i: ID

The ID of the node

lines: list[Sourced[ID]]

List of IDs of all RailLine s the company operates

local: bool

Whether the company operates within the city, e.g. a metro system

name: str

Name of the Rail company

source: set[str]

All sources that prove the node’s existence

stations: list[Sourced[ID]]

List of all RailStation s the company’s lines stop at