gatelogue_aggregator.types.node.air.AirAirport

class gatelogue_aggregator.types.node.air.AirAirport(*, i: ID = None, source: set[str] = <factory>, coordinates: ~gatelogue_types.Sourced[tuple[float, float]] | None = None, world: ~gatelogue_types.Sourced[World] | None = None, proximity: dict[ID, ~gatelogue_types.Sourced[~gatelogue_types.Proximity]] = <factory>, shared_facility: list[~gatelogue_types.Sourced[ID]] = <factory>, code: str, name: ~gatelogue_types.Sourced[str] | None = None, link: ~gatelogue_types.Sourced[str] | None = None, modes: ~gatelogue_types.Sourced[set[PlaneMode]] | None = None, gates: list[~gatelogue_types.Sourced[ID]] = <factory>)

Bases: AirAirport, LocatedNode[AirSource]

__init__()

Methods

NS()

__init__()

acceptable_list_node_types()

acceptable_single_node_types()

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

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

disconnect(ctx, node)

equivalent(ctx, other)

export(ctx)

get_all(ctx, ty[, conn_ty])

get_all_id(ctx, ty[, conn_ty])

get_edge(ctx, node[, ty])

get_edges(ctx, node[, ty])

get_one(ctx, ty[, conn_ty])

get_one_id(ctx, ty[, conn_ty])

merge(ctx, other)

merge_attrs(ctx, other)

merge_if_equivalent(ctx, other)

merge_key(ctx)

merge_lists(ctx, self, other)

new(ctx, *, code[, name, link, modes, ...])

process_code(s)

ref(ctx)

sanitise_strings()

str_ctx(ctx)

update(ctx)

Attributes

code

Unique 3 (sometimes 4)-letter code

coordinates

Coordinates of the object

gates

List of IDs of AirGate s

i

The ID of the node

link

Link to the MRT Wiki page for the airport

modes

Modes offered by the airport

name

Name of the airport

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

classmethod NS()
acceptable_list_node_types()
acceptable_single_node_types()
code: str

Unique 3 (sometimes 4)-letter code

connect(ctx: CTX, node: Node, value: Any | None = None, source: set[str] | None = None)
connect_one(ctx: CTX, node: Node, value: Any | None = None, source: set[str] | None = None)
coordinates: Sourced[tuple[float, float]] | None

Coordinates of the object

disconnect(ctx: CTX, node: Node)
equivalent(ctx: AirSource, other: Self) bool
export(ctx: AirSource) AirAirport
gates: list[Sourced[ID]]

List of IDs of AirGate s

get_all(ctx: CTX, ty: type[T], conn_ty: type | None = None) Iterator[T]
get_all_id(ctx: CTX, ty: type[Node], conn_ty: type | None = None) list[Sourced[int]]
get_edge(ctx: CTX, node: Node, ty: type[T] | None = None) Sourced[T] | None
get_edges(ctx: CTX, node: Node, ty: type[T] | None = None) Iterator[Sourced[T]]
get_one(ctx: CTX, ty: type[T], conn_ty: type | None = None) T | None
get_one_id(ctx: CTX, ty: type[Node], conn_ty: type | None = None) Sourced[int] | None
i: ID

The ID of the node

Link to the MRT Wiki page for the airport

merge(ctx: CTX, other: Self)
merge_attrs(ctx: AirSource, other: Self)
merge_if_equivalent(ctx: CTX, other: Self) bool
merge_key(ctx: AirSource) str
static merge_lists(ctx: CTX, self: list[T], other: list[T])
modes: Sourced[set[PlaneMode]] | None

Modes offered by the airport

name: Sourced[str] | None

Name of the airport

classmethod new(ctx: AirSource, *, code: str, name: str | None = None, link: str | None = None, modes: set[gt.PlaneMode] | None = None, gates: Iterable[AirGate] | None = None, world: gt.World | None = None, coordinates: tuple[float, float] | None = None)
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(ctx: AirSource) NodeRef[Self]
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_ctx(ctx: AirSource) str
update(ctx: AirSource)
world: Sourced[World] | None

Whether the object is in the New or Old world