gatelogue_aggregator.types.node.air.AirAirline
- class gatelogue_aggregator.types.node.air.AirAirline(*, i: ID = None, source: set[str] = <factory>, name: str, link: ~gatelogue_types.Sourced[str] | None = None, flights: list[~gatelogue_types.Sourced[ID]] = <factory>, gates: list[~gatelogue_types.Sourced[ID]] = <factory>)
Bases:
AirAirline
,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, *, name[, link, flights, gates])process_code
(s)ref
(ctx)str_ctx
(ctx)Attributes
List of IDs of all
AirFlight
s the airline operatesList of IDs of all
AirGate
s the airline owns or operatesThe ID of the node
Link to the MRT Wiki page for the airline
Name of the airline
All sources that prove the node's existence
- classmethod NS()
- acceptable_list_node_types()
- acceptable_single_node_types()
- export(ctx: AirSource) AirAirline
- i: ID
The ID of the node
- merge(ctx: CTX, other: Self)
- classmethod new(ctx: AirSource, *, name: str, link: str | None = None, flights: Iterable[AirFlight] | None = None, gates: Iterable[AirGate] | None = None)
- static process_airline_name(s: T) T
- static process_code(s: T) T
- sanitise_strings()