CondetrolLaneExtension

class caqtus.gui.condetrol.timelanes_editor.extension.CondetrolLaneExtension

Bases: CondetrolLaneExtensionProtocol

available_new_lanes() set[str]

Return the new lanes that can be created.

This method is called when the user clicks on the “Add lane” button and needs to choose the type of lane to create.

create_new_lane(
lane_label: str,
steps: int,
) TimeLane

Create a new lane.

This method is called when the user wants to create a new lane. The label of the lane to create and the number of steps are passed as arguments.

unstructure_time_lanes(
time_lanes: TimeLanes,
) JsonDict

Convert the time lanes to a serializable format.

structure_time_lanes(
content: JsonDict,
) TimeLanes

Convert the serializable format to time lanes.