OrderAssigner.assign_order

You're seeing just the function assign_order, go back to OrderAssigner module for more information.
Link to this function

assign_order(order)

Assigns an order to the best suited elevator. Unless the elevator is running without being connected to the node cluster, the same elevator will not get the same order twice in a row. Calls OrderDistributor.distribute_new/1 after the order is assigned.

Parameters

  • order: Order to be assgined :: %Order{}

Return

  • :ok :: atom()