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
[AirSource
]- __init__()
Methods
NS
()__init__
()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, airport[, size, flights, ...])process_code
(s[, airline_name, airport_code])ref
(ctx)str_ctx
(ctx)Attributes
ID of the
AirAirline
that owns the gateID of the
AirAirport
Unique gate code.
List of IDs of
AirFlight
s that stop at this gate.The ID of the node
Abbreviated size of the gate (eg.
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
- flights: list[Sourced[ID]]
List of IDs of
AirFlight
s that stop at this gate. Ifcode==None
, all flights under this gate do not have gate information at this airport
- i: ID
The ID of the node
- merge(ctx: CTX, other: Self)
- classmethod new(ctx: AirSource, *, code: str | None, airport: AirAirport, size: str | None = None, flights: Iterable[AirFlight] | None = None, airline: AirAirline | None = None)
- sanitise_strings()