Entries#

class automatic_warehouse.status_warehouse.entry.entry.Entry(offset_x: int, pos_y: int)#

Superclass for all entries.

Parameters:
  • offset_x (int) – offset x of the entry.

  • pos_y (int) – position y of the entry.

get_offset_x() int#

Get the offset x value of the entry.

Return type:

int

Returns:

the offset x value of the entry.

get_pos_y() int#

Get the position y value of the entry.

Return type:

int

Returns:

the position y value of the entry.

class automatic_warehouse.status_warehouse.entry.empty_entry.EmptyEntry(offset_x: int, pos_y: int)#

It is an entry of the warehouse where there is no tray.

Parameters:
  • offset_x (int) – offset x of the empty entry.

  • pos_y (int) – y of the empty entry.

class automatic_warehouse.status_warehouse.entry.tray_entry.TrayEntry(offset_x: int, pos_y: int)#

It is an entry of the warehouse where the tray is located.

Parameters:
  • offset_x (int) – offset x of the tray entry.

  • pos_y (int) – y of the tray entry.

add_tray(tray: Tray)#

Add the tray pointer to the local reference.

Parameters:

tray (Tray) – tray pointer.

get_tray() Tray#

Get the pointer to the tray to which the TrayEntry belongs.

Return type:

Tray

Returns:

the Tray pointer.