IdsAlgorithm¶
- class IdsAlgorithm(instructions: list[tuple[int, list[Any]]], attributes: list[Any], debugger: BaseDebugger | bool = True)[source]¶
Bases:
BaseAlgorithmResolve and execute instructions by their numeric identifiers.
- property id: int¶
Return the unique algorithm identifier.
- Returns:
Algorithm identifier.
- Return type:
int
- perform(ui: BaseUi, *args, **kwargs)[source]¶
Execute the algorithm for the provided UI context.
- Parameters:
ui (BaseUi) – UI instance used during execution.
args – Additional positional arguments for the execution flow.
kwargs – Additional keyword arguments for the execution flow.
- add_instruction(instruction: tuple[int, list[Any]])[source]¶
Add an instruction to the algorithm sequence.
- Parameters:
instruction – Instruction to append.
- property instructions: list[tuple[int, list[Any]]]¶
Return the configured instructions.
- Returns:
Instructions managed by the algorithm.