gatelogue_aggregator.sources.line_builder.LineBuilder

class gatelogue_aggregator.sources.line_builder.LineBuilder(src: int, line: L)

Bases: Generic

__init__(src: int, line: L)

Methods

__init__(src, line)

add(*stations)

branch_detached(*[, join_back_at])

branch_off(*[, terminus])

connect(*[, until, until_before, one_way, ...])

connect_circle(*[, one_way, platform_codes, ...])

connect_to(station, *[, one_way, ...])

copy()

skip(*, until[, detached])

u_turn()

Attributes

default_backward_code

default_forward_code

Pt

Cn

Cn: ClassVar[type[gt.BusConnection | gt.SeaConnection | gt.RailConnection]]
Pt: ClassVar[type[gt.BusBerth | gt.SeaDock | gt.RailPlatform]]
add(*stations: S)
branch_detached(*, join_back_at: str | None = None) Self
branch_off(*, terminus: str | None = None) Self
connect(*, until: str | None = None, until_before: str | None = None, one_way: dict[str, OneWay] | None = None, platform_codes: dict[str, tuple[PlatformCode, PlatformCode]] | None = None, forward_direction: DirectionLabel = 'DEFAULT_DIRECTION', backward_direction: DirectionLabel = 'DEFAULT_DIRECTION')
connect_circle(*, one_way: dict[str, OneWay] | None = None, platform_codes: dict[str, tuple[str | None, str | None]] | None = None, forward_direction: str | None = None, backward_direction: str | None = None)
connect_to(station: str | S, *, one_way: OneWay | None = None, forward_code: PlatformCode = 'DEFAULT_CODE', backward_code: PlatformCode = 'DEFAULT_CODE', forward_direction: DirectionLabel = 'DEFAULT_DIRECTION', backward_direction: DirectionLabel = 'DEFAULT_DIRECTION', **_)
copy() Self
default_backward_code: ClassVar[str | None] = 'backwards'
default_forward_code: ClassVar[str | None] = 'forwards'
prev_platform_backwards: type[LineBuilder.Pt] | None
prev_platform_forwards: type[LineBuilder.Pt] | None
skip(*, until: str, detached: bool = False)
station_list: list[S]
u_turn() Self