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 | None, names: ~gatelogue_types.Sourced[set[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

__init__()

Methods

NS()

__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)

find_equiv_from_name(src[, node_list])

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, *, code[, names, link, modes, ...])

print_report(src, level, msg)

process_code(s)

ref(src)

report(src)

sanitise_strings()

str_src(src)

update(src)

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

names

Name(s) 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 | None

Unique 3 (sometimes 4)-letter code

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)
coordinates: Sourced[tuple[float, float]] | None

Coordinates of the object

disconnect(src: Source, node: Node)
equivalent(src: AirSource, other: Self) bool
export(src: AirSource) AirAirport
find_equiv_from_name(src: AirSource, node_list: list[Node] | None = None) Self | None
gates: list[Sourced[ID]]

List of IDs of AirGate s

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

Link to the MRT Wiki page for the airport

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

Modes offered by the airport

names: Sourced[set[str]] | None

Name(s) of the airport

classmethod new(src: AirSource, *, code: str | None, names: set[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)
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: AirSource) NodeRef[Self]
report(src: AirSource)
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: AirSource) str
update(src: AirSource)
world: Sourced[World] | None

Whether the object is in the New or Old world