gatelogue_aggregator.sources.yaml2source.Yaml2Source

class gatelogue_aggregator.sources.yaml2source.Yaml2Source(config: Config)

Bases: RailSource, BusSource, SeaSource

__init__(config: Config)

Methods

__init__(config)

custom_routing(line_node, stations, line_yaml)

find_by_ref(v)

find_by_ref_or_index(v)

retrieve_from_cache(config)

sanitise_strings(g)

save_to_cache(config, g)

source(v)

Attributes

name

priority

file_path

C

L

S

B

g

B: type[RailLineBuilder | BusLineBuilder | SeaLineBuilder]
C: type[RailCompany | BusCompany | SeaCompany]
L: type[RailLine | BusLine | SeaLine]
S: type[RailStation | BusStop | SeaStop]
custom_routing(line_node: RailLine | BusLine | SeaLine, stations: list[RailStation | BusStop | SeaStop], line_yaml: YamlLine)
file_path: Path
find_by_ref(v: R) N | None
find_by_ref_or_index(v: R | int) N | None
g: rx.PyGraph
name: ClassVar[str] = 'Gatelogue'
priority: ClassVar[float | int] = 0
classmethod retrieve_from_cache(config: Config) rx.PyGraph | None
classmethod sanitise_strings(g: rx.PyGraph)
classmethod save_to_cache(config: Config, g: rx.PyGraph)
classmethod source(v: T) Sourced[T]