Decide position algorithm#
- automatic_warehouse.utils.decide_position_algorithm.algorithm.decide_position(columns: list[Column], space_req: int, algorithm: Algorithm) DecidePositionReturns#
Run the algorithm to decide where to insert a tray. It returns
DecidePositionReturnsdataclass where you can find the index and the best column.- Return type:
- Parameters:
- Returns:
if there is a space, dataclass with the fields
index_position_where_insert,column_where_insert.- Raises:
NotImplementedError – if the algorithm is not implemented.
ValueError – if the algorithm cannot find a position for the space requested.
- class automatic_warehouse.utils.decide_position_algorithm.algorithm.DecidePositionReturns(index: int, column: Column)#
Python Dataclass - It is the return value of the
decide_positionfunction.
- class automatic_warehouse.utils.decide_position_algorithm.enum_algorithm.Algorithm(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
Enum of all implemented algorithms.
- HIGH_POSITION = 1#
High Position algorithm prefers the top position of the column.