gatelogue_aggregator.sources.line_builder.LineBuilder
- class gatelogue_aggregator.sources.line_builder.LineBuilder(src: int, line: L)
Bases:
GenericMethods
__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
- 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', **_)
- prev_platform_backwards: type[LineBuilder.Pt] | None
- prev_platform_forwards: type[LineBuilder.Pt] | None