gatelogue_aggregator.types.node.sea.SeaStop

class gatelogue_aggregator.types.node.sea.SeaStop(coordinates: ~gatelogue_types.Sourced[tuple[float, float]] | None = None, world: ~gatelogue_types.Sourced[~gatelogue_types.World] | None = None, proximity: dict[~gatelogue_types.ID, ~gatelogue_types.Sourced[~gatelogue_types.Proximity]] = <factory>, shared_facility: list[~gatelogue_types.Sourced[~gatelogue_types.ID]] = <factory>, *, i: ~gatelogue_types.ID = None, source: set[str] = <factory>, codes: set[str], name: ~gatelogue_types.Sourced[str] | None = None, company: ~gatelogue_types.Sourced[~gatelogue_types.ID] = None, connections: dict[~gatelogue_types.ID, list[~gatelogue_types.Sourced[~gatelogue_types.Connection]]] = <factory>)

Bases: SeaStop, LocatedNode

__init__()

Methods

__init__()

acceptable_list_node_types()

acceptable_single_node_types()

connect(src, node[, value, source])

connect_one(src, node[, value, source])

disconnect(src, node)

equivalent(src, other)

export(src)

get_all(src, ty[, conn_ty])

get_all_id(src, ty[, conn_ty])

get_edge(src, node[, ty])

get_edges(src, node[, ty])

get_one(src, ty[, conn_ty])

get_one_id(src, ty[, conn_ty])

merge(src, other)

merge_attrs(src, other)

merge_if_equivalent(src, other)

merge_key(src)

merge_lists(src, self, other)

new(src, *, codes, company[, name, world, ...])

print_report(src, level, msg)

process_code(s)

ref(src)

report(src)

sanitise_strings()

str_src(src)

Attributes

codes

Unique code(s) identifying the Sea stop.

company

ID of the SeaCompany that stops here

connections

References all next stops on the lines serving this stop.

coordinates

Coordinates of the object

i

The ID of the node

name

Name of the stop

proximity

References all objects that are near (within walking distance of) this object.

shared_facility

References all objects that this object shares the same facility with (same building, station, hub etc)

source

All sources that prove the node's existence

world

Whether the object is in the New or Old world

acceptable_list_node_types()
acceptable_single_node_types()
codes: set[str]

Unique code(s) identifying the Sea stop. May also be the same as the name

company: Sourced[ID]

ID of the SeaCompany that stops here

connect(src: Source, node: Node, value: Any | None = None, source: set[str] | None = None)
connect_one(src: Source, node: Node, value: Any | None = None, source: set[str] | None = None)
connections: dict[ID, list[Sourced[Connection]]]

References all next stops on the lines serving this stop. It is represented as a mapping of stop IDs to a list of connection data (SeaConnection), each encoding line and route information. For example, {1234: [<conn1>, <conn2>]} means that the stop with ID 1234 is the next stop from here on two lines.

coordinates: Sourced[tuple[float, float]] | None

Coordinates of the object

disconnect(src: Source, node: Node)
equivalent(src: SeaSource, other: Self) bool
export(src: SeaSource) SeaStop
get_all(src: Source, ty: type[T], conn_ty: type | None = None) Iterator[T]
get_all_id(src: Source, ty: type[Node], conn_ty: type | None = None) list[Sourced[int]]
get_edge(src: Source, node: Node, ty: type[T] | None = None) Sourced[T] | None
get_edges(src: Source, node: Node, ty: type[T] | None = None) Iterator[Sourced[T]]
get_one(src: Source, ty: type[T], conn_ty: type | None = None) T | None
get_one_id(src: Source, ty: type[Node], conn_ty: type | None = None) Sourced[int] | None
i: ID

The ID of the node

merge(src: Source, other: Self)
merge_attrs(src: SeaSource, other: Self)
merge_if_equivalent(src: Source, other: Self) bool
merge_key(src: SeaSource) str
static merge_lists(src: Source, self: list[T], other: list[T])
name: Sourced[str] | None

Name of the stop

classmethod new(src: SeaSource, *, codes: set[str], company: SeaCompany, name: str | None = None, world: World | None = None, coordinates: tuple[float, float] | None = None)
print_report(src: Source, level: str, msg: str)
static process_code(s: T) T
proximity: dict[ID, Sourced[Proximity]]

References all objects that are near (within walking distance of) this object. It is represented as an inner mapping of object IDs to proximity data (Proximity). For example, {1234: <proximity>} means that there is an object with ID 1234 near this object, and <proximity> is a Proximity object.

ref(src: SeaSource) NodeRef[Self]
report(src: SeaSource)
sanitise_strings()
shared_facility: list[Sourced[ID]]

References all objects that this object shares the same facility with (same building, station, hub etc)

source: set[str]

All sources that prove the node’s existence

str_src(src: SeaSource) str
world: Sourced[World] | None

Whether the object is in the New or Old world