OrderAssigner.CostCalculation.cost
You're seeing just the function
cost
, go back to OrderAssigner.CostCalculation module for more information.
Link to this function
cost(order)
Calls ElevatorOperator.get_data/0
to retrieve the current state of the
elevator, and calculates the cost of taking the order.
Parameters
- order: Order to be calculated cost for :: %Order{}
Return
- Cost of the elevator :: integer()