gatelogue_aggregator.types.node.sea.SeaLine
- class gatelogue_aggregator.types.node.sea.SeaLine(*, i: ID = None, source: set[str] = <factory>, code: str, name: Sourced[str] | None = None, colour: Sourced[str] | None = None, mode: Sourced[SeaMode] | None = None, company: Sourced[ID] = None, stops: list[Sourced[ID]] = <factory>)
-
- __init__()
Methods
__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, *, code, company[, name, colour, mode])print_report(src, level, msg)process_code(s)ref(src)report(src)str_src(src)Attributes
Unique code identifying the Sea line
Colour of the line (on a map)
ID of the
SeaCompanythat operates the lineThe ID of the node
Type of boat used on the line
Name of the line
All sources that prove the node's existence
List of all
SeaStops the line stops at- acceptable_list_node_types()
- acceptable_single_node_types()
- company: Sourced[ID]
ID of the
SeaCompanythat operates the line
- i: ID
The ID of the node
- classmethod new(src: SeaSource, *, code: str, company: SeaCompany, name: str | None = None, colour: str | None = None, mode: SeaMode | None = None)
- static process_code(s: T) T
- sanitise_strings()