order_visualization #5

Merged
s464919 merged 7 commits from order_visualization into master 2022-06-10 08:56:02 +02:00
3 changed files with 7 additions and 2 deletions
Showing only changes of commit 868ba1bfd7 - Show all commits

View File

@ -52,6 +52,7 @@ class GameModel(Model):
self.client_delivery: PatchAgent = None
self.drop_off: PatchAgent = None
self.graph = graph
self.cut_orders : List[Order] = []
self.game_constants = GameConstants(
width,

View File

@ -84,4 +84,6 @@ class InitialStateFactory:
@staticmethod
def __generate_item() -> Item:
randomly_picked_type = random.choice(list(ItemType))
return Item(randomly_picked_type, PathByEnum.get_random_path(randomly_picked_type))
item = Item(randomly_picked_type, PathByEnum.get_random_path(randomly_picked_type))
item.guessed_type = item.real_type
return item

View File

@ -112,11 +112,13 @@ if __name__ == '__main__':
current_item = DisplayAttributeElement("current_item")
ordersText = DisplayOrderList("orderList")
fulfilled_orders = DisplayOrderList("fulfilled_orders")
cut_orders = DisplayOrderList("cut_orders") # MTR!
model = keras.models.load_model("imageClasification/my_model")
server = ModularServer(GameModel,
[grid, readyText, current_item, current_order, fulfilled_orders, ordersText],
[grid, readyText, current_item, current_order, fulfilled_orders, ordersText, provided_itesm,
recognised_items, cut_orders],
"Automatyczny Wózek Widłowy",
dict(width=gridHeight, height=gridWidth, graph=diagram, items=60, orders=20,
classificator=model, item_display_pos=display_items))