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)
-
- __init__()
Methods
NS
()__init__
()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, *, codes, airline[, mode, gates])print_report
(src, level, msg)process_code
(s[, airline_name])ref
(src)report
(src)str_src
(src)update
(src)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
- classmethod new(src: AirSource, *, codes: set[str], airline: AirAirline, mode: gt.PlaneMode | None = None, gates: Iterable[AirGate] | None = None)
- sanitise_strings()