2022-05-09 15:49:11 +02:00
|
|
|
from data.enum.Direction import Direction
|
2022-04-16 15:55:43 +02:00
|
|
|
from data.Item import Item
|
|
|
|
from data.Order import Order
|
2022-06-07 01:07:49 +02:00
|
|
|
from data.enum.Priority import Priority
|
2022-04-16 15:55:43 +02:00
|
|
|
from decision.ActionType import ActionType
|
|
|
|
from util.PathDefinitions import GridLocation
|
|
|
|
|
|
|
|
|
|
|
|
class State:
|
|
|
|
def __init__(self,
|
|
|
|
action_taken: ActionType,
|
|
|
|
forklift_position: GridLocation,
|
|
|
|
forklift_rotation: Direction,
|
2022-06-07 01:07:49 +02:00
|
|
|
pending_orders: [Priority, [Order]],
|
2022-04-16 15:55:43 +02:00
|
|
|
filled_orders: [Order],
|
|
|
|
input_items: [Item]
|
|
|
|
):
|
|
|
|
self.action_taken = action_taken
|
|
|
|
self.forklift_position = forklift_position
|
|
|
|
self.forklift_rotation = forklift_rotation
|
|
|
|
self.pending_orders = pending_orders
|
|
|
|
self.filled_orders = filled_orders
|
|
|
|
self.input_items = input_items
|