gatelogue_aggregator.types.node.air.AirGate

class gatelogue_aggregator.types.node.air.AirGate(*, i: ID = None, source: set[str] = <factory>, code: str | None, size: ~gatelogue_types.Sourced[str] | None = None, flights: list[~gatelogue_types.Sourced[ID]] = <factory>, airport: ~gatelogue_types.Sourced[ID] = None, airline: ~gatelogue_types.Sourced[ID] | None = None)

Bases: AirGate, Node

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

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, airport[, size, flights, ...])

print_report(src, level, msg)

process_code(s[, airline_name, airport_code])

ref(src)

report(src)

sanitise_strings()

str_src(src)

Attributes

airline

ID of the AirAirline that owns the gate

airport

ID of the AirAirport

code

Unique gate code.

flights

List of IDs of AirFlight s that stop at this gate.

i

The ID of the node

size

Abbreviated size of the gate (eg.

source

All sources that prove the node's existence

classmethod NS()
acceptable_list_node_types()
acceptable_single_node_types()
airline: Sourced[ID] | None

ID of the AirAirline that owns the gate

airport: Sourced[ID]

ID of the AirAirport

code: str | None

Unique gate code. If None, all flights under this gate do not have gate information at this airport

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)
disconnect(src: Source, node: Node)
equivalent(src: AirSource, other: Self) bool
export(src: AirSource) AirGate
flights: list[Sourced[ID]]

List of IDs of AirFlight s that stop at this gate. If code==None, all flights under this gate do not have gate information at this airport

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: AirSource, other: Self)
merge_if_equivalent(src: Source, other: Self) bool
merge_key(src: AirSource) str
static merge_lists(src: Source, self: list[T], other: list[T])
classmethod new(src: AirSource, *, code: str | None, airport: AirAirport, size: str | None = None, flights: Iterable[AirFlight] | None = None, airline: AirAirline | None = None)
print_report(src: Source, level: str, msg: str)
static process_code(s: T, airline_name: str | None = None, airport_code: str | None = None) T
ref(src: AirSource) NodeRef[Self]
report(src: AirSource)
sanitise_strings()
size: Sourced[str] | None

Abbreviated size of the gate (eg. S, M)

source: set[str]

All sources that prove the node’s existence

str_src(src: AirSource) str