gatelogue_types.RailCompany
- class gatelogue_types.RailCompany(*, i: ID = None, source: set[str] = <factory>, name: str, lines: list[~gatelogue_types.Sourced[ID]] = <factory>, stations: list[~gatelogue_types.Sourced[ID]] = <factory>, local: bool = False)
Bases:
Node
- __init__()
Methods
NS
()__init__
()Attributes
List of IDs of all
RailLine
s the company operatesWhether the company operates within the city, e.g. a metro system.
Name of the Rail company
List of all
RailStation
s the company's lines stop atThe ID of the node
All sources that prove the node's existence
- classmethod NS()
- i: ID
The ID of the node
- stations: list[Sourced[ID]]
List of all
RailStation
s the company’s lines stop at