gatelogue_aggregator.types.node.air.AirFlight
- class gatelogue_aggregator.types.node.air.AirFlight(*, i: ID = None, source: set[str] = <factory>, codes: set[str], mode: ~gatelogue_types.Sourced[PlaneMode] | None = None, gates: list[~gatelogue_types.Sourced[ID]] = <factory>, airline: ~gatelogue_types.Sourced[ID] = None)
Bases:
AirFlight
,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, *, codes, airline[, mode, gates])process_code
(s[, airline_name])ref
(ctx)str_ctx
(ctx)update
(ctx)Attributes
ID of the
AirAirline
the flight is operated byUnique flight code(s).
List of IDs of
AirGate
s that the flight goes to.The ID of the node
Type of air vehicle or technology used on the flight
All sources that prove the node's existence
- classmethod NS()
- acceptable_list_node_types()
- acceptable_single_node_types()
- airline: Sourced[ID]
ID of the
AirAirline
the flight is operated by
- gates: list[Sourced[ID]]
List of IDs of
AirGate
s that the flight goes to. Should be of length 2 in most cases
- i: ID
The ID of the node
- merge(ctx: CTX, other: Self)
- classmethod new(ctx: AirSource, *, codes: set[str], airline: AirAirline, mode: gt.PlaneMode | None = None, gates: Iterable[AirGate] | None = None)
- sanitise_strings()