gatelogue_aggregator.types.connections.Direction
- class gatelogue_aggregator.types.connections.Direction(direction: NodeRef[S], forward_label: str | None, backward_label: str | None, one_way: bool | Sourced[bool] = False)
Bases:
Direction
,Struct
,Generic
[CTX
,S
]- __init__()
Methods
NS
()__init__
()export
(ctx)get_direction
(ctx)set_direction
(ctx, v)Attributes
Describes the direction taken when travelling from the station/stop in
forward_towards_code
Reference to or ID of the station/stop that the other fields take with respect to.
Describes the direction taken when travelling towards the station/stop in
forward_towards_code
Whether the connection is one-way, ie.
- classmethod NS()
- backward_label: str | None
Describes the direction taken when travelling from the station/stop in
forward_towards_code
- direction: NodeRef[S]
Reference to or ID of the station/stop that the other fields take with respect to. Should be either node of the connection
- forward_label: str | None
Describes the direction taken when travelling towards the station/stop in
forward_towards_code
- get_direction(ctx: CTX) S
- one_way: bool | Sourced[bool]
Whether the connection is one-way, ie. travel towards the station/stop in
forward_towards_code
is possible but not the other way
- sanitise_strings()
- set_direction(ctx: CTX, v: S)