BaseAlgorithm¶
- class BaseAlgorithm[source]¶
Bases:
UiInstructionDefine the base contract for instruction algorithms.
- abstract property id¶
Return the unique algorithm identifier.
- Returns:
Algorithm identifier.
- Return type:
int
- abstractmethod add_instruction(instruction)[source]¶
Add an instruction to the algorithm sequence.
- Parameters:
instruction – Instruction to append.
- abstract property instructions¶
Return the configured instructions.
- Returns:
Instructions managed by the algorithm.